/* Quill Editor override styles */
.ql-toolbar {
    background: #f0f0f0;
    border-radius: 8px 8px 0 0;
}

.ql-container {
    background: white;
    color: black;
    font-size: 16px;
    min-height: 400px;
    border-radius: 0 0 8px 8px;
}

/* Dispatcher Daily Work System Styles */
.dispatcher-control-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 198, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.dispatcher-control-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--neon-cyan);
    font-size: 1.2rem;
    font-weight: bold;
}

.dispatcher-form {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 15px;
    align-items: end;
}

.dispatcher-form .form-group {
    margin-bottom: 0;
}

.dispatcher-form select,
.dispatcher-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 10px;
}

.dispatcher-form textarea {
    height: 42px;
    resize: none;
}

.send-task-btn {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.send-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
}

/* Subdivision Task Card */
.subdivision-task-card {
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.4), rgba(123, 31, 162, 0.4));
    border-left: 5px solid #ff6f00;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInTask 0.5s ease-out;
}

@keyframes fadeInTask {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-info {
    flex: 1;
}

.task-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #ff9800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.task-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    line-height: 1.4;
}

.task-actions {
    margin-left: 20px;
}

.complete-task-btn {
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.complete-task-btn:hover {
    background: #27ae60;
    transform: scale(1.05);
}

.task-completed-badge {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

:root {
    /* Primary Surfaces - Titanium & Obsidian */
    --primary: #475569;
    /* Slate 600 */
    --primary-dark: #1e293b;
    /* Slate 800 */
    --primary-light: #94a3b8;
    /* Slate 400 */
    --secondary: #0f172a;
    /* Obsidian */

    /* Accents - Champagne Gold & 24K Gold */
    --accent: #d4af37;
    /* Premium Gold */
    --accent-gold: #ffd700;
    /* Pure Gold */
    --neon-gold: #f59e0b;
    /* Amber Gold Glow */

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Metallic Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.75);
    /* Deep Obsidian Glass */
    --glass-border: rgba(212, 175, 55, 0.25);
    --glass-blur: blur(25px);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);

    /* Glow Effects */
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.4);
    --gold-border: 1.5px solid rgba(212, 175, 55, 0.3);

    /* Text & Hierarchy */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-gold: #ffd700;
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #b4941f 100%);
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--gold-border);
    border-radius: 16px;
    padding: 16px 24px;
    color: var(--accent);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    animation: toast-incoming 0.5s ease-out forwards;
    font-weight: 700;
}

@keyframes toast-incoming {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-outgoing {
    animation: toast-outgoing 0.5s ease-in forwards;
}

@keyframes toast-outgoing {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast i {
    font-size: 1.2rem;
}

.toast-success i {
    color: var(--success);
}

.toast-error i {
    color: var(--danger);
}

.toast-warning i {
    color: var(--warning);
}

.toast-info i {
    color: var(--info);
}

.toast-message {
    flex: 1;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.toast-close:hover {
    opacity: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    background-color: #020617;
    /* Deep Slate / Obsidian */
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

body {
    font-family: 'Inter', 'Exo 2', sans-serif;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.05) 0%, transparent 45%);
    background-attachment: fixed;
    position: relative;
}



/* O'zbekiston Temir Yo'llari logosi va animatsiyalar */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

/* Yangi: Saddle-Whipped Tailors rasmi login fonida */
/* Snow Animation */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(100vh) translateX(20px);
        opacity: 0;
    }
}

/* Yangi Fon va Glassmorphism */
/* Glassmorphism uchun umumiy klasslar yangilandi */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 30px 60px -12px rgba(31, 38, 135, 0.2);
}

/* Glassmorphism uchun umumiy klasslar yangilandi */
/* Smart Future Theme - Glassmorphism & Neon */
/* Smart Future Theme - Refined */
/* Smart Future Theme - Refined Crystal Mode */
/* The root variables above are the single source of truth for the theme */

/* Override global styles for the theme */
/* Navbar Layout & Glassmorphism */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 70px;
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 45px;
    filter: drop-shadow(0 0 10px var(--primary));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 1px;
}

.sub-title {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Global Search Bar */
.navbar-center {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.global-search-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

#globalSearchInput {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    padding: 10px 15px 10px 45px;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

#globalSearchInput:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Search Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    max-height: 450px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

.search-results-dropdown.active {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-item i {
    width: 35px;
    height: 35px;
    background: rgba(0, 198, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
}

.search-item-info {
    display: flex;
    flex-direction: column;
}

.search-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.search-item-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Nav Extra Buttons */
.nav-extra-btn {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #ffd700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-extra-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.4);
}

/* Navbar Tools Collapsible Container */
.nav-tools-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 15px;
    z-index: 1001;
}

.nav-tools-toggle {
    height: 38px;
    padding: 0 18px;
    background: linear-gradient(135deg, #2563eb, #1e4ed8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    overflow: hidden;
}

.nav-tools-toggle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(30deg);
    transition: none;
    pointer-events: none;
}

.nav-tools-toggle:hover::after {
    left: 140%;
    transition: 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-tools-toggle i:first-child {
    font-size: 1.1rem;
    color: #ffd700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.3));
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
    }
}

.toggle-arrow {
    font-size: 0.75rem;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0.8;
}

.nav-tools-toggle:hover {
    background: rgba(0, 198, 255, 0.15);
    border-color: #00f2ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.3);
    color: #fff;
}

.nav-tools-toggle.active {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(0.97);
    box-shadow: 0 0 25px rgba(0, 198, 255, 0.5);
}

.nav-tools-toggle.active i:first-child {
    color: white;
    filter: brightness(1.2) drop-shadow(0 0 8px white);
    animation: none;
}

.nav-tools-toggle.active .toggle-arrow {
    transform: rotate(-180deg);
    color: white;
}

.nav-tools-toggle.active .toggle-arrow {
    transform: rotate(-180deg);
}

.nav-tools-container {
    position: absolute;
    top: 60px;
    right: 0;
    min-width: 290px;
    background: rgba(10, 20, 40, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 15px rgba(0, 198, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.96);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2000;
    padding: 10px;
}

.nav-tools-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tool-list-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1) !important;
    border-radius: 12px !important;
    width: 100% !important;
    position: relative !important;
}

.tool-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: #00f2ff;
    border-radius: 0 3px 3px 0;
    transition: 0.3s;
    transform: translateY(-50%);
}

.tool-list-item i {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
    font-size: 1.15rem !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: 0.3s !important;
}

.tool-list-item span {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
}

.tool-list-item:hover {
    background: rgba(0, 242, 255, 0.06) !important;
    border-color: rgba(0, 242, 255, 0.2) !important;
    color: #fff !important;
    transform: translateX(6px) !important;
}

.tool-list-item:hover::before {
    height: 50%;
}

.tool-list-item:hover i {
    background: linear-gradient(135deg, #00c6ff, #0072ff) !important;
    color: white !important;
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.4) !important;
}

/* Specific Service Themes */
#backupDataBtn i {
    color: #8b949e;
}

.admin-nav-btn i {
    color: #f85149;
}

.map-nav-btn i {
    color: #2ecc71;
}

#openPCHMapBtn i {
    color: #00c6ff;
}

#openAttendanceBtn i {
    color: #3fb950;
}

.video-chat-nav-btn i {
    color: #f1c40f;
}

.defectoscope-nav-btn i {
    color: #e67e22;
}

.integration-nav-btn i {
    color: #a371f7;
}

.nav-tools-container::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 18px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(15, 23, 42, 0.98);
}

