/* 
   MODERN_STYLE.CSS - Design Inspirat din Dashboard Enterprise (Martie 2026)
   Creat de Gemini CLI pentru Robert
*/

:root {
    /* Paleta de Culori */
    --primary-blue: #2c3e50;      /* Albastru închis (Headers, Topbar) */
    --accent-blue: #3498db;       /* Albastru deschis (Butoane, Link-uri) */
    --sidebar-bg: #f8f9fa;        /* Fundal Sidebar (Gri foarte deschis) */
    --content-bg: #eef2f7;        /* Fundal pagină (Gri-albăstrui) */
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #7f8c8d;
    
    /* Culori Status */
    --status-green: #27ae60;      /* Aprobat */
    --status-orange: #f39c12;     /* În așteptare */
    --status-red: #e74c3c;        /* Respins/Eroare */
    
    /* Dimensiuni */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --topbar-height: 60px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* DARK MODE OVERRIDES (Martie 2026) */
body.dark-mode {
    --primary-blue: #0f172a;      /* Slate-900 (Topbar) */
    --accent-blue: #3b82f6;       /* Blue-500 */
    --sidebar-bg: #1e293b;        /* Slate-800 (Sidebar) */
    --content-bg: #0f172a;        /* Slate-900 (Fundal principal) */
    --white: #1e293b;             /* Slate-800 (Carduri/Elemente albe) */
    --text-dark: #f1f5f9;         /* Slate-100 (Text principal) */
    --text-muted: #cbd5e1;        /* Slate-300 (Text secundar - mult mai vizibil) */
    --border-color: #334155;      /* Slate-700 (Borduri) */
}

/* FIX TITLURI & TEXT (Specific index.php si stiluri inline) */
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode .dashboard-header h1 { color: var(--text-dark) !important; }
body.dark-mode [style*="color: var(--primary-blue)"],
body.dark-mode [style*="color:var(--primary-blue)"],
body.dark-mode [style*="color: var(--accent-blue)"],
body.dark-mode [style*="color:var(--accent-blue)"] { 
    color: var(--text-dark) !important; 
}

/* FIX TITLURI CARDURI & MESAJE (Contrast sporit) */
body.dark-mode .card-info .count, 
body.dark-mode .msg-bubble strong, 
body.dark-mode .task-text,
body.dark-mode .perioada-text,
body.dark-mode .info-value,
body.dark-mode .control-label,
body.dark-mode .cerere-info strong,
body.dark-mode .nume-lista,
body.dark-mode .grup-title-modern,
body.dark-mode .month-nav h2,
body.dark-mode .stat-value,
body.dark-mode td strong[style*="color:var(--primary-blue)"],
body.dark-mode td strong[style*="color: var(--primary-blue)"] { 
    color: var(--text-dark) !important; 
}

body.dark-mode .msg-bubble p,
body.dark-mode .task-meta,
body.dark-mode .control-desc {
    color: var(--text-muted) !important;
}

/* FIX PANOURI ADMINISTRATIVE & STILURI INLINE (background:#f8fafc) */
body.dark-mode [style*="background:#f8fafc"],
body.dark-mode [style*="background: #f8fafc"],
body.dark-mode [style*="background-color:#f8fafc"],
body.dark-mode [style*="background:#f0f7ff"],
body.dark-mode [style*="background: #f0f7ff"],
body.dark-mode [style*="background:#fff9eb"],
body.dark-mode [style*="background: #fff9eb"],
body.dark-mode [style*="background:#f1f5f9"],
body.dark-mode [style*="background: #f1f5f9"],
body.dark-mode [style*="background:#f0f9ff"],
body.dark-mode [style*="background: #f0f9ff"],
body.dark-mode [style*="background:#fff"],
body.dark-mode [style*="background: #fff"],
body.dark-mode [style*="background:#ffffff"],
body.dark-mode [style*="background: #ffffff"],
body.dark-mode .section-body,
body.dark-mode .admin-grid div,
body.dark-mode .grid-3,
body.dark-mode .modern-form {
    background-color: var(--white) !important;
    color: var(--text-dark) !important;
    border-color: var(--border-color) !important;
}

/* FIX TEXTE COLORATE INLINE (PROFIL/NOTIFICARI) */
body.dark-mode [style*="color: #0369a1"],
body.dark-mode [style*="color:#0369a1"] { color: var(--accent-blue) !important; }
body.dark-mode [style*="color: #0c4a6e"],
body.dark-mode [style*="color:#0c4a6e"] { color: var(--text-muted) !important; }

/* FIX HOVER PE LINII CU BACKGROUND INLINE */
body.dark-mode tr[style*="background"]:hover,
body.dark-mode div[style*="background"]:hover {
    background-color: #334155 !important;
}

body.dark-mode .admin-grid label,
body.dark-mode .modern-form label {
    color: var(--text-dark) !important;
}

/* FIX SIDEBAR DARK MODE */
body.dark-mode .sidebar { background-color: var(--sidebar-bg) !important; border-right-color: var(--border-color) !important; }
body.dark-mode .sidebar-menu a { color: var(--text-dark) !important; }
body.dark-mode .sidebar-menu a:hover { background-color: #334155 !important; color: var(--accent-blue) !important; }
body.dark-mode .sidebar-menu .active a { background-color: var(--accent-blue) !important; color: white !important; }
body.dark-mode .header-menu { color: var(--accent-blue) !important; }

/* FIX CARDURI DASHBOARD & ALTE ELEMENTE UI */
body.dark-mode .stat-card, 
body.dark-mode .task-card, 
body.dark-mode .card, 
body.dark-mode .bg-card, 
body.dark-mode .section-card,
body.dark-mode .info-card, 
body.dark-mode .pauza-card,
body.dark-mode .grup-container,
body.dark-mode .modal-content,
body.dark-mode .control-card,
body.dark-mode .portal-item,
body.dark-mode .perioada-card,
body.dark-mode .zi-card,
body.dark-mode .cerere-card,
body.dark-mode .schimb-box { 
    background-color: var(--white) !important; 
    color: var(--text-dark) !important; 
    border-color: var(--border-color) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7) !important; 
}

/* FIX WEEKEND & ELEMENTE SPECIFICE */
body.dark-mode .zi-card.weekend { background-color: #0f172a !important; }
body.dark-mode .indicator.bg-green { background-color: #064e3b !important; color: #6ee7b7 !important; border-color: #065f46 !important; }
body.dark-mode .indicator.bg-red { background-color: #7f1d1d !important; color: #fca5a5 !important; border-color: #991b1b !important; }

/* FIX SECȚIUNI SPECIALE (Ex: Urgență bot_admin.php cu fundal roșu inline) */
body.dark-mode .dash-section[style*="background: #fdf2f2"] { 
    background-color: #451a1a !important; 
    border-color: #7f1d1d !important; 
}
body.dark-mode .dash-section[style*="background: #fdf2f2"] .dash-section-title { color: #fecaca !important; }

/* FIX TABELE & CALENDAR */
body.dark-mode table { color: var(--text-dark) !important; }
body.dark-mode th { background-color: #334155 !important; color: white !important; }
body.dark-mode td { border-bottom-color: #334155 !important; }
body.dark-mode .modern-table tbody tr:hover { background-color: #1e293b !important; }
body.dark-mode .calendar-day { background-color: #1e293b !important; border-color: #334155 !important; }
body.dark-mode .calendar-day:hover { background-color: #334155 !important; }
body.dark-mode .calendar-header { background: #0f172a !important; }
body.dark-mode .day-number { color: var(--text-muted) !important; }
body.dark-mode .day-hours { color: var(--text-dark) !important; }
body.dark-mode .day-label { color: var(--text-muted) !important; }
body.dark-mode .grup-header { background-color: #334155 !important; color: var(--text-dark) !important; border-left-color: var(--accent-blue) !important; }
body.dark-mode .grup-header:hover { background-color: #334155 !important; }

/* FIX FORMULARE */
body.dark-mode input, body.dark-mode select, body.dark-mode textarea { 
    background-color: #0f172a !important; 
    color: #f1f5f9 !important; 
    border-color: #475569 !important; 
}
body.dark-mode .mini-progress { background-color: #334155 !important; }

/* FIX LOGIN PAGE DARK MODE */
body.dark-mode.login-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}
body.dark-mode .login-box {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .login-box h1 {
    color: var(--text-dark) !important;
}
body.dark-mode .login-box label {
    color: var(--text-dark) !important;
}
body.dark-mode .login-box p {
    color: #64748b !important;
}

/* EXCEPȚIE CREARE_PROGRAM (FOAIE PRINT A5) */
body.dark-mode .foaie-a5 {
    background-color: #ffffff !important;
    background-image: linear-gradient(#e2e2e2 1px, transparent 1px), linear-gradient(90deg, #e2e2e2 1px, transparent 1px) !important;
    color: #333 !important;
}
body.dark-mode .foaie-a5 .header-foaie { color: #000080 !important; border-bottom-color: #333 !important; }
body.dark-mode .foaie-a5 .input-tura { 
    background: transparent !important; 
    color: #1e40af !important; 
    border: none !important;
}
body.dark-mode .foaie-a5 .zi-nume { color: #666 !important; }
body.dark-mode .foaie-a5 .rand-zi { border-bottom-color: rgba(0,0,0,0.05) !important; }
body.dark-mode .foaie-a5 .info-norma { color: #333 !important; }

/* Reset și Bază */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--content-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Structura Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* TOPBAR */
.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--topbar-height);
    background-color: var(--primary-blue);
    color: #ffffff; /* Forțat alb pentru contrast pe fundal închis */
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 3000 !important; /* Prioritate peste orice */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.topbar .logo {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

/* SIDEBAR OPTIMIZAT (MARTIE 2026) */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid #ddd;
    position: fixed;
    top: var(--topbar-height);
    bottom: 0;
    left: 0;
    transition: all var(--transition-speed);
    z-index: 4000 !important; /* Prioritate maximă pt mobil */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Fix pt Meniu Mobil */
@media (max-width: 768px) {
    .sidebar {
        left: -100%;
        width: 80% !important;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
}

.table-scroll-container {
    max-height: 70vh;
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background: white;
    margin-bottom: 30px;
    position: relative;
    z-index: 5; /* Mai mic decât sidebar (4000) și topbar (3000) */
    -webkit-overflow-scrolling: touch; /* Scroll fin pe iOS */
}

/* BUTON TOGGLE SIDEBAR (FIX MOBIL) */
.btn-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    z-index: 5000 !important; /* Peste orice în topbar */
}

.btn-toggle:active {
    transform: scale(0.9);
}

.table-scroll-container thead th {
    position: -webkit-sticky; /* Suport Safari */
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--primary-blue) !important;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Titluri Secțiuni Sidebar */
.header-menu {
    padding: 20px 20px 5px 25px;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: all var(--transition-speed);
}

.sidebar.collapsed .header-menu {
    padding: 15px 0 5px 0;
    text-align: center;
}

.sidebar.collapsed .header-menu span {
    display: none;
}

.sidebar.collapsed .header-menu::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #e2e8f0;
    margin: 5px auto;
}

/* Profil în Sidebar */
.sidebar-profile {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    transition: all var(--transition-speed);
}

.sidebar.collapsed .sidebar-profile {
    padding: 15px 5px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background-color: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: all var(--transition-speed);
}

.sidebar.collapsed .avatar-circle {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.sidebar.collapsed .profile-info {
    display: none;
}

/* Meniu Sidebar */
.sidebar-menu {
    list-style: none;
    padding: 10px 0;
}

.sidebar-menu li {
    padding: 2px 15px;
    transition: padding var(--transition-speed);
}

.sidebar.collapsed .sidebar-menu li {
    padding: 2px 8px;
}

.sidebar-menu a {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 12px 0;
    position: relative;
}

.sidebar-menu a:hover {
    background-color: #e9ecef;
}

.sidebar-menu a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: margin var(--transition-speed);
}

.sidebar.collapsed .sidebar-menu a i {
    margin-right: 0;
    font-size: 1.2rem;
}

.sidebar.collapsed .sidebar-menu a span {
    display: none;
}

.sidebar-menu .active a {
    background-color: var(--accent-blue);
    color: white;
}

/* Conținut Principal */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: 25px;
    transition: all var(--transition-speed) ease-in-out;
    width: calc(100% - var(--sidebar-width));
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

/* Carduri Tip Sumar */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.card-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
}

.card-info .count {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.card-info .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Filtre și Secțiuni */
.section-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-body {
    background-color: var(--white);
    padding: 20px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .sidebar {
        left: -100%;
        width: 80% !important;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 10px;
    }

    /* Optimizări Vânzări pe Mobil */
    .input-cant {
        width: 85px !important;
        height: 48px;
        font-size: 1.3rem !important;
        border-color: var(--accent-blue) !important;
        background-color: #fffbeb !important;
    }

    .btn-vinde {
        height: 48px;
        padding: 0 20px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
    }

    .modern-table td, .modern-table th {
        padding: 10px 5px !important;
        font-size: 0.85rem !important;
    }

    .form-vinde {
        gap: 5px;
    }
}

/* PAGINA DE LOGIN */
.login-body {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a252f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 {
    margin-bottom: 30px;
    color: var(--primary-blue);
    font-size: 1.8rem;
}

.login-box label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background-color: #2980b9;
}

/* PORTAL ITEMS (Dashboard Cards) */
.portal-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Stiluri specifice pentru SARCINI (Chat Interface) */
.chat-container {
    display: flex;
    flex-direction: column-reverse; /* Mesajele noi apar jos, dar adăugate cu prepend */
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.msg-bubble {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-blue);
    transition: transform 0.3s, opacity 0.5s;
    position: relative;
}

.msg-bubble.tip-Urgent { border-left-color: var(--status-red); }
.msg-bubble.tip-Normal { border-left-color: var(--accent-blue); }
.msg-bubble.tip-Info { border-left-color: var(--status-orange); }

.msg-bubble strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.msg-bubble p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.msg-bubble .timestamp {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

.msg-bubble .actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Butoane Acțiuni Sarcini */
.btn-preia, .btn-rezolva, .btn-anuleaza {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.btn-preia { background-color: #3498db; color: white; }
.btn-rezolva { background-color: #27ae60; color: white; }
.btn-anuleaza { background-color: #ecf0f1; color: #333; }

.btn-preia:hover, .btn-rezolva:hover, .btn-anuleaza:hover { opacity: 0.8; }

/* PAUZA CONTROLS */
.pauza-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* CALENDAR PONTRAJ STYLE */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.calendar-header {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.calendar-day {
    background: var(--white);
    min-height: 120px;
    padding: 12px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f1f5f9;
}

.calendar-day:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); z-index: 5; }

.day-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5px; }
.day-number { font-weight: 800; font-size: 1.1rem; color: #94a3b8; }

.day-code-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #e2e8f0;
}

.day-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
}

.day-hours {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
}

.day-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Culori Zile Calendar (Design Nou) */
.calendar-day.tura { border-top: 4px solid var(--accent-blue); background-color: #f0f9ff; }
.calendar-day.liber { border-top: 4px solid #cbd5e1; background-color: #f8fafc; }
.calendar-day.concediu { border-top: 4px solid var(--status-green); background-color: #f0fdf4; }
.calendar-day.liber-platit { border-top: 4px solid #9b59b6; background-color: #f5eef8; }
.calendar-day.invoire-partiala { border-top: 4px solid var(--status-orange); background-color: #fffbeb; }
.calendar-day.sarbatoare { border-top: 4px solid var(--status-red); background-color: #fef2f2; }
.calendar-day.schimb { border-right: 4px solid #8b5cf6; }

.day-icon { font-size: 1.3rem; margin-bottom: 2px; }

/* TABELE MODERNE */
.table-responsive { overflow-x: auto; margin-bottom: 20px; }
.modern-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--border-radius); overflow: hidden; }
.modern-table thead th { background: var(--primary-blue); color: white; padding: 15px; text-align: left; font-size: 0.85rem; }
.modern-table tbody td { padding: 12px 15px; border-bottom: 1px solid #edf2f7; font-size: 0.9rem; }
.modern-table tbody tr:hover { background-color: #f8fafc; }

/* NAVIGARE LUNĂ */
.month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.nav-btn {
    text-decoration: none;
    background: var(--accent-blue);
    color: white !important;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.nav-btn:hover { opacity: 0.8; color: white !important; }

.month-nav h2 { font-size: 1.3rem; color: var(--primary-blue); margin: 0; }

/* BADGES */
.badge { padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; display: inline-block; }
.badge-admin { background: #fee2e2; color: #991b1b; }
.badge-user { background: #dcfce7; color: #166534; }

/* MODALS */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; }
.modal-content { 
    background: var(--white); 
    padding: 30px; 
    border-radius: 12px; 
    width: 100%; 
    max-width: 500px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
    max-height: 90vh; 
    overflow-y: auto; 
    position: relative;
}
.modal-content h3 { margin-bottom: 20px; color: var(--primary-blue); border-bottom: 2px solid #eee; padding-bottom: 10px; }

/* TAB BUTTONS (În Modal) */
.tab-buttons { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.tab-btn { background: #f1f5f9; border: none; padding: 10px 20px; border-radius: 6px; font-weight: bold; cursor: pointer; color: var(--text-muted); transition: all 0.2s; }
.tab-btn.active { background: var(--accent-blue); color: white; }

/* CERERI PANEL */
.cereri-panel { margin-top: 40px; }
.cerere-card {
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #ddd;
}
.cerere-card.approved { border-left-color: var(--status-green); }
.cerere-card.pending { border-left-color: var(--status-orange); }

.cerere-info strong { display: block; color: var(--primary-blue); font-size: 1rem; }
.cerere-info small { color: var(--text-muted); }

/* ALERTE / NOTIFICĂRI */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-succes { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* TOAST NOTIFICATIONS (Floating) */
.msg-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-blue);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInUp 0.5s ease-out, fadeOut 3s forwards 2s;
}

@keyframes slideInUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* PROGRESS BAR */
.progress-container {
    background: #e9ecef;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--accent-blue) 0%, #2ecc71 100%);
    height: 100%;
    transition: width 0.5s ease-in-out;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.pagination a:hover { background: #f8f9fa; border-color: var(--accent-blue); }
.pagination a.active, .pagination span.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* FORMULAR VÂNZARE (FIX MOBIL) */
.form-vinde {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* INPUTS MICI (Pt Tabele - VIZIBILITATE SPORITĂ) */
.input-cant {
    width: 75px;
    padding: 8px 5px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-blue);
    background-color: #fffbeb; /* Fundal gălbui discret pt contrast */
    transition: all 0.2s;
}

.input-cant:focus {
    border-color: var(--accent-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.btn-vinde {
    background: var(--status-green);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-vinde:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-vinde:active {
    transform: translateY(0);
}

/* PROFIL SPECIFIC */
.info-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

/* CONCEDII SPECIFIC */
.grup-header {
    background-color: #f1f5f9 !important;
    color: var(--primary-blue) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem !important;
    border-left: 5px solid var(--accent-blue);
}

.lista-nume {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lista-nume li {
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #e2e8f0;
}

.lista-nume li.nume-propriu { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.lista-nume li.blocat { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

.form-in-linie, .form-propunere { display: inline; margin-left: 5px; }

.btn-anulare, .btn-schimb, .btn-deblocare, .btn-blocare {
    background: none;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0;
    text-decoration: underline;
}

.btn-anulare:hover { color: var(--status-red); }

/* CERERI SCHIMB CONCEDII (FEED) */
.schimb-container {
    margin-bottom: 30px;
}

/* SEARCH BAR */
.search-container {
    margin-bottom: 20px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-container::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* LISTE REZERVĂRI SUMAR */
.lista-rezervari {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-rezervari li {
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
}

.lista-rezervari li:last-child { border-bottom: none; }

.nume-lista { font-weight: bold; color: var(--primary-blue); margin-right: 10px; }
.nume-lista.blocat { color: var(--status-red); }
.data-rezervarii { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

.status-liber { color: var(--status-green); font-weight: bold; font-size: 0.8rem; text-transform: uppercase; }

.schimb-box {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    border-left: 5px solid var(--status-orange);
}

.schimb-box.status-asteptare { border-left-color: var(--accent-blue); }

.schimb-box p { margin-bottom: 10px; font-size: 0.95rem; }
.schimb-box ul { margin-bottom: 15px; padding-left: 20px; font-size: 0.9rem; color: var(--text-dark); }

.btn-accepta { background: var(--status-green); color: white; border: none; padding: 8px 15px; border-radius: 5px; font-weight: bold; cursor: pointer; }
.btn-refuza { background: var(--status-red); color: white; border: none; padding: 8px 15px; border-radius: 5px; font-weight: bold; cursor: pointer; margin-left: 10px; }

.info-item {
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
}

.info-item:last-child { border-bottom: none; }

.info-label { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.info-value { color: var(--primary-blue); font-weight: bold; }

.modern-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 0.9rem;
}
/* MODERN-FORM INPUTS */
.modern-form input, .modern-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

/* ADMIN TABLE INPUTS */
.modern-table input[type="text"], 
.modern-table input[type="number"],
.modern-table select {
    padding: 2px 4px !important; /* Padding minim pentru vizibilitate maxima */
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 600;
    text-align: left !important;
}

/* ELIMINARE SAGETI (SPIN BUTTONS) - CHROME, SAFARI, EDGE */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ELIMINARE SAGETI - FIREFOX */
input[type=number] {
    -moz-appearance: textfield;
}

.modern-table input:focus { border-color: var(--accent-blue); outline: none; background: #f0f7ff; }

.expandable-input:focus {
    min-width: 100%; /* Se asigură că ocupă cel puțin celula */
    width: auto !important;
    max-width: 600px;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: white !important;
    text-align: left !important; /* Asigură vizibilitatea textului la editare */
    padding-left: 8px !important;
}

/* Fix pentru vizibilitate text în celule mici */
.modern-table input {
    text-overflow: ellipsis;
    text-align: left; /* Schimbăm de la center la left pentru a vedea începutul textului */
}

/* CONTAINER TABEL CU SCROLL */
.table-scroll-container {
    max-height: 60vh;
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background: white;
    margin-bottom: 30px;
}

.table-scroll-container thead th {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ADMIN ACTIONS */
.admin-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.btn-icon.blue { color: var(--accent-blue); }
.btn-icon.red { color: var(--status-red); }
.btn-icon:hover { transform: scale(1.2); }

/* GRID ADMIN */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

@media (max-width: 1100px) {
    .admin-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
}


.modern-form input:focus { border-color: var(--accent-blue); outline: none; }

#status-pauza {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

#status-pauza.activ { background: #d4edda; color: #155724; }
#status-pauza.in-pauza { background: #fff3cd; color: #856404; }

.pauza-buttons {
    display: flex;
    gap: 10px;
}

.btn-pauza-mare, .btn-pauza-scurta, .btn-stop-pauza {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-pauza-mare { background-color: #f39c12; color: white; }
.btn-pauza-scurta { background-color: #f1c40f; color: #333; }
.btn-stop-pauza { background-color: #e74c3c; color: white; }

.btn-pauza-mare:hover, .btn-pauza-scurta:hover, .btn-stop-pauza:hover {
    transform: scale(1.05);
}

/* MODULAR DASHBOARD (MARTIE 2026) */
.dash-section { margin-bottom: 35px; }
.dash-section-title {
    font-size: 0.85rem; font-weight: 800; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 15px; display: flex; align-items: center; gap: 10px;
}
.dash-section-title::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }

.stat-grid-modular {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    border-top: 5px solid var(--accent-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.stat-card.color-green { border-top-color: var(--status-green); }
.stat-card.color-orange { border-top-color: var(--status-orange); }
.stat-card.color-red { border-top-color: var(--status-red); }

/* Mini Progress Bar inside cards */
.mini-progress { background: #f1f5f9; height: 6px; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.mini-progress-fill { height: 100%; transition: width 0.5s ease; }
.bg-blue { background: var(--accent-blue); }
.bg-orange { background: var(--status-orange); }
.bg-green { background: var(--status-green); }
.bg-red { background: var(--status-red); }

/* Compact System Status */
.bot-status-tag { font-size: 0.7rem; font-weight: bold; padding: 4px 10px; border-radius: 12px; display: inline-flex; align-items: center; gap: 5px; }
.bot-online { background: #dcfce7; color: #166534; }
.bot-offline { background: #fee2e2; color: #991b1b; }

/* BOT CONTROL CENTER */
.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.control-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.control-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    border-color: var(--accent-blue);
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.control-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

.control-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* TOGGLE SWITCH */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--status-green);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--status-green);
}

input:checked + .slider:before {
    -webkit-transform: translateX(24px);
    -ms-transform: translateX(24px);
    transform: translateX(24px);
}

/* INPUT CONTROL */
.control-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: bold;
    color: var(--primary-blue);
    text-align: center;
    background: #f8fafc;
}

.control-input:focus {
    border-color: var(--accent-blue);
    background: white;
    outline: none;
}

/* GRUPURI */
.group-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #f1f5f9;
}
.portal-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.portal-item {
    background: var(--white);
    text-decoration: none;
    color: var(--text-dark);
    padding: 20px 10px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid #cbd5e1; /* Culoare default gri */
}

.portal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.portal-item.border-blue { border-top-color: var(--accent-blue); }
.portal-item.border-green { border-top-color: var(--status-green); }
.portal-item.border-orange { border-top-color: var(--status-orange); }
.portal-item.border-red { border-top-color: var(--status-red); }
.portal-item.border-purple { border-top-color: #8b5cf6; }

.portal-item-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--accent-blue);
    display: block;
}

.portal-item-title {
    font-weight: 700;
    font-size: 0.85rem;
}

.portal-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* CONCEDII TIMELINE DESIGN */
.grup-container {
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.grup-title-modern {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.perioada-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.perioada-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    border-top: 5px solid #cbd5e1; /* Culoare default */
}

.perioada-card.available { border-top-color: var(--status-green); }
.perioada-card.warning { border-top-color: var(--status-orange); }
.perioada-card.full { border-top-color: var(--status-red); }
.perioada-card.rezervat {
    border-top-color: var(--accent-blue);
    background: #f0f9ff;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.perioada-info {
    margin-bottom: 15px;
}

.perioada-text {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 5px;
}

.perioada-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.occupancy-container {
    margin: 10px 0;
}

.occupancy-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.occupancy-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.occupancy-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.bg-available { background: var(--status-green); }
.bg-warning { background: var(--status-orange); }
.bg-full { background: var(--status-red); }

/* LISTA NUME IN CARD */
.lista-nume-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.nume-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    color: var(--primary-blue);
    font-weight: 700;
    border: 1px solid #e2e8f0;
}

.nume-tag.me { background: var(--accent-blue); color: white; border-color: var(--accent-blue); }
.nume-tag.locked { background: #fee2e2; color: #991b1b; }

/* TOAST NOTIFICATIONS (NEW) */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    color: var(--primary-blue);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    border-left: 6px solid #ccc;
    animation: toastIn 0.4s ease forwards, toastOut 0.4s ease forwards 4s;
    font-weight: 600;
    font-size: 0.9rem;
}

.toast.success { border-left-color: var(--status-green); }
.toast.error { border-left-color: var(--status-red); }
.toast.info { border-left-color: var(--accent-blue); }

.toast i { font-size: 1.2rem; }
.toast.success i { color: var(--status-green); }
.toast.error i { color: var(--status-red); }
.toast.info i { color: var(--accent-blue); }

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* BADGE COUNTER (SIDEBAR) */
.badge-counter {
    background: var(--status-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
}

/* SARCINI 2.0 - ACTION CARDS */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.task-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 6px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.task-card.tip-Urgent { border-left-color: var(--status-red); background: #fff1f2; }
.task-card.tip-Normal { border-left-color: var(--accent-blue); }
.task-card.status-Preluata { border-left-color: var(--status-orange); background: #fffcf0; }

.task-category {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.4;
    margin: 5px 0;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.task-owner {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    color: var(--primary-blue);
}

.task-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.btn-task {
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-task.preia { background: #fef3c7; color: #92400e; }
.btn-task.preia:hover { background: #fde68a; }
.btn-task.rezolva { background: #dcfce7; color: #166534; }
.btn-task.rezolva:hover { background: #bbf7d0; }
.btn-task.anuleaza { background: #fee2e2; color: #991b1b; grid-column: span 2; font-size: 0.7rem; padding: 5px; opacity: 0.7; }

/* ISTORIC SPECIFIC */
.badge-ore {
    font-size: 0.75rem;
    color: var(--accent-blue);
    background: #e0f2fe;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.row-warn { background-color: #fffbeb !important; }
body.dark-mode .row-warn { background-color: #451a03 !important; color: #fef3c7 !important; }
body.dark-mode .row-warn:hover { background-color: #78350f !important; }

.row-del { text-decoration: line-through; opacity: 0.5; background: #f1f5f9 !important; filter: grayscale(1); }
body.dark-mode .row-del { background-color: #1e293b !important; opacity: 0.4; }
body.dark-mode .row-del:hover { background-color: #334155 !important; }

.warn-icon {
    color: var(--status-orange);
    font-weight: bold;
    margin-right: 8px;
    font-size: 1.1rem;
}

.text-verde { color: var(--status-green); }
.text-rosu { color: var(--status-red); }
.font-bold { font-weight: bold; }

