/* header_css.css - Posodobljena verzija s profesionalnim dizajnom in rumenim trakom */

:root {
    --primary-blue: #004899;
    --secondary-yellow: #fbb900;
    --light-blue: #e9f0f7;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-color: #f4f4f4;
    --card-bg: #ffffff;
    --text-color: #333333;
    --header-bg: #004899; /* CGP modra barva */
    --header-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --notification-red: #e53935;
    --notification-green: #25d366;
    --success-green: #28a745;
    --border-light: #e9ecef;
}

.dark-mode {
    /* Mehkejši dark mode – temno sivo/modro ozadje namesto popolnoma črne */
    --bg-color: #181a1f;
    --card-bg: #23262f;
    --text-color: #f1f5f9;
    --text-light: #a0aec0;
    --header-bg: #1f2937;
    --border-light: #3b4252;
}

/* GLAVNI HEADER CONTAINER */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    box-shadow: var(--header-shadow);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: all 0.3s ease;
}

/* RUMENI NAVIGACIJSKI TRAK */
.yellow-nav-bar {
    position: sticky;
    top: 70px;
    z-index: 999;
    background: var(--secondary-yellow);
    height: 35px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease-out;
}

.dark-mode .yellow-nav-bar {
    background: #b8860b; /* Temnejša rumena za dark mode */
}

/* NAZAJ V BAZO GUMB */
.back-to-dashboard {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.back-to-dashboard:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255,255,255,0.3);
    text-decoration: none;
    color: white;
}

.back-to-dashboard:active {
    transform: translateY(0);
}

.dark-mode .back-to-dashboard {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.dark-mode .back-to-dashboard:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.4);
}

/* LEVA SEKCIJA - LOGO KOLESARJA */
.logo-link {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    z-index: 2;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-50%) scale(1.05);
}

