/* ===== Dashboard Modern — Navy Glassmorphism Theme ===== */

:root {
    /* Core palette - Light Theme + Glassmorphism */
    --color-primary: #ffffff;
    --color-primary-light: #f8f9fa;
    --color-accent: #0056b3;
    /* Brand Blue */
    --color-accent-light: #3b82f6;
    --color-accent-soft: rgba(0, 86, 179, 0.1);
    --color-bg: #f3f4f6;
    --color-white: #ffffff;

    --color-card: #ffffff;
    --color-card-border: rgba(0, 0, 0, 0.05);

    --color-text-dark: #1f2937;
    --color-text-muted: #6b7280;

    --color-border: rgba(0, 0, 0, 0.08);
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0056b3 0%, #3b82f6 100%);
    --gradient-sidebar: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    --gradient-bg: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);

    /* Glassmorphism - Adjusted for Light Mode */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(20px);
    --glass-hover: rgba(255, 255, 255, 0.95);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-glow: 0 4px 14px rgba(0, 86, 179, 0.25);

    /* Radius */
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 50px;
}

/* ===== Body ===== */
body {
    background: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--color-text-dark);
    font-family: 'Inter', 'Poppins', sans-serif;
    margin: 0;
    overflow: hidden;
}

/* ===== App Container ===== */
.app-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
    width: 100%;
    zoom: 90%;
}

/* ===== Sidebar ===== */
.sidebar {
    background: var(--gradient-sidebar);
    border-right: 1px solid var(--color-border);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 10;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-dark);
    padding: 0 8px;
}

.sidebar-logo i.bxs-adjust-alt {
    color: var(--color-accent);
    font-size: 1.6rem;
}

.sidebar-logo img,
.sidebar-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-section-title {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    margin-top: 28px;
    padding: 0 12px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 4px;
    position: relative;
}

.nav-item i {
    font-size: 1.25rem;
    width: 22px;
    text-align: center;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--color-text-dark);
}

.nav-item.active {
    background: var(--color-accent);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.nav-item .badge {
    margin-left: auto;
    background: var(--color-accent) !important;
    color: white !important;
    padding: 2px 8px !important;
    border-radius: var(--radius-pill) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
}

.nav-item.active .badge {
    background: rgba(255, 255, 255, 0.25) !important;
}

.nav-center-fill {
    flex: 1;
}

#logoutBtn {
    color: var(--color-danger) !important;
}

#logoutBtn:hover {
    color: #cc0000 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

/* ===== Sidebar Collapsed State ===== */
.sidebar.collapsed {
    width: 80px;
    padding: 28px 12px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .nav-item span {
    display: none !important;
}

.app-container.collapsed-layout {
    grid-template-columns: 80px 1fr;
}

.sidebar.collapsed .sidebar-logo {
    justify-content: center;
    margin-bottom: 30px;
}

.sidebar.collapsed .sidebar-logo i.bxs-adjust-alt,
.sidebar.collapsed .sidebar-logo-img {
    display: none;
}

.sidebar.collapsed #sidebarToggle {
    margin: 0 !important;
    color: var(--color-text-muted);
}

#sidebarToggle {
    color: var(--color-text-muted);
    transition: color 0.2s;
}

#sidebarToggle:hover {
    color: var(--color-text-dark);
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .nav-item i {
    font-size: 1.4rem;
    margin: 0;
}

/* ===== Main Content ===== */
.main-content {
    overflow-y: auto;
    padding: 32px 36px;
    background: transparent;
}

/* Custom scrollbar */
.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* ===== Top Bar ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    box-shadow: var(--shadow-sm);
}

/* Top bar pills */
.topbar-pill {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timer-pill {
    background: rgba(227, 30, 36, 0.08);
    /* VSIS Red fade */
    color: var(--color-accent);
    border: 1px solid rgba(227, 30, 36, 0.15);
}

/* User profile area */
.user-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-bar {
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s, border-color 0.25s;
}

.search-bar:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
    background: #ffffff;
}

.search-bar input {
    color: var(--color-text-dark) !important;
    font-family: inherit;
    font-size: 0.9rem;
    background: transparent !important;
}

.search-bar input::placeholder {
    color: var(--color-text-muted);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(232, 96, 76, 0.3);
}

/* ===== Dashboard Title ===== */
.dashboard-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
}

.dashboard-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 28px;
    font-size: 0.92rem;
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--color-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    border: 1px solid var(--color-card-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Hero card - VSIS Red gradient accent card */
.stat-card.primary {
    background: var(--gradient-hero);
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-glow);
}

.stat-card.primary:hover {
    box-shadow: 0 8px 30px rgba(0, 86, 179, 0.4);
}

.stat-card.primary .stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.stat-card.primary .stat-value {
    color: #ffffff;
}

