@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   1. CSS VÁLTOZÓK (TÉMA BEÁLLÍTÁSOK)
   ========================================================================== */
:root {
    /* Színpaletta */
    --bg-dark: #0b0f19;
    --bg-card: rgba(20, 27, 45, 0.7);
    --bg-input: rgba(15, 23, 42, 0.6);
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.5);
    
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-bg: rgba(239, 68, 68, 0.1);
    
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    
    /* Szöveg színek */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;

    /* Szegélyek és Árnyékok */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(79, 70, 229, 0.5);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px var(--primary-glow);

    /* Átmenetek */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Méretek és Sugár */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
}

/* ==========================================================================
   2. ALAPVETŐ BEÁLLÍTÁSOK (RESET)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.08), transparent 25%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

/* ==========================================================================
   3. GÖRDÍTŐSÁV (SCROLLBAR)
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: var(--radius-pill);
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   4. TIPOGRÁFIA
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-pill);
}

h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1rem;
}

strong, b {
    color: var(--text-main);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
}

a:hover {
    color: #38bdf8;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 2.5rem 0;
}

/* ==========================================================================
   5. ELRENDEZÉS (LAYOUT) & KONTÉNEREK
   ========================================================================== */
.container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    max-width: 1100px;
    width: 100%;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideUpFade 0.6s ease-out forwards;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   6. GOMBOK (BUTTONS)
   ========================================================================== */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-bounce);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
    user-select: none;
}

button:hover, .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

button:active, .btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

button:disabled, .btn:disabled {
    background: #334155;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Gomb variációk */
.btn-danger {
    background: linear-gradient(135deg, var(--danger), #b91c1c);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, var(--danger));
    box-shadow: 0 8px 15px rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #047857);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}
.btn-success:hover {
    background: linear-gradient(135deg, #047857, var(--success));
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.4);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    margin-right: 15px;
    font-weight: 500;
    border: 1px solid transparent;
}
.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color);
    color: var(--text-main);
}

/* ==========================================================================
   7. ŰRLAPOK (FORMS & INPUTS)
   ========================================================================== */
form {
    margin-bottom: 2rem;
}

input[type="text"], 
input[type="password"] {
    width: 100%;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

input[type="text"]:focus, 
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), inset 0 2px 4px rgba(0,0,0,0.1);
}

input::placeholder {
    color: #64748b;
}

/* Egyedi Fájlfeltöltő (File Input) */
input[type="file"] {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-normal);
    margin-bottom: 1.5rem;
}

input[type="file"]:hover {
    border-color: var(--accent);
    background: rgba(14, 165, 233, 0.05);
}

input[type="file"]::file-selector-button {
    background: #334155;
    color: var(--text-main);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    margin-right: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-normal);
}

input[type="file"]::file-selector-button:hover {
    background: #475569;
}

/* ==========================================================================
   8. FELTÖLTÉSI CÉL KIVÁLASZTÓ (RADIO BUTTONS)
   ========================================================================== */