/* Sidebar Specifics */
.sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-right: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.sidebar-header {
    border-bottom: 1px solid rgba(0, 198, 255, 0.1);
    padding: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sidebar-menu li {
    border-radius: 12px;
    margin: 8px 15px;
    padding: 12px 20px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.sidebar-menu li:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    color: #ffd700;
    transform: translateX(8px);
    border-color: rgba(212, 175, 55, 0.4);
}

.sidebar-menu li.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent) !important;
    border-left: 4px solid #d4af37 !important;
    color: #ffd700;
    font-weight: 800;
    box-shadow: 5px 0 20px rgba(212, 175, 55, 0.1);
}

.sidebar-menu li i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.sidebar-menu li:hover i,
.sidebar-menu li.active i {
    filter: drop-shadow(0 0 8px var(--primary));
    transform: scale(1.1);
}


/* Glassmorphism uchun umumiy klasslar yangilandi */
.sidebar,
.navbar,
.content-section,
.weather-section,
.chart-container,
.news-card,
.journal-card,
.file-management,
.stat-card,
.chat-window {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
    border-radius: 16px !important;
}

.sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-right: 1px solid rgba(212, 175, 55, 0.2) !important;
}

/* Neon Accents */
/* Neon Accents & Active States */
.sidebar-menu li.active {
    background: linear-gradient(90deg, rgba(0, 198, 255, 0.15), transparent) !important;
    border-left: 3px solid var(--neon-cyan) !important;
    box-shadow: var(--shadow-neon);
    color: var(--neon-cyan);
}

/* Global Icon Styling for Smart Future Theme */
i.fas,
i.fab,
i.far {
    text-shadow: 0 2px 4px rgba(31, 38, 135, 0.1);
    transition: all 0.3s ease;
}

.sidebar-menu li:hover i,
.sidebar-menu li.active i {
    color: #d4af37;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
    transform: scale(1.15) rotate(5deg);
}

/* Specific Icon Glows */
.action-btn i,
.login-logo i,
.logo i {
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Enhanced Card Hover Effects */
.stat-card,
.journal-card,
.news-card,
.content-card {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--border-radius) !important;
    padding: 20px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-card:hover,
.journal-card:hover,
.content-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary) !important;
    box-shadow: 0 15px 40px rgba(0, 198, 255, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(0, 198, 255, 0.6);
}

/* Typography Updates for Theme */
h1,
h2,
h3,
h4,
.stat-number,
.section-title {
    color: var(--text-gold) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.stat-number {
    text-shadow: 0 0 20px rgba(0, 198, 255, 0.6);
}


button,
.action-btn {
    backdrop-filter: blur(5px);
}

/* Scrollbar Design */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563eb, #d4af37);
    border-radius: 10px;
}


.railway-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0.08;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%23ffd700" d="M100,20 A80,80 0 1,0 100,180 A80,80 0 1,0 100,20 z M100,40 A60,60 0 1,1 100,160 A60,60 0 1,1 100,40 z"/><path fill="%23ffd700" d="M100,60 L140,100 L100,140 L60,100 Z"/><path fill="%230c1a2d" d="M100,70 L130,100 L100,130 L70,100 Z"/><text x="100" y="190" text-anchor="middle" fill="%23ffd700" font-size="14" font-weight="bold">OʻZBEKISTON TEMIR YOʻLLARI</text></svg>') no-repeat center;
    background-size: contain;
    animation: logoFloat 20s infinite ease-in-out;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    25% {
        transform: translate(-50%, -52%) scale(1.05) rotate(5deg);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(0deg);
    }

    75% {
        transform: translate(-50%, -48%) scale(1.05) rotate(-5deg);
    }
}

.moving-train {
    position: absolute;
    bottom: 10%;
    width: 120px;
    height: 60px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border-radius: 10px;
    animation: trainMove 25s linear infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.moving-train::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 10px;
    width: 30px;
    height: 15px;
    background: #ffd700;
    border-radius: 5px 5px 0 0;
}

.moving-train::after {
    content: '🚂';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #ffd700;
    font-size: 20px;
}

@keyframes trainMove {
    0% {
        left: -150px;
    }

    100% {
        left: 100%;
    }
}

.rail-tracks {
    position: absolute;
    bottom: 8%;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 20px,
            #ffd700 20px,
            #ffd700 40px);
    animation: trackMove 1s linear infinite;
}

@keyframes trackMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 0;
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: floatElement 15s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    font-size: 40px;
    color: #ffd700;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    font-size: 35px;
    color: #3498db;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    top: 40%;
    left: 20%;
    font-size: 50px;
    color: #2ecc71;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    top: 70%;
    left: 70%;
    font-size: 30px;
    color: #e74c3c;
    animation-delay: 6s;
}

@keyframes floatElement {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(0deg);
    }

    75% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

/* Login sahifasi - GLASSMORPHISM DIZAYN */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #020617 100%);
    z-index: 1;
}

/* login_bg.png fon (video ustidan) */
.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../login_bg.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    opacity: 0.8;
}


#loginVideoBackground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Make overlay lighter on the right side to see video better */
    background: linear-gradient(90deg, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.4) 100%);
    backdrop-filter: blur(0px);
    /* Remove overall blur so video is clear on right */
    z-index: 1;
}

.login-container::before {
    /* Removed old overlay to use .video-overlay instead */
    display: none;
}

/* floatCircle animation for decorative elements */
@keyframes floatCircle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Railway track decoration */
.login-container .rail-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 30px,
            rgba(139, 90, 43, 0.3) 30px,
            rgba(139, 90, 43, 0.3) 35px);
    opacity: 0.5;
}

@keyframes borderGlowVertical {
    0% {
        background-position: 50% 0%;
        opacity: 0.5;
    }

    50% {
        background-position: 50% 100%;
        opacity: 1;
    }

    100% {
        background-position: 50% 0%;
        opacity: 0.5;
    }
}

.login-box {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    border: 1.5px solid var(--glass-border) !important;
    padding: 3.5rem !important;
    box-shadow: var(--glass-shadow) !important;
    position: relative;
    overflow: hidden;
    z-index: 100;
    pointer-events: all;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 95%;
    max-width: 500px;
    border-radius: 30px !important;
    transition: var(--transition-premium);
}

.login-box:hover {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2) !important;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
    background-size: 100% 200%;
    animation: borderGlowVertical 3s linear infinite;
}

.login-box::after {
    display: none;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.login-logo img {
    width: 150px;
    height: 150px;
    /* Force square for perfect circle */
    object-fit: cover;
    /* Ensure image isn't squashed */
    border-radius: 50%;
    /* mix-blend-mode removed to show original colors, border-radius removes corners */
    filter: drop-shadow(0 0 20px rgba(0, 198, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.5)) brightness(1.2);
    animation: logoGlow 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.login-logo img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(0, 198, 255, 1)) drop-shadow(0 0 60px rgba(255, 215, 0, 0.8)) brightness(1.3);
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.7));
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.login-title {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.login-title i {
    color: var(--accent-gold);
    background: none;
    -webkit-text-fill-color: initial;
    filter: drop-shadow(0 0 15px var(--accent-gold));
    animation: trainMove 3s ease-in-out infinite;
}

@keyframes trainMove {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }
}

.login-subtitle {
    color: var(--text-silver);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.login-subtitle i {
    color: var(--primary-gold);
    margin-right: 8px;
}

/* Floating decoration circles */
.login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
    /* Block interaction */
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: float1 15s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    animation: float2 20s ease-in-out infinite;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    top: 40%;
    left: 15%;
    animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-30px, 30px) rotate(180deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.1;
    }

    50% {
        transform: translate(40px, -40px);
        opacity: 0.2;
    }
}