/* Decorative wavy line for hero card */
.stat-card.primary::after {
    content: '';
    position: absolute;
    bottom: 35px;
    left: 10%;
    right: 10%;
    height: 30px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 30'%3E%3Cpath d='M0,15 Q25,0 50,15 Q75,30 100,15 Q125,0 150,15 Q175,30 200,15' stroke='%23ffffff' fill='none' stroke-width='1.5' opacity='0.4'/%3E%3C/svg%3E") repeat-x;
    opacity: 0.5;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-muted);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 8px 0;
    letter-spacing: -0.02em;
    color: var(--color-text-dark);
}

.stat-trend {
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
}

.trend-up {
    color: var(--color-success);
}

.stat-card.primary .trend-up {
    color: #d1fae5;
    /* Light green on red */
}

/* Icon containers in stat cards */
.stat-card .stat-header div[style*="border-radius: 50%"] {
    background: var(--color-bg) !important;
    border-color: transparent !important;
    color: var(--color-text-muted) !important;
}

.stat-card.primary .stat-header div[style*="border-radius: 50%"] {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

/* ===== Content Grid ===== */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Left column - tables */
.column-left {
    min-width: 0;
    /* prevent overflow */
}

/* Right column - widgets stacked vertically */
.column-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    min-width: 0;
}

/* ===== Section Cards ===== */
.section-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 1px solid var(--color-card-border);
    transition: box-shadow 0.25s, background 0.25s;
    overflow: hidden;
}

.section-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: -0.01em;
}

/* ===== Table Responsive Container ===== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.table-responsive::-webkit-scrollbar {
    height: 5px;
}

.table-responsive::-webkit-scrollbar-track {
    background: transparent;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
    /* Ensure table is scrollable instead of overflowing */
}

th {
    text-align: left;
    color: var(--color-text-muted);
    font-weight: 600;
    padding: 12px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

td {
    padding: 12px 10px;
    border-top: 1px solid var(--color-border);
    font-size: 0.88rem;
    color: var(--color-text-dark);
}

tr {
    transition: background 0.2s;
}

tbody tr:hover {
    background: var(--color-bg);
}

/* ===== Status Badges ===== */
.status-badge {
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-pending {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.status-resolved {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #6ee7b7;
}

.status-completed {
    background: #ecfdf5;
    color: #059669;
    /* Green match */
    border: 1px solid #6ee7b7;
}

.status-progress {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #c4b5fd;
}

/* ===== List Items ===== */
.list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.list-item:last-child {
    border-bottom: none;
}

.list-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.1rem;
}

/* ===== Next Priority Card ===== */
#nextPriorityCard {
    background: rgba(232, 96, 76, 0.08);
    border: 1px solid rgba(232, 96, 76, 0.15);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

#nextPriorityAction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    background: var(--color-accent) !important;
    box-shadow: 0 4px 12px rgba(232, 96, 76, 0.3) !important;
    border-radius: var(--radius-md) !important;
}

#nextPriorityAction:hover {
    background: #d4533f !important;
    box-shadow: 0 6px 18px rgba(232, 96, 76, 0.4) !important;
    transform: translateY(-1px);
}

/* ===== Progress Chart ===== */
#progressChart {
    margin: 0 auto;
    background: conic-gradient(var(--color-accent) 0% 0%, rgba(255, 255, 255, 0.1) 0% 100%);
    box-shadow: none !important;
}

#progressChart>div {
    background: #151530 !important;
}

#progressPercent {
    color: var(--color-accent) !important;
}

#progressLabel {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ===== Active Users Card ===== */
.active-users-card {
    background: var(--color-accent) !important;
    border: none !important;
    margin: 0 !important;
    box-shadow: 0 3px 10px rgba(232, 96, 76, 0.3);
}

/* ===== Timer Widget ===== */
.user-profile div[style*="background: #E8F5E9"] {
    background: var(--color-accent-soft) !important;
    color: var(--color-accent) !important;
}

/* ===== Refresh Buttons ===== */
.btn-refresh,
button[onclick*="loadRepairs"] {
    background: var(--color-accent-soft) !important;
    color: var(--color-accent) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    transition: all 0.2s !important;
    padding: 8px 12px !important;
}

.btn-refresh:hover,
button[onclick*="loadRepairs"]:hover {
    background: var(--color-accent) !important;
    color: #ffffff !important;
}

/* Team add member button */
button[onclick*="openAddAdminModal"] {
    background: var(--color-accent-soft) !important;
    border: 1px solid rgba(232, 96, 76, 0.2) !important;
    color: var(--color-accent) !important;
    border-radius: var(--radius-pill) !important;
    transition: all 0.2s !important;
}

button[onclick*="openAddAdminModal"]:hover {
    background: var(--color-accent) !important;
    color: white !important;
}

/* ===== Pulse Indicator ===== */
.pulse-indicator {
    position: relative;
    width: 12px;
    height: 12px;
}

.pulse-indicator .dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 2;
}

.pulse-indicator .ping {
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.75;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: 1;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ===== Analytics Cards ===== */
.stat-card.analytics-card.live-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 100%) !important;
}

.analytics-grid .stat-card {
    border: 1px solid var(--color-border);
}

