/* Import nowoczesnej czcionki Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #007BFF;
    --primary-hover: #0056b3;
    --bg: #f8fafd;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --radius-btn: 12px;
    --radius-box: 24px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVBAR - Smukły i elegancki */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    user-select: none;
}

.logo img { height: 32px; }

.logo span {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a:not(.btn-primary) {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-main);
    transition: 0.2s;
    font-size: 14px;
    user-select: none;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

/* PRZYCISKI - Dopracowane rozmiary */
button, 
.btn-primary, 
.upload-btn, 
.btn-download, 
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white) !important;
    border: none;
    padding: 10px 24px; /* Mniejszy padding dla elegancji */
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
    outline: none;
}

button:hover, 
.btn-primary:hover, 
.btn-download:hover, 
.copy-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.25);
}

button:active, .btn-primary:active {
    transform: translateY(0);
}

/* KONTENERY */
.upload-box, .section, .hero-box, .content-card {
    max-width: 800px;
    margin: 40px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-box);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
}

h1 { 
    font-size: 38px; 
    color: var(--text-main); 
    margin-bottom: 15px; 
    font-weight: 800;
    letter-spacing: -1px;
}

h2, h3 { color: var(--text-main); font-weight: 700; }
p { color: var(--text-muted); font-size: 16px; }

/* POLA FORMULARZA - Dodano input[type="password"] */
input[type="text"], 
input[type="password"],
input[type="file"],
input[type="email"],
.link-input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 15px;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    outline: none;
}

input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

/* ALERTY */
.alert {
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}
.alert.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* PROGRESS BAR (Dla uploadu) */
.progress-container {
    width: 100%;
    background: #e2e8f0;
    border-radius: 10px;
    height: 8px;
    margin: 20px 0;
    display: none; /* Pokazywane przez JS */
}
.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

/* STOPKA */
.footer-top {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #f1f5f9;
    padding: 60px 20px;
    gap: 60px;
    margin-top: 80px;
    border-top: 1px solid var(--border);
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 17px;
    font-weight: 700;
}

.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section ul li { margin-bottom: 8px; }
.footer-section ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: 0.2s;
    user-select: none;
}
.footer-section ul li a:hover { color: var(--primary); }

.footer-bottom {
    background: var(--text-main);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    font-weight: 500;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .navbar { padding: 15px 5%; }
    .nav-links { gap: 15px; }
    h1 { font-size: 32px; }
    .upload-box { margin: 20px; padding: 30px; }
    .footer-top { gap: 40px; text-align: center; flex-direction: column; align-items: center; }
}

/* Styl dla przycisków niebezpiecznych (np. wyloguj) */
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #e11d48 !important; /* Czerwony tekst */
    border: 2px solid #fee2e2;
    padding: 10px 24px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    user-select: none;
}

.btn-danger:hover {
    background: #fff1f2;
    border-color: #fda4af;
    transform: translateY(-2px);
}

.btn-download-small { background: var(--primary) !important; }
.btn-copy-small { background: #10b981 !important; }
.btn-delete-small { background: #ef4444 !important; }

.action-btns button:hover, .action-btns a:hover {
    filter: brightness(90%);
    transform: translateY(-1px);
}

/* Ujednolicony styl przycisków akcji w tabelach */
.btn-group {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px; /* Identyczny padding dla każdego */
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 13px; /* Czytelna czcionka */
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    color: #ffffff !important;
    min-width: 110px; /* Stała szerokość, żeby przyciski były równe */
}

/* Kolory dla poszczególnych akcji */
.btn-view {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.btn-copy {
    background: #10b981; /* Zielony Emerald */
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-delete {
    background: #ef4444; /* Czerwony Rose */
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Efekty hover - spójne dla wszystkich */
.btn-action:hover {
    transform: translateY(-2px);
    filter: brightness(110%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-action:active {
    transform: translateY(0);
}

/* Nowa Sekcja Discord */
        .discord-hero-container {
            max-width: 1000px;
            margin: -20px auto 40px; /* Lekkie najechanie na sekcję wyżej dla efektu głębi */
            padding: 0 20px;
        }

        .discord-card {
            background: linear-gradient(135deg, #5865F2 0%, #404eed 100%);
            border-radius: 24px;
            padding: 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: white;
            box-shadow: 0 15px 35px rgba(88, 101, 242, 0.25);
            position: relative;
            overflow: hidden;
            transition: transform 0.3s ease;
        }

        .discord-card:hover {
            transform: translateY(-5px);
        }

        .discord-content {
            z-index: 2;
            text-align: left;
        }

        .discord-content h2 {
            margin: 0;
            font-size: 28px;
            font-weight: 800;
            color: white;
        }

        .discord-content p {
            margin: 10px 0 0;
            opacity: 0.9;
            font-size: 16px;
            color: white;
            max-width: 400px;
        }

        .btn-discord-huge {
            background: white;
            color: #5865F2;
            padding: 20px 40px;
            border-radius: 18px;
            text-decoration: none;
            font-weight: 800;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: all 0.3s ease;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            z-index: 2;
            white-space: nowrap;
        }

        .btn-discord-huge:hover {
            background: #f0f4ff;
            transform: scale(1.05);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        /* Dekoracyjna ikona w tle */
        .discord-bg-icon {
            position: absolute;
            right: -30px;
            bottom: -30px;
            opacity: 0.1;
            transform: rotate(-15deg);
            pointer-events: none;
        }

        @media (max-width: 768px) {
            .discord-card {
                flex-direction: column;
                text-align: center;
                gap: 30px;
            }
            .discord-content {
                text-align: center;
            }
            .discord-content p {
                margin: 10px auto;
            }
            .btn-discord-huge {
                width: 100%;
                justify-content: center;
            }
        }