/* Login footer */
.login-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-footer i {
    color: var(--accent-gold);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group label i {
    color: var(--primary-gold);
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.8rem;
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6) !important;
    color: var(--text-silver) !important;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition-premium);
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: rgba(226, 232, 240, 0.3);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    background: rgba(15, 23, 42, 0.8) !important;
}

.form-group .input-icon {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    color: rgba(212, 175, 55, 0.4);
    transition: all 0.3s;
    pointer-events: none;
}

.form-group:focus-within .input-icon {
    color: var(--accent-gold);
}

.login-btn {
    background: var(--gold-gradient) !important;
    background-size: 200% auto;
    color: #000 !important;
    border: 1px solid var(--accent-gold) !important;
    padding: 1.2rem 2.5rem !important;
    border-radius: 12px !important;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-premium) !important;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4) !important;
}

.login-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.6) !important;
    background-position: right center;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.6s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 198, 255, 0.6), 0 0 40px rgba(0, 198, 255, 0.3);
}

.login-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.4);
}

.login-btn i {
    margin-right: 10px;
}

.login-error {
    color: #ff6b6b;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    display: none;
    backdrop-filter: blur(5px);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-badge {
    animation: pulse 2s infinite ease-in-out;
    display: inline-block;
}

/* Asosiy tizim */
.main-system {
    display: none;
}

/* Temir yo'l tematik elementlar */
.rail-top {
    height: 6px;
    background: linear-gradient(90deg, #ffd700, #ffa500, #ffd700);
    position: relative;
    box-shadow: 0 2px 15px rgba(255, 215, 0, 0.6);
    animation: railGlow 2s infinite alternate;
}

@keyframes railGlow {
    0% {
        box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
    }

    100% {
        box-shadow: 0 2px 20px rgba(255, 215, 0, 0.8);
    }
}

.rail-bottom {
    height: 6px;
    background: linear-gradient(90deg, #ffd700, #ffa500, #ffd700);
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 15px rgba(255, 215, 0, 0.6);
    z-index: 1000;
    animation: railGlow 2s infinite alternate-reverse;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 6px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid #ffd700;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.4rem;
    gap: 12px;
}

.logo img {
    width: 50px;
    height: 50px;
    /* Force square for perfect circle */
    object-fit: cover;
    border-radius: 50%;
    /* mix-blend-mode removed, border-radius removes corners */
    filter: drop-shadow(0 0 8px rgba(0, 198, 255, 0.6)) drop-shadow(0 0 15px rgba(255, 215, 0, 0.5)) brightness(1.2);
    transition: all 0.3s ease;
    animation: navLogoGlow 4s ease-in-out infinite;
}

.logo img:hover {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(0, 198, 255, 1)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.8)) brightness(1.3);
}

@keyframes navLogoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 6px rgba(0, 198, 255, 0.4)) drop-shadow(0 0 12px rgba(255, 215, 0, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(0, 198, 255, 0.7)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    }
}

.logo i {
    color: #ffd700;
    margin-right: 12px;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: trainPulse 3s infinite;
}

@keyframes trainPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1a2a3a;
    animation: avatarRotate 10s infinite linear;
}

@keyframes avatarRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.logout-btn {
    background: rgba(231, 76, 60, 0.2);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    position: fixed;
    top: 86px;
    bottom: 6px;
    overflow-y: auto;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    border-right: 3px solid #ffd700;
    z-index: 999;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.sidebar-header h3 {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-menu {
    padding: 1.5rem 0;
}

.sidebar-menu li {
    list-style: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-left: 4px solid transparent;
    margin: 5px 10px;
    border-radius: 8px;
}

.sidebar-menu li i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    color: #ffd700;
    font-size: 1.1rem;
}

.sidebar-menu li:hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2) 0%, transparent 100%);
    border-left: 4px solid #ffd700;
    transform: translateX(5px);
}

.sidebar-menu li.active {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.3) 0%, transparent 100%);
    border-left: 4px solid #3498db;
    color: #ffd700;
    box-shadow: inset 0 0 20px rgba(52, 152, 219, 0.2);
}