.logo-left {
    height: 45px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* USER NAME - PRESTAVLJENO NA LEVO STRAN OB LOGOJIH */
.user-name {
    position: absolute !important;
    left: 140px !important; /* Desno od logo kolesarja */
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 5 !important;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 6px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    text-decoration: none;
}

.user-name:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.user-name:active {
    transform: translateY(-50%) translateY(0);
}

.dark-mode .user-name {
    background: rgba(251, 185, 0, 0.2);
    color: var(--secondary-yellow);
    border-color: rgba(251, 185, 0, 0.3);
}

.dark-mode .user-name:hover {
    background: rgba(251, 185, 0, 0.3);
    border-color: rgba(251, 185, 0, 0.4);
}

/* LOGO V SREDINI */
.logo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 45px;
    width: auto;
    display: block;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* DESNA SEKCIJA - SAMO OBVESTILA IN ODJAVA */
.user-info {
    position: absolute;
    right: 120px; /* Prostor za theme toggle */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 3;
}

/* CHAT GUMB - MODERNI DIZAJN */
.chat-btn {
    position: relative;
    background: linear-gradient(135deg, var(--secondary-yellow), #ffcc33);
    color: var(--text-dark);
    border: none;
    padding: 6px 12px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(251, 185, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 72px;
    justify-content: center;
}

.chat-btn:hover {
    background: linear-gradient(135deg, #ffcc33, var(--secondary-yellow));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 185, 0, 0.4);
}

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

/* === BEL ZVONČEK NA RUMENI PODLAGI === */
.bell-icon-white {
    /* Naredi emoji popolnoma bel */
    filter: brightness(0) invert(1) contrast(200%);
    font-size: 1.1em;
    display: inline-block;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    color: white !important;
}

/* Hover animacija */
.chat-btn:hover .bell-icon-white {
    transform: rotate(15deg) scale(1.1);
    transition: all 0.2s ease;
    filter: brightness(0) invert(1) contrast(200%) drop-shadow(0 0 3px rgba(255,255,255,0.8));
}

/* Za dark mode ohrani bel zvonček */
.dark-mode .bell-icon-white {
    filter: brightness(0) invert(1) contrast(200%);
    color: white !important;
}

/* Zagotovi, da emoji ne spremeni barve */
.bell-icon-white::before {
    color: white !important;
}

/* ALTERNATIVA - če zgoraj ne deluje, uporabi to: */
.chat-btn .bell-icon-white {
    /* Nasilno prestavi barvo */
    -webkit-text-fill-color: white;
    -webkit-text-stroke: 1px rgba(0,0,0,0.1);
    text-fill-color: white;
    
    /* Dodaten drop shadow za boljšo vidnost */
    filter: 
        brightness(0) 
        invert(1) 
        contrast(200%) 
        drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

/* CHAT NOTIFICATION - ELEGANTNEJŠI DIZAJN */
.chat-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--notification-red), #ff5252);
    color: white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-blue);
    z-index: 10;
    animation: pulse-notification 2s infinite;
    box-shadow: 0 2px 8px rgba(233, 57, 53, 0.4);
}

@keyframes pulse-notification {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* LOGOUT GUMB - PROFESIONALNI DIZAJN */
.logout-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 72px;
    justify-content: center;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

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

/* THEME TOGGLE - ELEGANTNEJŠI DIZAJN */
.theme-toggle {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
    color: var(--secondary-yellow);
    transform: translateY(-50%) rotate(180deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dark-mode .theme-toggle {
    background: rgba(251, 185, 0, 0.2);
    color: var(--secondary-yellow);
    border-color: rgba(251, 185, 0, 0.3);
}

.dark-mode .theme-toggle:hover {
    background: var(--secondary-yellow);
    color: var(--text-dark);
}

/* ========================================================================= */
/* === POENOTENA NOTIFICATION PANEL REŠITEV - BERLJIV TEKST === */
/* ========================================================================= */

/* OSNOVNA OVERLAY STRUKTURA */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

/* GLAVNI PANEL */
.notification-panel {
    background: var(--card-bg);
    color: var(--text-color);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

/* HEADER PANELA */
.panel-header {
    background: var(--primary-blue);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* NOTIFICATION CONTENT */
.notification-content {
    flex: 1;
    overflow-y: auto;
    background: var(--card-bg);
    color: var(--text-color);
}

/* NOTIFICATION LIST */
.notification-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* NOTIFICATION ITEM - KLJUČNO ZA BERLJIVOST! */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background: var(--bg-color) !important;
}

.notification-item:last-child {
    border-bottom: none;
}

/* NOTIFICATION ICON */
.notification-icon {
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-color);
    flex-shrink: 0;
}

/* NOTIFICATION TEXT */
.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-text strong {
    display: block;
    font-weight: 600;
    color: var(--text-color) !important;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.notification-text p {
    margin: 0 0 6px 0;
    color: var(--text-color) !important;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-text small {
    color: var(--text-light) !important;
    font-size: 0.8rem;
}

/* NOTIFICATION ACTIONS */
.notification-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.notification-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* NO NOTIFICATIONS STATE */
.no-notifications {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light) !important;
}

.no-notifications p {
    color: var(--text-light) !important;
    font-size: 1rem;
    margin: 0;
}

/* NOTIFICATION ACTIONS BAR (FOOTER) */
.notification-actions-bar {
    padding: 15px 20px;
    text-align: center;
    background: var(--bg-color);
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.secondary-btn {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* DARK MODE OVERRIDES */
.dark-mode .notification-panel {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-light);
}

.dark-mode .notification-item {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-bottom-color: var(--border-light);
}

.dark-mode .notification-item:hover {
    background: var(--bg-color) !important;
}

.dark-mode .notification-text strong,
.dark-mode .notification-text p {
    color: var(--text-color) !important;
}

.dark-mode .notification-text small {
    color: var(--text-light) !important;
}

.dark-mode .no-notifications p {
    color: var(--text-light) !important;
}

.dark-mode .notification-actions-bar {
    background: var(--bg-color);
    border-top-color: var(--border-light);
}

.dark-mode .secondary-btn {
    background: var(--bg-color);
    color: var(--text-color);
    border-color: var(--border-light);
}

/* ========================================================================= */

/* RESPONSIVE DESIGN - TABLET */
@media (max-width: 1024px) {
    .header {
        padding: 0 30px;
    }
    
    .yellow-nav-bar {
        padding: 0 30px;
    }
    
    .left-section {
        left: 30px;
        gap: 15px;
    }
    
    .logo-center {
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .user-info {
        right: 100px;
        gap: 15px;
    }
    
    .user-name {
        max-width: 120px;
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .chat-btn, .logout-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .theme-toggle {
        right: 30px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .back-to-dashboard {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .notification-panel {
        width: 95%;
        max-width: 480px;
    }
}

/* RESPONSIVE DESIGN - MOBILE */
@media (max-width: 768px) {
    .header {
        padding: 0 12px;
        height: 52px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .yellow-nav-bar {
        padding: 0 12px;
        height: 26px;
        top: 52px;
    }
    
    /* Leva stran - logo in ime uporabnika */
    .logo-link {
        left: 15px;
        position: relative;
        transform: none;
    }
    
    .logo-left {
        height: 28px;
    }
    
    .user-name {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin-left: 10px;
        font-size: 0.75rem;
        padding: 4px 8px;
        max-width: 100px;
        z-index: auto !important;
    }
    
    /* Skrij center logo na mobilnih */
    .logo-center {
        display: none;
    }
    
    /* Desna stran - kompaktnejše gumbe */
    .user-info {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        gap: 8px;
        margin-right: 50px; /* Prostor za theme toggle */
    }
    
    .chat-btn, .logout-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        min-width: 45px;
        border-radius: 15px;
        gap: 4px;
    }
    
    /* Samo ikone za gumbe */
    .chat-btn {
        background: var(--secondary-yellow);
        color: white;
    }
    
    .logout-btn {
        background: #dc3545;
        color: white;
    }
    
    .chat-notification {
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
        top: -6px;
        right: -6px;
    }
    
    .theme-toggle {
        right: 12px;
        width: 30px;
        height: 30px;
        font-size: 14px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .back-to-dashboard {
        font-size: 0.75rem;
        padding: 3px 8px;
        gap: 4px;
    }
    
    /* DASHBOARD MOBILE OPTIMIZACIJA */
    .access-info {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        gap: 10px !important;
        padding: 10px 15px !important;
        flex-wrap: wrap !important;
    }
    
    .access-details {
        flex: 1 !important;
        min-width: 200px !important;
        font-size: 0.9rem;
    }
    
    .connection-status {
        display: none !important; /* Skrij connection status na mobilnih */
    }
    
    .today-workers {
        flex: 2 !important;
        min-width: 250px !important;
        background: var(--primary-blue) !important;
        color: white !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        font-size: 0.8rem;
    }
    
    .scrolling-text {
        font-size: 0.75rem !important;
        animation-duration: 18s !important;
    }
    
    .system-badge {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
        margin: 1px !important;
        border-radius: 10px !important;
        background: var(--primary-blue) !important;
        color: white !important;
    }
    
    /* Dashboard content mobile */
    .dashboard-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .dashboard-half h3 {
        flex-direction: column !important;
        text-align: center;
        gap: 8px !important;
    }
    
    .notifications-widget,
    .todo-widget {
        max-height: 150px !important;
        font-size: 0.9rem;
    }
    
    .notification-item,
    .todo-item {
        padding: 10px !important;
        margin-bottom: 8px;
    }
    
    .notification-title {
        font-size: 0.85rem !important;
    }
    
    .notification-body {
        font-size: 0.8rem !important;
    }
    
    .notification-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    
    .big-buttons {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .big-button {
        padding: 15px !important;
    }
    
    .big-button-icon {
        font-size: 2rem !important;
    }
    
    .big-button-title {
        font-size: 1.1rem !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px !important;
    }
    
    .stat-number {
        font-size: 1.6rem !important;
    }
    
    .notification-overlay {
        padding-top: 10px;
    }
    
    .notification-panel {
        width: 95%;
        max-width: 400px;
        max-height: 90vh;
    }
    
    .notification-item {
        padding: 12px 15px;
    }
}

/* ZELO MAJHNI ZASLONI */
@media (max-width: 480px) {
    .header {
        padding: 0 8px;
        height: 46px;
    }
    
    .yellow-nav-bar {
        padding: 0 8px;
        height: 24px;
        top: 46px;
    }
    
    .logo-link {
        left: 8px;
    }
    
    .logo-left {
        height: 24px;
    }
    
    .user-name {
        font-size: 0.65rem;
        padding: 2px 5px;
        max-width: 70px;
        margin-left: 6px;
    }
    
    .user-info {
        gap: 5px;
        margin-right: 38px;
    }
    
    .chat-btn, .logout-btn {
        padding: 4px 6px;
        font-size: 0.65rem;
        min-width: 30px;
        border-radius: 10px;
    }
    
    .chat-notification {
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: -5px;
        right: -5px;
    }
    
    .theme-toggle {
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .back-to-dashboard {
        font-size: 0.75rem;
        padding: 4px 8px;
        gap: 4px;
    }
    
    /* Access info za zelo majhne zaslone */
    .access-info {
        padding: 10px !important;
        gap: 8px !important;
    }
    
    .access-details {
        font-size: 0.85rem;
    }
    
    .system-badge {
        font-size: 0.65rem !important;
        padding: 1px 4px !important;
    }
    
    .today-workers {
        padding: 6px 8px !important;
    }
    
    .scrolling-text {
        font-size: 0.75rem !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .notification-panel {
        width: 98%;
        max-height: 95vh;
    }
    
    .panel-header {
        padding: 10px 15px;
    }
    
    .notification-item {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .notification-actions-bar {
        padding: 10px 15px;
    }
}

/* iPhone SE / zelo majhni zasloni */
@media (max-width: 375px) {
    .header {
        padding: 0 6px;
        height: 42px;
    }

    .yellow-nav-bar {
        padding: 0 6px;
        height: 22px;
        top: 42px;
    }

    .logo-left {
        height: 22px;
    }

    .user-name {
        font-size: 0.6rem;
        padding: 2px 4px;
        max-width: 60px;
        margin-left: 4px;
    }

    .back-to-dashboard {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .notification-panel {
        width: 100%;
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
    }
}

/* ANIMACIJE */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info {
    animation: fadeIn 0.3s ease-out;
}

.yellow-nav-bar {
    animation: fadeIn 0.3s ease-out;
}

.notification-panel {
    animation: fadeIn 0.3s ease-out;
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    .user-info,
    .chat-btn,
    .logout-btn,
    .theme-toggle,
    .logo-link,
    .user-name,
    .yellow-nav-bar,
    .back-to-dashboard,
    .notification-panel {
        animation: none;
        transition: none;
    }
    
    .chat-notification {
        animation: none;
    }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    .chat-btn,
    .logout-btn,
    .theme-toggle,
    .user-name,
    .back-to-dashboard {
        border: 2px solid var(--text-dark);
    }
    
    .chat-notification {
        border: 3px solid var(--header-bg);
    }
    
    .notification-item {
        border: 2px solid var(--border-light) !important;
    }
}

/* FOCUS STYLES */
.chat-btn:focus,
.logout-btn:focus,
.theme-toggle:focus,
.user-name:focus,
.back-to-dashboard:focus,
.close-btn:focus,
.notification-btn:focus,
.secondary-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.dark-mode .chat-btn:focus,
.dark-mode .logout-btn:focus,
.dark-mode .theme-toggle:focus,
.dark-mode .user-name:focus,
.dark-mode .back-to-dashboard:focus,
.dark-mode .close-btn:focus,
.dark-mode .notification-btn:focus,
.dark-mode .secondary-btn:focus {
    outline-color: var(--secondary-yellow);
}

/* PRINT STYLES */
@media print {
    .header {
        background: white !important;
        box-shadow: none;
        border-bottom: 1px solid #000;
    }
    
    .yellow-nav-bar {
        background: #f0f0f0 !important;
    }
    
    .user-info,
    .theme-toggle {
        display: none;
    }
    
    .logo-left, .logo-center {
        filter: none;
    }
    
    .back-to-dashboard {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .notification-overlay,
    .notification-panel {
        display: none !important;
    }
}


/* ============================================
   DARK MODE - Global Styles (appended)
   ============================================ */
.dark-mode {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-tertiary: #333333;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --border-color: #404040;
  --shadow: rgba(0, 0, 0, 0.5);
}

.dark-mode body {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

.dark-mode .header {
  background: #004899 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

.dark-mode .content,
.dark-mode .main-content,
.dark-mode .container {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

.dark-mode .card,
.dark-mode .box,
.dark-mode .panel {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 2px 8px var(--shadow) !important;
  color: var(--text-primary) !important;
}

.dark-mode input,
.dark-mode textarea,
.dark-mode select {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

.dark-mode button:not(.theme-toggle):not(.logout-btn):not(.chat-btn) {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

.dark-mode table {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

.dark-mode th {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border-color) !important;
}

.dark-mode td {
  border: 1px solid var(--border-color) !important;
}

.dark-mode tr:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Modali in overlay-i */
.dark-mode .modal,
.dark-mode .modal-content {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

.dark-mode .notification-panel {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

.dark-mode .notification-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--border-color) !important;
}

.dark-mode .notification-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}


/* NOTIFICATION ACTIONS - POSODOBLJENO (kljukica + koš) */
.notification-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.notification-btn {
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    color: white;
}

.notification-btn.primary {
    background: #28a745;
}

.notification-btn.primary:hover {
    background: #218838;
    transform: scale(1.05);
}

.notification-btn.secondary {
    background: #6c757d;
}

.notification-btn.secondary:hover {
    background: #5a6268;
    transform: scale(1.05);
}

/* DARK MODE – notification buttons */
.dark-mode .notification-btn.primary {
    background: #28a745;
}

.dark-mode .notification-btn.secondary {
    background: #495057;
}


/* Dark-mode: big dashboard buttons v zatemnjeni rumeni */
body.dark-mode .big-button {
  background: #f2b94c !important; /* manj kričeče kot osnovna secondary-yellow */
  color: #1a1300 !important;
  border-color: rgba(0,0,0,0.25) !important;
}

body.dark-mode .big-button:hover {
  filter: brightness(1.03);
}

/* ── FIX: Light mode – .tabs on blue cgp-bg body ──
   .tabs is often placed directly on the blue gradient body,
   making dark tab text (#64748b) hard to read.
   Wrap it in a white pill so text is always readable. */
body:not(.dark-mode) .tabs,
body:not(.dark-mode) .tabbar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-radius: 10px 10px 0 0;
  padding: 4px 8px 0 8px;
}

body:not(.dark-mode) .tab-btn,
body:not(.dark-mode) .tabbar button {
  color: #1e3a5f !important;
}

body:not(.dark-mode) .tab-btn:hover,
body:not(.dark-mode) .tabbar button:hover {
  color: #004899 !important;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL FIX – svetli način, besedilo na modri cgp-bg podlagi
   ═══════════════════════════════════════════════════════════════ */

/* Page headers / titles directly on blue body bg -> white text */
body:not(.dark-mode) .page-header h1,
body:not(.dark-mode) .page-header .title,
body:not(.dark-mode) .page-title,
body:not(.dark-mode) .page-subtitle,
body:not(.dark-mode) h1.section-title {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body:not(.dark-mode) .page-header .sub,
body:not(.dark-mode) .page-header .subtitle,
body:not(.dark-mode) .page-header p,
body:not(.dark-mode) .page-header small,
body:not(.dark-mode) .page-header .muted,
body:not(.dark-mode) .page-header .desc {
  color: rgba(255,255,255,0.85) !important;
}

/* Tabs on blue bg -> white card */
body:not(.dark-mode) .tabs,
body:not(.dark-mode) .tabbar {
  background: rgba(255,255,255,0.92) !important;
  border-radius: 10px 10px 0 0;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
body:not(.dark-mode) .tab-btn:not(.active),
body:not(.dark-mode) .tabbar button:not(.active) {
  color: #1e3a5f !important;
}

/* Dark mode tabs */
body.dark-mode .tabs,
body.dark-mode .tabbar,
body[data-theme="dark"] .tabs,
body[data-theme="dark"] .tabbar {
  background: rgba(20,30,70,0.85) !important;
  border-radius: 10px 10px 0 0;
}

/* Dark mode – native browser <option> elements */
body.dark-mode select option,
body[data-theme="dark"] select option,
html.dark-mode select option {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}


/* ═══════════════════════════════════════════════════════════════
   GLOBAL FIX v2 – info boxe, čipi, opisi direktno na modri podlagi
   ═══════════════════════════════════════════════════════════════ */

/* Info/desc boxe z modrim tekstom na modri podlagi -> bela kartica */
body:not(.dark-mode) .info-box,
body:not(.dark-mode) .info-strip,
body:not(.dark-mode) .info-bar,
body:not(.dark-mode) .desc-box,
body:not(.dark-mode) .note-box,
body:not(.dark-mode) .alert-info,
body:not(.dark-mode) .tip-box {
  background: rgba(255,255,255,0.92) !important;
  color: #1e3a5f !important;
  border-color: rgba(0,72,153,0.2) !important;
}
body:not(.dark-mode) .info-box strong,
body:not(.dark-mode) .info-box code,
body:not(.dark-mode) .alert-info strong {
  color: #004899 !important;
}

/* Section titles/descriptions direktno na modri podlagi */
body:not(.dark-mode) .section-title,
body:not(.dark-mode) .section-desc {
  color: #ffffff !important;
}
body:not(.dark-mode) .section-desc {
  color: rgba(255,255,255,0.85) !important;
}

/* Stat cards v svetlem načinu (vrednosti) – znotraj white karte so OK,
   toda kadar so direktno na bg, jih pobarvamo belo */
body:not(.dark-mode) .stat-val,
body:not(.dark-mode) .stat-value,
body:not(.dark-mode) .stat-number {
  color: #0f172a !important;
}

/* Čipi/filteri z belo podlago – pusti jih bele (so znotraj filter-bar) */
/* CS-dropdown (custom select) na modri podlagi -> bela */
body:not(.dark-mode) .cs-trigger,
body:not(.dark-mode) .cs-dropdown,
body:not(.dark-mode) .cs-option {
  background: #ffffff !important;
  color: #1e293b !important;
}