.upload-options {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.upload-options strong {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.upload-options label {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    transition: var(--transition-normal);
}

.upload-options label:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
    border-color: var(--border-color);
}

.upload-options input[type="radio"] {
    appearance: none;
    background-color: var(--bg-input);
    margin-right: 15px;
    font-size: inherit;
    color: currentColor;
    width: 1.25em;
    height: 1.25em;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.upload-options input[type="radio"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 0.2s transform ease-in-out;
    box-shadow: inset 1em 1em var(--primary);
}

.upload-options input[type="radio"]:checked {
    border-color: var(--primary);
}

.upload-options input[type="radio"]:checked::before {
    transform: scale(1);
}

.upload-options label:has(input:checked) {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
    color: var(--text-main);
    font-weight: 500;
}

/* ==========================================================================
   9. TÖLTÉSI CSÍK (PROGRESS BAR)
   ========================================================================== */
.progress-wrapper {
    display: none;
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

.progress-bar-container {
    width: 100%;
    background-color: var(--bg-dark);
    border-radius: var(--radius-pill);
    overflow: hidden;
    height: 24px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.progress-bar {
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    background-size: 200% 100%;
    height: 100%;
    transition: width 0.2s ease;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 15px var(--primary-glow);
    animation: gradientMove 2s infinite linear;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.status-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent);
    margin-top: 4px;
    font-weight: 500;
    animation: pulseText 1.5s infinite alternate;
}

/* ==========================================================================
   10. TÁBLÁZATOK (TABLES)
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th, td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    position: sticky;
    top: 0;
    backdrop-filter: blur(5px);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

tr:last-child td {
    border-bottom: none;
}

td strong {
    font-size: 1.05rem;
}

/* Előnézeti kép a táblázatban */
.preview-img {
    max-width: 60px;
    max-height: 45px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.preview-img:hover {
    transform: scale(1.8) translateY(-5px);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    position: relative;
    border-color: var(--primary);
}

.no-preview {
    display: inline-block;
    padding: 6px 10px;
    background: #1e293b;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px dashed #475569;
}

/* ==========================================================================
   11. ÜZENETEK ÉS ALERT DOBOZOK (FLASH MESSAGES)
   ========================================================================== */
.message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
}

.message::before {
    font-family: system-ui;
    font-size: 1.2rem;
}

.message.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.message.success::before { content: '✓'; font-weight: bold; }

.message.error {
    background: var(--danger-bg);
    color: #fca5a5; /* Világosabb piros a jobb olvashatóságért sötét módban */
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.message.error::before { content: '⚠'; }

/* ==========================================================================
   12. STÁTUSZ JELZŐK ÉS BADGE-EK
   ========================================================================== */
span[style*="color:#3b82f6"],
span[style*="color: var(--accent-color)"] {
    background: rgba(59, 130, 246, 0.15);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.85rem;
}

span[style*="color:#10b981"] {
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.85rem;
}

span[style*="color:#fbbf24"] {
    background: rgba(245, 158, 11, 0.15);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.85rem;
    color: #fcd34d !important; 
}

/* ==========================================================================
   13. ANIMÁCIÓK (KEYFRAMES)
   ========================================================================== */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gradientMove {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes pulseText {
    0% { opacity: 0.6; }
    100% { opacity: 1; text-shadow: 0 0 8px rgba(14, 165, 233, 0.6); }
}

/* ==========================================================================
   14. RESZPONZÍV NÉZETEK (MOBIL & TABLET)
   ========================================================================== */
@media (max-width: 850px) {
    body { padding: 1rem 0.5rem; }
    
    .container {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }
    
    h2 { font-size: 1.75rem; }
    
    /* Gombok átalakítása */
    .btn, button { width: 100%; margin-bottom: 10px; justify-content: center; }
    .nav-link { display: block; text-align: center; margin: 5px 0; }
    
    /* Mobilnézeti Táblázat okosítás */
    table, thead, tbody, th, td, tr { display: block; }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        background: rgba(0,0,0,0.2);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        margin-bottom: 1rem;
        padding: 0.5rem;
    }
    
    td {
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        position: relative;
        padding-left: 50%;
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    td:last-child { border-bottom: 0; }
    
    /* Mobil pseudo címkék (Helykitöltő logika) */
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.8rem;
        text-transform: uppercase;
    }
    
    /* Kép előnézet mobilon */
    .preview-img { max-width: 40px; }
}

/* Extra pici képernyők (pl iPhone SE) */
@media (max-width: 400px) {
    .container { padding: 1rem; }
    h2 { font-size: 1.5rem; }
    .upload-options { padding: 1rem; }
}

/* ==========================================================================
   15. KIEGÉSZÍTŐ OSZTÁLYOK (UTILITY CLASSES)
   ========================================================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.glass-panel { background: var(--bg-card); backdrop-filter: blur(10px); border: 1px solid var(--border-color); }