/* Content */
.content {
    flex: 1;
    margin-left: 250px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.content-section {
    display: none;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.4) 0%, rgba(42, 82, 152, 0.4) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.6s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Weather section styles */
.weather-section {
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.4) 0%, rgba(42, 82, 152, 0.4) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.weather-title {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-controls {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.weather-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.weather-btn.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #3498db;
}

.weather-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.refresh-weather {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-weather:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* Weather container */
.weather-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.weather-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
    text-align: center;
}

.weather-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.weather-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.weather-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.detail-value {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Hourly forecast */
.hourly-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hourly-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.hourly-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.hourly-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hourly-temp {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hourly-icon {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

/* Daily forecast */
.daily-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.daily-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.daily-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.daily-day {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.daily-temp {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.daily-icon {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

/* Weather loading */
.weather-loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.weather-error {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Raqobat grafigi */
.competition-section {
    margin: 2rem 0;
}

.chart-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 1.5rem;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Daily Goal Card */
.daily-goal-card {
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.1), rgba(41, 128, 185, 0.2));
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid #00c6ff;
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.daily-goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 198, 255, 0.4);
}

.daily-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.daily-goal-title {
    color: #00c6ff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.daily-goal-content {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #1e293b;
    line-height: 1.6;
    text-align: center;
    font-weight: 700;
}

.daily-goal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.complete-goal-btn {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 198, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.complete-goal-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.6);
}

.complete-goal-btn:active {
    transform: scale(0.95);
}

.goal-completed-badge {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    display: none;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
    display: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ffd700;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
    }
}


.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-title {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 600;
}

.chart-controls {
    display: flex;
    gap: 1rem;
}

.chart-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.chart-btn.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #3498db;
}

.chart-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Yangiliklar bo'limi */
.news-section {
    margin: 2rem 0;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.news-title {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.refresh-news {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: var(--glass-border);
    cursor: pointer;
    box-shadow: var(--glass-shadow);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.news-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.7) 0%, rgba(41, 128, 185, 0.7) 100%);
}

.news-image i {
    position: relative;
    z-index: 1;
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #1a2a3a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.news-title-card {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
}

.news-excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.loading-news {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.news-error {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Bo'lim oynalari */
/* Removed legacy .department-window declaration */

/* Removed .department-window.active to prevent clash with windows.css */

/* Removed windowOpen keyframes to prevent layout shifts */

.window-header {
    background: linear-gradient(90deg, #2563eb 0%, #1e4ed8 100%);
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #d4af37;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.window-header h2 {
    color: white !important;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-window {
    background: #e74c3c;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

.close-window:hover {
    background: #c0392b;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.6);
}

.window-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1999;
}

.overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Integratsiya oynalari */
/* Removed conflicting .integration-window declaration */

/* Removed .integration-window.active to prevent clash with windows.css */

.integration-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.integration-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.integration-tab {
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.integration-tab.active {
    background: rgba(37, 99, 235, 0.1);
    border-bottom: 3px solid #d4af37;
    color: #ffd700;
    font-weight: 800;
}

.integration-tab:hover {
    background: rgba(52, 152, 219, 0.2);
}

.integration-frame {
    flex: 1;
    border: none;
    background: white;
    width: 100%;
    height: 100%;
}

.integration-panel {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Fayl boshqaruvi paneli */
.file-management {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.file-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.control-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.control-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.6);
}

.control-btn.green {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.control-btn.green:hover {
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.6);
}

.control-btn.red {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.control-btn.red:hover {
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.6);
}

.control-btn.orange {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.control-btn.orange:hover {
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.6);
}

.folder-selector {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.folder-selector select,
.folder-selector input {
    padding: 12px 16px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 220px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.folder-selector select:focus,
.folder-selector input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* Fayllar jadvali */
.files-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    margin-top: 1.5rem;
    border: var(--glass-border);
}

.files-table th {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.files-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(31, 38, 135, 0.05);
    color: #1e293b;
    font-weight: 500;
    transition: background 0.3s;
}

.files-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.file-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.action-btn.view {
    background: #3498db;
    color: white;
}

.action-btn.edit {
    background: #f39c12;
    color: white;
}

.action-btn.check {
    background: #2ecc71;
    color: white;
}

.action-btn.delete {
    background: #e74c3c;
    color: white;
}

.action-btn.integrate {
    background: #9b59b6;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.status-pending {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.status-approved {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.status-rejected {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

/* Tahrirlash oynalari */
.editor-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 98%;
    height: 96vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    z-index: 3000;
    border: 3px solid #ffd700;
    overflow: hidden;
}

.editor-window.active {
    display: flex;
    flex-direction: column;
}

.editor-header {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #ffd700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.editor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-toolbar {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 2rem;
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toolbar-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.editor-textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    font-size: 1.05rem;
    resize: none;
    margin: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.editor-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.editor-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-end;
    padding: 1.5rem 2.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Google Docs style editor */
.docs-editor {
    flex: 1;
    background: white;
    border-radius: 15px;
    overflow: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin: 1.5rem;
    display: flex;
    flex-direction: column;
}

.docs-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.docs-toolbar-group {
    display: flex;
    gap: 5px;
    border-right: 1px solid #e0e0e0;
    padding-right: 1rem;
}

.docs-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
}

.docs-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.docs-content {
    flex: 1;
    padding: 2rem;
    background: white;
    color: #333;
    line-height: 1.6;
    min-height: 500px;
    outline: none;
}

.docs-content:focus {
    outline: none;
}

/* Excel editor - Google Sheets style */
.sheets-editor {
    flex: 1;
    background: white;
    border-radius: 15px;
    overflow: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin: 1.5rem;
    display: flex;
    flex-direction: column;
}

.sheets-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sheets-toolbar-group {
    display: flex;
    gap: 5px;
    border-right: 1px solid #e0e0e0;
    padding-right: 1rem;
}

.sheets-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
}

.sheets-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.sheets-grid {
    flex: 1;
    overflow: auto;
    background: white;
    position: relative;
}

.sheets-table {
    border-collapse: collapse;
    background: white;
    color: #333;
    min-width: 100%;
}

.sheets-table th,
.sheets-table td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    min-width: 120px;
    height: 30px;
    position: relative;
}

.sheets-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sheets-table td {
    background: white;
}

.sheets-table td.selected {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}

.cell-input {
    width: 100%;
    height: 100%;
    border: none;
    padding: 4px 8px;
    background: transparent;
    font-size: 0.95rem;
    outline: none;
}

.cell-input:focus {
    background: #fffde7;
}

.row-header {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    position: sticky;
    left: 0;
    z-index: 5;
}

.corner-header {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 20;
}

/* Papka tarkibi */
.folder-contents {
    display: none;
    margin-top: 1.5rem;
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.folder-contents.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.folder-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(31, 38, 135, 0.05);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 12px;
    margin: 5px 0;
    color: #1e293b;
}

.folder-item:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: translateX(8px);
    color: #ffd700;
}

.folder-item i {
    margin-right: 12px;
    color: #d4af37;
    font-size: 1.2rem;
}

/* Statistika */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border) !important;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.1);
    border-color: rgba(212, 175, 55, 0.5) !important;
}

.stat-number {
    font-size: 3rem;
    color: #ffd700;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(31, 38, 135, 0.1);
}

.stat-card div:last-child {
    color: #475569;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Xarita bo'limi */
.map-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Confetti Container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
    display: none;
}

#live-map {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

/* Bo'limlar ro'yxati */
.section-title {
    color: #ffd700;
    margin: 1rem 0;
    padding-bottom: 0.5rem;
    display: block;
    font-size: 1.9rem;
    font-weight: 850;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.journal-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

@media (min-width: 1600px) {
    .journal-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.journal-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
}

.journal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #d4af37 0%, #ffd700 100%);
    box-shadow: 2px 0 10px rgba(212, 175, 55, 0.3);
}

.journal-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.12), 0 0 20px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(212, 175, 55, 0.5);
}

.journal-card h4 {
    color: #ffd700;
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    font-weight: 850;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.journal-card p {
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 600;
}

/* File preview */
.file-preview {
    flex: 1;
    background: white;
    border-radius: 15px;
    overflow: auto;
    padding: 1.5rem;
    color: #333;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.word-preview {
    line-height: 1.7;
    font-size: 1.05rem;
}

.pdf-preview {
    width: 100%;
    height: 100%;
}

/* Bo'lim kontenti */
.department-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.content-card h3 {
    color: #ffd700;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 800;
}

.content-card ul {
    list-style: none;
    padding: 0;
}

.content-card li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-card li:last-child {
    border-bottom: none;
}

/* Fayl ko'rinishi */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.file-item {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.file-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.1);
}

.file-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d4af37;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.2));
}

.file-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffd700;
    word-break: break-word;
}

.file-info {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}

/* Muddat eslatmasi */
.deadline-reminder {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.reminder-text {
    font-weight: 600;
}

.reminder-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

/* Google Docs style file preview */
.docs-preview-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    background: white;
    border-radius: 15px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    z-index: 3000;
    overflow: hidden;
    flex-direction: column;
}

.docs-preview-window.active {
    display: flex;
    animation: windowOpen 0.2s ease-out;
}

.docs-preview-header {
    background: #f8f9fa;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.docs-preview-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a2a3a;
    font-size: 1.2rem;
    font-weight: 600;
}

.docs-preview-content {
    flex: 1;
    background: white;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.docs-preview-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.8rem 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.docs-preview-toolbar-group {
    display: flex;
    gap: 5px;
    border-right: 1px solid #e0e0e0;
    padding-right: 1rem;
}

.docs-preview-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.docs-preview-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.docs-preview-body {
    flex: 1;
    padding: 2rem 3rem;
    background: white;
    color: #333;
    line-height: 1.6;
    min-height: 500px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.docs-preview-body h1,
.docs-preview-body h2,
.docs-preview-body h3 {
    color: #1a2a3a;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.docs-preview-body p {
    margin-bottom: 1rem;
}

.docs-preview-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
}

.docs-preview-body table th,
.docs-preview-body table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.docs-preview-body table th {
    background: #f8f9fa;
    font-weight: 600;
}

.docs-preview-footer {
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Google Sheets style preview */
.sheets-preview-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    background: white;
    border-radius: 15px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    z-index: 3000;
    overflow: hidden;
    flex-direction: column;
}

.sheets-preview-window.active {
    display: flex;
    animation: windowOpen 0.2s ease-out;
}

.sheets-preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.sheets-preview-grid {
    flex: 1;
    overflow: auto;
    background: white;
}

/* Chart editor */
.chart-editor-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1200px;
    height: 80vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    z-index: 3000;
    border: 3px solid #ffd700;
    overflow: hidden;
}

.chart-editor-window.active {
    display: flex;
    flex-direction: column;
}

.chart-editor-header {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #ffd700;
}

.chart-editor-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    overflow: hidden;
}

