/* 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);
}