@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-body: #0f172a;       
    --bg-card: #1e293b;       
    --bg-input: #334155;
    --border-color: #475569;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #6366f1;       
    --primary-hover: #4f46e5;
    --accent: #38bdf8;        
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-body); color: var(--text-main); margin: 0; line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* --- NAVBAR & HAMBURGER --- */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    position: sticky; top: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
}

.brand { font-size: 1.25rem; font-weight: 800; color: white; display: flex; align-items: center; gap: 10px; z-index: 1001; }
.brand span { color: var(--accent); }

/* Hamburger Button */
.hamburger {
    display: none;
    background: none; border: none; color: white;
    font-size: 1.5rem; cursor: pointer; z-index: 1001;
}

.nav-links { display: flex; gap: 5px; align-items: center; }

.nav-links a {
    color: var(--text-muted); text-decoration: none;
    font-weight: 500; font-size: 0.9rem;
    padding: 8px 16px; border-radius: 6px;
    transition: all 0.2s;
}
.nav-links a.active, .nav-links a:hover { color: white; background: var(--primary); }

/* Mobile Menu Logic */
@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 70%; height: 100vh;
        background: var(--bg-card);
        flex-direction: column; padding-top: 80px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    .nav-links.active { right: 0; }
    
    .nav-links a { width: 90%; text-align: center; padding: 15px; font-size: 1.1rem; }
}

/* --- EGYÉB LAYOUT --- */
.container { max-width: 1400px; margin: 0 auto; padding: 1.5rem; }
.card, .project-card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: var(--shadow); margin-bottom: 1.5rem; overflow: hidden; }

/* Grid */
.grid-cols-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) {
    .grid-cols-2 { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }
}

/* Inputs & Buttons */
input, select, button {
    font-family: inherit; font-size: 0.9rem;
    width: 100%; padding: 10px; border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-input); color: white;
    margin-bottom: 0.5rem;
}
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2); }
button.btn-primary { background: var(--primary); border: none; font-weight: 600; cursor: pointer; margin-bottom: 0; }
button.btn-primary:hover { background: var(--primary-hover); }

/* Másodlagos gomb (pl. Mégse) */
.btn-secondary {
    background: #475569;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover {
    background: #64748b;
}

/* Project Card & Utils */
.project-card { cursor: pointer; position: relative; border-left: 4px solid var(--primary); transition: transform 0.2s; }
.project-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-header { padding: 1.25rem; }
.card-header h3 { margin: 0; font-size: 1.1rem; color: white; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }

/* Video List */
.video-details { background: #151e2e; border-top: 1px solid var(--border-color); max-height: 0; overflow: hidden; opacity: 0; transition: all 0.3s ease; }
.project-card.open .video-details { max-height: 1000px; opacity: 1; padding-bottom: 10px; }
.video-row { padding: 10px 15px; border-bottom: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 600px) { .video-row { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Badges */
.badge { padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; display: inline-block; }
.status-kesz { background: var(--success); color: white; }
.status-folyamat { background: var(--warning); color: black; }
.status-terv { background: var(--border-color); color: white; }
.plat-tag { font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-right: 4px; background: #000; color: white; }
.plat-reels { background: #d62976; } 
.plat-youtube { background: #ff0000; }

.month-divider { margin: 2rem 0 1rem; font-weight: bold; color: var(--accent); letter-spacing: 1px; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; }
.view-toggle { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.toggle-btn { width: auto; background: transparent; color: var(--text-muted); margin-left: 5px; border: 1px solid var(--border-color); }
.toggle-btn.active { background: var(--bg-input); color: white; }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
td, th { padding: 10px; text-align: left; border-bottom: 1px solid var(--border-color); }
th { background: rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; }
.login-container { height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { width: 100%; max-width: 400px; padding: 2rem; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border-color); text-align: center; }

/* --- ITT KEZDŐDNEK A HIÁNYZÓ, DE SZÜKSÉGES ELEMEK --- */

/* Értesítő buborék (Toast) - AJAX visszajelzéshez */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 17px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-left: 5px solid var(--success);
}
#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

/* Videó Szerkesztő Panel (Rejtett) */
.video-edit-panel { 
    background: rgba(0,0,0,0.2); 
    border-left: 2px solid var(--primary); 
    padding: 10px; 
    margin-top: 10px; 
    display: none; 
}

/* Kicsi Ikon Gombok (Szerkesztés, Törlés, Link) */
.icon-btn { 
    background: none; 
    border: none; 
    cursor: pointer; 
    font-size: 1rem; 
    padding: 5px; 
    transition: transform 0.2s; 
    color: var(--text-muted); 
    width: auto !important; 
    margin: 0 !important; 
}
.icon-btn:hover { 
    transform: scale(1.1); 
    color: white; 
}

/* Típus Badge (pl. Short, Ads) */
.type-badge { 
    font-size: 0.6rem; 
    color: var(--accent); 
    border: 1px solid var(--border-color); 
    padding: 2px 5px; 
    border-radius: 4px; 
    text-transform: uppercase;
}

/* Szűrő Sáv */
.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.filter-tabs { display: flex; background: var(--bg-card); padding: 5px; border-radius: var(--radius); border: 1px solid var(--border-color); }
.filter-tab { padding: 8px 16px; border-radius: 6px; text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; transition: all 0.2s; }
.filter-tab.active { background: var(--bg-input); color: white; }
.search-form { flex: 1; display: flex; gap: 10px; min-width: 250px; }