.chart-editor-controls {
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-editor-preview {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-control-group {
    margin-bottom: 1.5rem;
}

.chart-control-group label {
    display: block;
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.chart-control-group select,
.chart-control-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.chart-color-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.color-option.active {
    border-color: white;
    transform: scale(1.1);
}

.chart-values-editor {
    margin-top: 1rem;
}

.chart-value-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.chart-value-input {
    display: flex;
    flex-direction: column;
}

.chart-value-input label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive dizayn */
@media (max-width: 1200px) {
    .sidebar {
        width: 250px;
    }

    .content {
        margin-left: 250px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }

    .content {
        margin-left: 220px;
        padding: 2rem;
    }

    .journal-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .news-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }

    .sidebar-menu li span {
        display: none;
    }

    .sidebar-header h3 {
        display: none;
    }

    .content {
        margin-left: 80px;
        padding: 1.5rem;
    }

    .journal-list {
        grid-template-columns: 1fr;
    }

    .news-container {
        grid-template-columns: 1fr;
    }

    /* Removed legacy .department-window responsive override */

    .file-controls {
        flex-direction: column;
    }

    .folder-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .folder-selector select,
    .folder-selector input {
        width: 100%;
    }

    .editor-window {
        width: 98%;
        height: 95vh;
    }

    .floating-element {
        display: none;
    }

    .railway-logo {
        width: 200px;
        height: 200px;
    }

    .weather-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .weather-controls {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        gap: 0.5rem;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .window-content {
        padding: 1.5rem;
    }

    .file-actions {
        flex-direction: column;
    }

    .login-box {
        padding: 2rem;
        margin: 1rem;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .chart-controls {
        flex-wrap: wrap;
    }

    .moving-train {
        display: none;
    }

    .hourly-forecast {
        grid-template-columns: repeat(3, 1fr);
    }

    .daily-forecast {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Video Chat Nav Button */
.video-chat-nav-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #1a2a3a;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    position: relative;
}

.video-chat-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.video-chat-nav-btn.active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(46, 204, 113, 0.8);
    }
}

/* Admin Nav Button */
.admin-nav-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.admin-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

/* Map Nav Button */
.map-nav-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.map-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

/* Admin Panel Modal */
.admin-panel-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-panel-modal.active {
    display: flex;
}

.admin-panel-content {
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    border: 3px solid #ffd700;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.admin-panel-header {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-panel-header h2 {
    color: #ffd700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-panel-close {
    background: rgba(231, 76, 60, 0.8);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.admin-panel-close:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.admin-panel-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-tab-btn.active {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border-bottom: 3px solid #ffd700;
}

.admin-panel-body {
    padding: 1.5rem;
    max-height: calc(90vh - 150px);
    overflow-y: auto;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Train Map Modal */
.train-map-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.train-map-modal.active {
    display: flex;
}

.train-map-header {
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
    border-bottom: 3px solid #ffd700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.train-map-header h2 {
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.train-map-body {
    flex: 1;
    display: flex;
}

.train-map-container {
    flex: 1;
    position: relative;
}

#trainLiveMap {
    width: 100%;
    height: 100%;
}

.train-schedule-panel {
    width: 350px;
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    border-left: 2px solid #ffd700;
    padding: 1rem;
    overflow-y: auto;
}

.schedule-title {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.train-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.train-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.train-number {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.train-route {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.train-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.train-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.train-status.moving {
    background: #27ae60;
    color: white;
}

.train-status.station {
    background: #3498db;
    color: white;
}

.train-status.waiting {
    background: #f39c12;
    color: white;
}

/* Worker Markers */
.worker-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Video Chat Panel */
.video-chat-panel {
    position: fixed;
    right: 0;
    top: 86px;
    width: 320px;
    height: calc(100vh - 92px);
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    border-left: 3px solid #ffd700;
    z-index: 998;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-chat-panel.hidden {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.video-chat-panel.collapsed {
    transform: translateX(280px);
}

.video-chat-header {
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-chat-header h3 {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-chat-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.video-chat-toggle:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: rotate(180deg);
}

.video-chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    overflow-y: auto;
}

.video-preview-container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.video-preview-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    gap: 10px;
}

.video-preview-placeholder i {
    font-size: 3rem;
    color: #ffd700;
    opacity: 0.5;
}

.video-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.video-control-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
}

.video-control-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.6);
}

.video-control-btn.active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.4);
}

.video-control-btn.danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

.video-control-btn.danger:hover {
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.6);
}

.participants-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.participants-header {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participant-count {
    background: #2ecc71;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.3s;
}

.participant-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.participant-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1a2a3a;
    font-size: 0.85rem;
}

.participant-info {
    flex: 1;
}

.participant-name {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.participant-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}

.participant-status .online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ecc71;
}

.video-chat-actions {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-action-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #1a2a3a;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.video-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.video-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.video-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Content with video chat */
.content.with-video-chat {
    margin-right: 320px;
}

@media (max-width: 1200px) {
    .video-chat-panel {
        width: 280px;
    }

    .content.with-video-chat {
        margin-right: 280px;
    }
}

@media (max-width: 992px) {
    .video-chat-panel {
        width: 260px;
    }

    .content.with-video-chat {
        margin-right: 260px;
    }
}

@media (max-width: 768px) {
    .video-chat-panel {
        width: 100%;
        transform: translateX(100%);
    }

    .video-chat-panel.active {
        transform: translateX(0);
    }

    .content.with-video-chat {
        margin-right: 0;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

/* HRM Section Styles */
.hrm-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hrm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hrm-header h2 {
    color: #00c6ff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.hrm-header h2 i {
    color: #ffd700;
}

.hrm-controls {
    display: flex;
    gap: 6px;
}

.hrm-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
}

.hrm-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hrm-btn.primary {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border: none;
}

.hrm-btn.primary:hover {
    box-shadow: 0 5px 20px rgba(0, 198, 255, 0.4);
}

.hrm-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    min-height: 350px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hrm-container iframe {
    display: block;
}

.hrm-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a2a4a 0%, #0d1b2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hrm-fallback-content {
    text-align: center;
    padding: 1.2rem;
}

.hrm-fallback-content i {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 0.6rem;
}

.hrm-fallback-content h3 {
    color: white;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.hrm-fallback-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.hrm-open-btn {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hrm-open-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 198, 255, 0.5);
}

/* Weather Section Styles */
.weather-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.weather-title {
    color: #ffd700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.weather-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.weather-btn:hover,
.weather-btn.active {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-color: transparent;
}

.refresh-weather {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.refresh-weather:hover {
    background: rgba(255, 215, 0, 0.3);
}

.weather-container {
    min-height: 120px;
}

.weather-loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.weather-current {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-icon {
    font-size: 4rem;
    color: #ffd700;
}

.weather-icon-img {
    width: 100px;
    height: 100px;
}

.weather-temp {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.weather-details {
    flex: 1;
}

.weather-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.weather-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.weather-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.weather-info-item i {
    color: #00c6ff;
    width: 20px;
}

.weather-location {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-location i {
    color: #ffd700;
}

.weather-update-time,
.weather-offline {
    margin-left: auto;
    font-size: 0.8rem;
}

.weather-offline {
    color: #ff6b6b;
}

/* Competition Chart Section */
.competition-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-title {
    color: #ffd700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.chart-btn:hover,
.chart-btn.active {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-color: transparent;
}

.chart-container {
    height: 350px;
    position: relative;
}

/* News Section */
.news-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-title {
    color: #ffd700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.refresh-news {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.refresh-news:hover {
    background: rgba(255, 215, 0, 0.3);
}

.news-container {
    min-height: 100px;
}

.loading-news {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Collapsible Section Styles */
.collapsible-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.collapsible-header {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 198, 255, 0.1));
}

.collapsible-header:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(0, 198, 255, 0.2));
}

.collapsible-header .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffd700;
    font-size: 1.2rem;
}

.collapsible-header .section-title i:first-child {
    color: #00c6ff;
}

.toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.collapsible-content {
    padding: 1.5rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smart Monitoring Styles */
.smart-monitoring-section {
    background: rgba(20, 30, 48, 0.6);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 198, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.05);
}

.pulse-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.monitor-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.monitor-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 198, 255, 0.3);
}

.monitor-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 198, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00c6ff;
}

.temperature-card .monitor-icon {
    color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
}

.defect-card .monitor-icon {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.wear-card .monitor-icon {
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
}

.monitor-info {
    flex: 1;
}

.monitor-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.gauge-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e67e22;
}

.gauge-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 5px 0;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #f1c40f, #e67e22);
    border-radius: 3px;
}

.status-text {
    font-size: 0.8rem;
    font-weight: 500;
}

.status-text.warning {
    color: #f1c40f;
}

.status-text.danger {
    color: #e74c3c;
}

.defect-stat strong {
    font-size: 1.4rem;
    color: white;
    display: block;
}

.mini-chart-container {
    height: 30px;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin: 5px 0;
}

.defect-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.defect-point {
    position: absolute;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid white;
}

.wear-item {
    margin-bottom: 5px;
}

.wear-item span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 2px;
}