/* ===== Modals ===== */
.modal {
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.modal-content {
    background: rgba(20, 20, 45, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #e5e7eb !important;
    /* Light text */
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ===== Repair / Inquiry Details Modal Specifics ===== */
/* ===== Repair / Inquiry Details Modal Specifics ===== */
#repairDetailsModal .modal-content,
#inquiryDetailsModal .modal-content {
    background: rgba(13, 13, 34, 0.98) !important;
    /* Darker background */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

#repairDetailsModal h4,
#inquiryDetailsModal h4 {
    color: #60a5fa !important;
    /* Lighter blue for headers */
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Force ALL text inside these modals to be white/light */
#repairDetailsModal .modal-content *,
#inquiryDetailsModal .modal-content * {
    color: #ffffff !important;
}

/* But keep specific colors for badges or headers if needed */
#repairDetailsModal h4,
#inquiryDetailsModal h4 {
    color: #60a5fa !important;
}

#repairDetailsModal .status-badge,
#inquiryDetailsModal .status-badge {
    color: inherit !important;
    /* Allow specific badge colors to work */
}

#repairDetailsModal .status-badge.status-pending,
#inquiryDetailsModal .status-badge.status-pending {
    color: #d97706 !important;
    /* Restore Orange text */
    background: #fffbeb !important;
}

#repairDetailsModal .status-badge.status-resolved,
#inquiryDetailsModal .status-badge.status-resolved,
#repairDetailsModal .status-badge.status-completed,
#inquiryDetailsModal .status-badge.status-completed {
    color: #059669 !important;
    /* Restore Green text */
    background: #ecfdf5 !important;
}

#repairDetailsModal .status-badge.status-progress,
#inquiryDetailsModal .status-badge.status-progress {
    color: #7c3aed !important;
    /* Restore Purple text */
    background: #f5f3ff !important;
}

#repairDetailsModal .status-badge.status-rejected,
#inquiryDetailsModal .status-badge.status-rejected {
    color: #dc2626 !important;
    /* Restore Red text */
    background: #fef2f2 !important;
}

#repairDetailsModal .text-muted,
#inquiryDetailsModal .text-muted,
#repairDetailsModal span[style*="color: var(--color-text-muted)"],
#inquiryDetailsModal span[style*="color: var(--color-text-muted)"] {
    color: #d1d5db !important;
    /* Light gray for labels */
}

/* Ensure inputs inside modal are visible */
.modal-content input,
.modal-content textarea,
.modal-content select {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

#modalStatusSelect option {
    background: #1a1a2e;
    color: white;
}

#modalAttachmentArea img,
#modalAttachmentArea video {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: transform 0.2s;
    cursor: pointer;
}

#modalAttachmentArea img:hover,
#modalAttachmentArea video:hover {
    transform: scale(1.05);
    border-color: var(--color-accent);
}

.file-attachment-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--color-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.file-attachment-link:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--color-accent);
}

/* Modal buttons */
#saveCommentBtn,
#saveAdminBtn {
    background: var(--color-accent) !important;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s !important;
    color: white !important;
}

#saveCommentBtn:hover,
#saveAdminBtn:hover {
    background: #004494 !important;
    transform: translateY(-1px);
}

/* ===== Login Section ===== */
.login-wrapper {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-lg) !important;
}



.login-wrapper h2 {
    color: #ffffff !important;
}

.login-wrapper h3 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.login-wrapper .btn-login {
    background: var(--color-accent) !important;
    box-shadow: 0 4px 14px rgba(232, 96, 76, 0.3) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.25s !important;
    font-weight: 600;
}

.login-wrapper .btn-login:hover {
    background: #d4533f !important;
    box-shadow: 0 6px 20px rgba(232, 96, 76, 0.4) !important;
    transform: translateY(-1px);
}

.login-wrapper input {
    border-radius: var(--radius-md) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f0f0f5 !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.login-wrapper input:focus {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 3px var(--color-accent-soft) !important;
    background: #ffffff !important;
}

.login-wrapper label {
    color: var(--color-text-muted) !important;
}

.login-wrapper input::placeholder {
    color: #9ca3af !important;
}

/* Login form group styling */
.login-wrapper .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.login-wrapper .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--color-text-dark);
}

.login-wrapper .form-group input {
    width: 100%;
    padding: 12px 16px !important;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #f9fafb !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text-dark) !important;
    border-radius: var(--radius-md) !important;
}

.login-wrapper .btn-login {
    width: 100%;
    padding: 14px 20px !important;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    display: block;
    font-family: inherit;
    letter-spacing: 0.02em;
    color: white;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.login-wrapper .btn-login:hover {
    background: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

/* ===== Spinner ===== */
.spinner {
    border-top-color: var(--color-accent) !important;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .column-right {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 20px;
    }

    .top-bar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .search-bar {
        width: 100%;
    }
}


/* ===== Animated entrance ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeInUp 0.5s ease backwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.05s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.15s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.2s;
}

.section-card {
    animation: fadeInUp 0.5s ease 0.25s backwards;
}

/* ===== Selection color ===== */
::selection {
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

/* ===== Selection color ===== */
::selection {
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

/* ===== Focus ring ===== */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}