.progress-mini {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 2px;
}

.progress-bar-fill {
    height: 100%;
    background: #9b59b6;
    border-radius: 2px;
}

/* New Features CSS */
.kanban-board {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban-column {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    min-width: 300px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.kanban-header {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.kanban-items {
    flex: 1;
    min-height: 200px;
}

.kanban-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    cursor: grab;
    transition: transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.kanban-item:active {
    cursor: grabbing;
}

.kanban-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ai-assistant-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 114, 255, 0.5);
    z-index: 9999;
    transition: transform 0.3s;
    animation: pulse 2s infinite;
}

.ai-assistant-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #1a2a3a;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

.chat-header {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    padding: 1rem;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.user {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-end;
    color: white;
    border-bottom-right-radius: 2px;
}

.chat-msg.bot {
    background: rgba(0, 114, 255, 0.2);
    align-self: flex-start;
    color: #e0e0e0;
    border: 1px solid rgba(0, 114, 255, 0.3);
    border-bottom-left-radius: 2px;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
}

.chat-input:focus {
    outline: none;
    border-color: #00c6ff;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: rgba(30, 60, 114, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    backdrop-filter: blur(5px);
}

.maintenance-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    table-layout: fixed;
}

.maintenance-table th {
    padding: 1rem;
    text-align: left;
    color: #ffd700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.maintenance-table td {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.maintenance-table tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.maintenance-table tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.repair {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

.status-badge.check {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.4);
}

.status-badge.ok {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.department-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9990;
    display: none;
}

.department-overlay.active {
    display: block;
}

/* Removed conflicting .integration-window and .editor-window declarations */
.editor-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 30, 48, 0.95);
    z-index: 10000;
}

/* History Modal Styles */
#history-modal-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    height: 100%;
}

.history-date-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-date-item {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-date-item:hover,
.history-date-item.active {
    background: rgba(0, 198, 255, 0.2);
    color: white;
}

.history-date-item i {
    margin-right: 10px;
}

.history-details {
    overflow-y: auto;
    padding-right: 10px;
}

.history-report-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.history-report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.history-report-time {
    font-size: 0.8rem;
    color: #aaa;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.editor-header h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.editor-body {
    flex: 1;
    overflow: auto;
    background: #f5f5f5;
    /* Light background for editors */
    border-radius: 8px;
    position: relative;
}

/* Ribbon Interface Styling */
.ribbon-container {
    background: #f3f3f3;
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ribbon-tabs {
    display: flex;
    background: #2b579a;
    /* Word Blue default */
    padding-left: 10px;
}


/* Digital Journal Modal Styles */
.journal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10001;
    /* Higher than department overlay */
    display: none;
    justify-content: center;
    align-items: center;
}

.journal-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.journal-window {
    background: #1e272e;
    width: 90%;
    max-width: 1200px;
    height: 85%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.journal-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.journal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.journal-body {
    flex: 1;
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.journal-controls {
    display: flex;
    gap: 10px;
}

.journal-table-container {
    flex: 1;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.journal-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.journal-table th,
.journal-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #d0d0d0;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.journal-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.journal-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge.done {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-badge.pending {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.ribbon-tabs.excel-theme {
    background: #217346;
    /* Excel Green */
}

.ribbon-tab {
    padding: 8px 15px;
    cursor: pointer;
    color: white;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.ribbon-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ribbon-tab.active {
    background: #f3f3f3;
    color: #333;
    font-weight: 500;
}

.ribbon-content {
    background: #f3f3f3;
    padding: 5px 10px;
    display: flex;
    gap: 20px;
    height: 90px;
    align-items: stretch;
}

.ribbon-group {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
    padding-right: 15px;
    justify-content: space-between;
}

.ribbon-group-label {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.ribbon-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
    flex: 1;
}

.ribbon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    min-width: 45px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
    background: transparent;
    color: #333;
}

.ribbon-btn:hover {
    background: #e2e2e2;
    border-color: #bbb;
}

.ribbon-btn i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.ribbon-btn span {
    font-size: 0.75rem;
}

.ribbon-btn.small {
    flex-direction: row;
    gap: 5px;
    min-width: auto;
    padding: 3px 5px;
}

.ribbon-btn.small i {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Formula Bar Styling */
.formula-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #ccc;
    padding: 3px 10px;
    gap: 10px;
}

.cell-address {
    min-width: 50px;
    border-right: 1px solid #ddd;
    padding-right: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #217346;
}

.formula-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    padding: 2px 5px;
}

/* Word Editor specific adjustments */
#docsEditor {
    height: 100%;
    background: #fff;
    border: none !important;
    padding: 20px;
}

.editor-body.docs-style {
    background: #f0f0f0;
    padding: 20px;
    display: flex;
    justify-content: center;
    overflow: auto;
}

.paper-container {
    background: white;
    width: 210mm;
    /* A4 width */
    min-height: 297mm;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 50px 70px;
    margin: 0 auto;
    box-sizing: border-box;
}

.ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Excel Editor Styling */
.excel-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    background: #fff;
    color: #000;
}

.sheets-table {
    border-collapse: collapse;
    min-width: 100%;
}

.sheets-table th {
    background: #e6e6e6;
    border: 1px solid #c0c0c0;
    padding: 5px;
    text-align: center;
    font-weight: normal;
    color: #333;
    font-size: 13px;
    min-width: 80px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sheets-table .row-header {
    background: #e6e6e6;
    border: 1px solid #c0c0c0;
    width: 40px;
    min-width: 40px;
    color: #333;
    position: sticky;
    left: 0;
    z-index: 11;
}

.sheets-table .corner-header {
    z-index: 12;
    top: 0;
    left: 0;
}

.sheets-table td {
    border: 1px solid #e0e0e0;
    padding: 0;
    min-width: 100px;
    height: 30px;
    position: relative;
}

.sheets-table td:hover {
    background: rgba(0, 0, 0, 0.02);
}

.sheets-table input {
    width: 100%;
    height: 100%;
    border: none;
    padding: 4px 8px;
    font-size: 13px;
    outline: none;
    background: transparent;
    color: #000;
    display: block;
}

.sheets-table td.active-cell {
    outline: 2px solid #217346;
    z-index: 5;
}

.sheets-table input:focus {
    background: #fff;
    box-shadow: inset 0 0 0 2px #217346;
}

.sheets-table th.header-active {
    background: #d0d0d0;
    color: #217346;
    font-weight: bold;
}

.editor-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#monitoring-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 20000 !important;
    backdrop-filter: blur(8px);
}

#monitoring-edit-modal.active {
    display: flex !important;
    /* Force display flex when active */
}

#monitoring-edit-modal .modal-window {
    background: rgba(20, 30, 40, 0.95);
    border: 1px solid rgba(0, 198, 255, 0.3);
    box-shadow: 0 0 50px rgba(0, 198, 255, 0.2);
}

/* Employee Table Styles */
.employee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.employee-table th,
.employee-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.employee-table th {
    background: rgba(0, 0, 0, 0.2);
    color: #ccc;
    font-weight: 500;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.status-badge.status-shift {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.status-badge.status-rest {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.status-badge.status-vacation {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.medical-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.medical-badge.valid {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.medical-badge.warning {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.medical-badge.expired {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Enhanced Digital Journals (PU Forms) Styles */
.journals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.journal-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    height: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(25px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    height: calc(100vh - 70px);
    top: 70px;
    z-index: 100;
}

.journal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.journal-btn:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.journal-btn:hover::before {
    opacity: 1;
}

.journal-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.journal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.journal-btn:hover .journal-icon {
    transform: scale(1.1) rotate(5deg);
}

.journal-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.journal-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

#openDispatcherIntegrationBtn:hover {
    background: rgba(155, 89, 182, 0.4) !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.6);
}

/* History Modal Styles */
#history-modal-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    height: 100%;
}

.history-date-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-date-item {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-date-item:hover,
.history-date-item.active {
    background: rgba(0, 198, 255, 0.2);
    color: white;
}

.history-date-item i {
    margin-right: 10px;
}

.history-details {
    overflow-y: auto;
    padding-right: 10px;
}

.history-report-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.history-report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.history-report-time {
    font-size: 0.8rem;
    color: #aaa;
}

/* Sidebar Accordion Styles */
.sidebar-menu {
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, margin 0.4s ease;
    max-height: 2000px;
    /* Enough for content */
    opacity: 1;
    overflow: hidden;
}



.transition-icon {
    transition: transform 0.3s ease;
}



.content {
    transition: margin-left 0.4s ease;
}

/* Road Management Sidebar & Layout */
/* Removed legacy .department-window content height constraint */
.department-window .window-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Safety Dashboard - Show buttons properly */
.safety-dashboard-active .window-content,
.department-window .window-content.safety-active {
    overflow: visible !important;
}

/* Safety Dashboard Header Buttons */
#safety-dashboard-view {
    overflow: visible !important;
}

#safety-dashboard-view .window-content {
    overflow: visible !important;
}

.files-area-wrapper {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar */
.files-area-wrapper::-webkit-scrollbar,
.road-management-sidebar::-webkit-scrollbar {
    width: 6px;
}

.files-area-wrapper::-webkit-scrollbar-thumb,
.road-management-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.road-management-sidebar {
    width: 280px;
    min-width: 280px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 10px;
}


.road-sidebar-header {
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.road-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.road-mini-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.road-mini-card h5 {
    color: #00f2ff;
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.mini-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    padding: 6px 8px;
    border-radius: 6px;
}

.mini-stat-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.mini-stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.mini-stat-value {
    color: white;
    font-weight: bold;
}

.mini-stat-value.highlight {
    color: #ffd700;
}

/* Edit Modal */
.road-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #ffd700;
    border-radius: 15px;
    padding: 25px;
    z-index: 10002;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
}

.road-modal.active {
    display: block;
    animation: fadeInModal 0.3s ease-out;
}

.road-input {
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.road-input:focus {
    border-color: #ffd700;
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* ========================= */
/* PU-74 Modal Styles        */
/* ========================= */

.pu74-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pu74-input:focus {
    border-color: #f1c40f;
    outline: none;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.pu74-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.pu74-form-section .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pu74-form-section .form-group label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* PU-74 Notification Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.pu74-notification {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* PU-74 Table Enhancements */
#pu74-table {
    width: 100%;
    border-collapse: collapse;
}

#pu74-table thead {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(211, 84, 0, 0.2));
    position: sticky;
    top: 0;
    z-index: 10;
}

#pu74-table th {
    padding: 12px 10px;
    text-align: left;
    font-size: 0.85rem;
    color: #f1c40f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(241, 196, 15, 0.3);
}

#pu74-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

#pu74-table tbody tr {
    transition: all 0.2s ease;
}

#pu74-table tbody tr:hover {
    background: rgba(241, 196, 15, 0.1);
}

/* PU-74 Icon Buttons */
#pu74-table .icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
}

#pu74-table .icon-btn.edit {
    background: rgba(52, 152, 219, 0.3);
}

#pu74-table .icon-btn.edit:hover {
    background: rgba(52, 152, 219, 0.6);
    transform: scale(1.1);
}

#pu74-table .icon-btn.delete {
    background: rgba(231, 76, 60, 0.3);
}

#pu74-table .icon-btn.delete:hover {
    background: rgba(231, 76, 60, 0.6);
    transform: scale(1.1);
}

/* PU-74 Modal Responsive */
@media (max-width: 768px) {
    .pu74-form-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    #pu74-modal .journal-window {
        width: 98% !important;
        max-height: 95vh;
        overflow-y: auto;
    }

    #pu74-table th,
    #pu74-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pu74-form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================= */
/* Fullscreen Excel Editor   */
/* ========================= */

.fullscreen-excel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e1e1e;
    z-index: 99999;
    display: none;
}

.fullscreen-excel-modal.active {
    display: block;
}

.excel-editor-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.excel-editor-header {
    height: 50px;
    background: linear-gradient(135deg, #217346, #185a34);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.excel-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.excel-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.excel-header-right {
    display: flex;
    gap: 10px;
}

.excel-icon {
    color: #fff;
    font-size: 1.5rem;
}

.excel-editor-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Buttons */
.excel-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.excel-btn.close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 12px;
}

.excel-btn.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.excel-btn.save-btn {
    background: #fff;
    color: #217346;
}

.excel-btn.save-btn:hover {
    background: #e8f5e9;
    transform: translateY(-1px);
}

.excel-btn.export-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.excel-btn.export-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Toolbar */
.excel-toolbar {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 6px;
}

.excel-tool-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.excel-tool-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.excel-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
}

.excel-color-picker {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

/* Formula Bar */
.excel-formula-bar {
    height: 36px;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d4d4d4;
}

.formula-cell-address {
    width: 60px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #d4d4d4;
    background: #e8e8e8;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.formula-fx {
    padding: 0 10px;
    color: #666;
    font-style: italic;
    font-weight: 500;
}

.formula-input {
    flex: 1;
    height: 100%;
    border: none;
    padding: 0 10px;
    font-size: 0.95rem;
    background: white;
    color: #333;
}

.formula-input:focus {
    outline: 2px solid #217346;
}

/* Spreadsheet Container */
.x-spreadsheet-container {
    flex: 1;
    background: #fff;
    overflow: hidden;
}

/* Status Bar */
.excel-status-bar {
    height: 26px;
    background: #217346;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.status-left,
.status-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Toast Notification */
.excel-toast {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 999999;
}

.excel-toast.show {
    transform: translateX(0);
}

.excel-toast.success {
    border-left: 4px solid #2ecc71;
}

.excel-toast.success i {
    color: #2ecc71;
}

.excel-toast.info {
    border-left: 4px solid #3498db;
}

.excel-toast.info i {
    color: #3498db;
}

/* x-spreadsheet overrides for dark theme container */
.x-spreadsheet-container .x-spreadsheet {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .excel-toolbar {
        display: none;
    }

    .excel-editor-title {
        max-width: 150px;
        font-size: 0.9rem;
    }

    .excel-btn span {
        display: none;
    }
}

/* Empty State Design */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    opacity: 0.6;
    width: 100%;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-secondary), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Professional PDF Report Template */
.pdf-report-template {
    padding: 40px;
    background: white !important;
    color: black !important;
    font-family: 'Times New Roman', serif;
    width: 210mm;
    min-height: 297mm;
}

.report-header {
    display: flex;
    align-items: center;
    border-bottom: 3px double black;
    padding-bottom: 20px;
    margin-bottom: 30px;
    gap: 30px;
}

.header-text {
    flex: 1;
    text-align: center;
}

.header-text h2 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 800;
}

.header-text h3 {
    font-size: 1.1rem;
    margin: 5px 0;
    font-weight: 600;
}

.report-title-box {
    margin-top: 20px;
}

.report-main-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0;
    text-decoration: underline;
}

.report-content {
    margin-top: 30px;
    line-height: 1.6;
    font-size: 1rem;
    color: black !important;
}

.report-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
}

.report-content table th,
.report-content table td {
    border: 1px solid black !important;
    padding: 8px !important;
    color: black !important;
}

.report-footer {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
}

.footer-signatures {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.signature {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.sign-line {
    border-bottom: 1px solid black;
    width: 200px;
    height: 1px;
}

.footer-stamp {
    width: 120px;
    height: 120px;
    border: 1px dashed black;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

.status-left,
.status-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Toast Notification */
.excel-toast {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 999999;
}

.excel-toast.show {
    transform: translateX(0);
}

.excel-toast.success {
    border-left: 4px solid #2ecc71;
}

.excel-toast.success i {
    color: #2ecc71;
}

.excel-toast.info {
    border-left: 4px solid #3498db;
}

.excel-toast.info i {
    color: #3498db;
}

/* x-spreadsheet overrides for dark theme container */
.x-spreadsheet-container .x-spreadsheet {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .excel-toolbar {
        display: none;
    }

    .excel-editor-title {
        max-width: 150px;
        font-size: 0.9rem;
    }

    .excel-btn span {
        display: none;
    }
}

/* Empty State Design */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    opacity: 0.6;
    width: 100%;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-secondary), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Professional PDF Report Template */
.pdf-report-template {
    padding: 40px;
    background: white !important;
    color: black !important;
    font-family: 'Times New Roman', serif;
    width: 210mm;
    min-height: 297mm;
}

.report-header {
    display: flex;
    align-items: center;
    border-bottom: 3px double black;
    padding-bottom: 20px;
    margin-bottom: 30px;
    gap: 30px;
}

.header-text {
    flex: 1;
    text-align: center;
}

.header-text h2 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 800;
}

.header-text h3 {
    font-size: 1.1rem;
    margin: 5px 0;
    font-weight: 600;
}

.report-title-box {
    margin-top: 20px;
}

.report-main-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0;
    text-decoration: underline;
}

.report-content {
    margin-top: 30px;
    line-height: 1.6;
    font-size: 1rem;
    color: black !important;
}

.report-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
}

.report-content table th,
.report-content table td {
    border: 1px solid black !important;
    padding: 8px !important;
    color: black !important;
}

.report-footer {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
}

.footer-signatures {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.signature {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.sign-line {
    border-bottom: 1px solid black;
    width: 200px;
    height: 1px;
}

.footer-stamp {
    width: 120px;
    height: 120px;
    border: 1px dashed black;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    color: black;
    text-align: center;
}

/* --- RESPONSIVE WEB FIXES --- */
@media screen and (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }

    .sidebar-header h3,
    .sidebar-menu span {
        display: none;
    }

    .sidebar-masofa-badge {
        display: none !important;
    }

    .container {
        margin-left: 80px;
    }

    .navbar {
        left: 80px;
    }

    .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
    }

    .navbar-center {
        display: none;
        /* Hide search on mobile, can add a search icon later */
    }

    .logo-text {
        display: none;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        top: 70px;
        bottom: 0;
        width: 280px;
        z-index: 2000;
        transition: transform 0.3s ease;
    }

    .sidebar.mobile-active {
        transform: translateX(280px);
    }

    .sidebar-menu li span,
    .sidebar-header h3 {
        display: block;
    }

    .sidebar-menu li {
        justify-content: flex-start;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 85px 15px 20px 15px;
    }

    /* Floating Toggle Button for Mobile */
    .mobile-menu-toggle {
        display: flex !important;
        background: var(--primary);
        color: white;
        width: 45px;
        height: 45px;
        border-radius: 12px;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 198, 255, 0.4);
        border: none;
    }

    /* Grids */
    .stats-grid,
    .dashboard-grid,
    .reports-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .smart-dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .kanban-board {
        grid-template-columns: 1fr !important;
    }

    /* Modals and Windows */
    .editor-window {
        width: 95% !important;
        height: 90% !important;
        left: 2.5% !important;
        top: 5% !important;
        transform: none !important;
    }

    /* Removed .integration-window override to allow windows.css full-screen */

    /* Tables */
    .tabel-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .official-ts-table {
        min-width: 800px;
        transform: scale(0.85);
        transform-origin: top left;
    }

    /* Stats */
    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1999;
}

.sidebar-overlay.active {
    display: block;
}

/* Animations fixes for mobile performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === Professional PDF Report Styles === */
.pdf-report-template {
    background: white !important;
    color: black !important;
    padding: 20mm;
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header-text {
    flex: 1;
    text-align: center;
}

.header-text h2 {
    margin: 0;
    font-size: 14pt;
    font-weight: bold;
}

.header-text h3 {
    margin: 5px 0;
    font-size: 12pt;
}

.report-main-title {
    font-size: 16pt;
    font-weight: bold;
    text-decoration: underline;
    margin-top: 20px;
}

.report-content {
    margin: 20px 0;
}

.report-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.report-content th,
.report-content td {
    border: 1px solid black;
    padding: 8px;
    text-align: center;
    font-size: 11pt;
}

.footer-signatures {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
}

.signature {
    width: 45%;
    text-align: center;
}

.sign-line {
    border-bottom: 1px solid black;
    margin: 10px 0;
    height: 20px;
}

.footer-stamp {
    margin-top: 40px;
    text-align: center;
}

.stamp-placeholder {
    width: 100px;
    height: 100px;
    border: 2px dashed #ccc;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 0.8rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

#hr-murojaat-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#hr-murojaat-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 900px;
    max-width: 95vw;
    height: 700px;
    max-height: 90vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    z-index: 10001;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.signature-section canvas:hover {
    border-color: #00c6ff !important;
}

/* =====================================================
   UNIVERSAL TABLE RESPONSIVE — Barcha jadvallar 100% ekran
   ===================================================== */

/* Barcha modal/oyna ichidagi jadvallar */
[class*="-window"] table,
[class*="-modal"] table,
[id*="-modal"] table,
[id*="-viewer"] table,
.journal-window table,
#material-table {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed !important;
    margin: 0 !important;
}

/* Barcha modal/oyna ichidagi th va td — overflow boshqaruv */
[class*="-window"] table th,
[class*="-modal"] table th,
[id*="-modal"] table th,
.journal-window table th {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

[class*="-window"] table td,
[class*="-modal"] table td,
[id*="-modal"] table td,
.journal-window table td {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
}

/* overflow-x: auto konteynerlarni to'liq kenglikka moslash */
[class*="-window"] [style*="overflow-x: auto"],
[class*="-modal"] [style*="overflow-x: auto"],
[id*="-modal"] [style*="overflow-x: auto"],
[id*="-viewer"] [style*="overflow-x: auto"] {
    width: 100% !important;
    overflow-x: auto !important;
}

/* Force container to 100% for all system windows */
#accounting-excel-viewer,
#timesheet-modal,
.department-window,
.integration-window {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}