@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════
   CSS VARIABLES — ABB Admin Design System
═══════════════════════════════════════════════════════ */
:root {
    --sidebar-bg:      #1e2d4e;
    --sidebar-width:   215px;
    --sidebar-dark:    #162240;
    --accent-yellow:   #f5a623;
    --accent-blue:     #004C85;
    --accent-red:      #dc3545;
    --active-border:   #f5a623;

    --bg-main:         #f0f2f7;
    --bg-card:         #ffffff;
    --topbar-bg:       #ffffff;
    --topbar-h:        64px;

    --text-primary:    #1e2d4e;
    --text-secondary:  #6b7a99;
    --text-light:      #a0aec0;
    --text-white:      #ffffff;

    --border-color:    #e8ecf4;
    --shadow-sm:       0 1px 4px rgba(0,0,0,0.08);
    --shadow-md:       0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:       0 8px 32px rgba(0,0,0,0.14);

    --radius-sm:       6px;
    --radius-md:       10px;
    --radius-lg:       14px;

    --green:   #22c55e;
    --orange:  #f59e0b;
    --red:     #ef4444;
    --blue:    #3b82f6;
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

/* ═══════════════════════════════════════════════════════
   LAYOUT SHELL
═══════════════════════════════════════════════════════ */
.admin-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    z-index: 200;
    transition: transform 0.28s ease;
    overflow-y: auto;
    scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand-icon {
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.brand-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.62);
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.18s ease;
    position: relative;
}
.nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
}
.nav-item.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: var(--accent-yellow);
}
.nav-icon {
    width: 18px;
    font-size: 0.95rem;
    flex-shrink: 0;
    text-align: center;
}
.nav-label { flex: 1; }
.nav-badge {
    background: var(--accent-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Footer / logout */
.sidebar-footer {
    padding: 12px 0 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.logout-btn { color: rgba(255,255,255,0.5); }
.logout-btn:hover { color: var(--accent-red); background: rgba(220,53,69,0.08); }

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT AREA
═══════════════════════════════════════════════════════ */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════════════ */
.topbar {
    height: var(--topbar-h);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.sidebar-toggle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.sidebar-toggle:hover { background: var(--bg-main); }
.topbar-title { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.bc-link { font-size: 0.75rem; color: var(--text-light); }
.bc-link:hover { color: var(--accent-blue); }
.bc-sep { font-size: 0.72rem; color: var(--text-light); }
.bc-current { font-size: 0.75rem; color: var(--text-secondary); }
.topbar-title-group { display: flex; flex-direction: column; }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-icon-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    background: var(--bg-main);
    position: relative;
    transition: background 0.15s;
}
.topbar-icon-btn:hover { background: var(--border-color); }
.notif-dot {
    position: absolute;
    top: 7px; right: 7px;
    width: 8px; height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Topbar user dropdown */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
    border: 1px solid transparent;
}
.topbar-user:hover { background: var(--bg-main); border-color: var(--border-color); }
.user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--sidebar-bg);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.user-role { font-size: 0.7rem; color: var(--text-secondary); }
.user-chevron { font-size: 0.65rem; color: var(--text-secondary); }

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 190px;
    padding: 6px 0;
    z-index: 999;
}
.user-dropdown.open { display: block; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    font-size: 0.82rem;
    color: var(--text-primary);
    transition: background 0.12s;
}
.dropdown-item:hover { background: var(--bg-main); }
.dropdown-item i { width: 14px; }
.dropdown-item.text-danger { color: var(--accent-red); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 5px 0; }

/* ═══════════════════════════════════════════════════════
   PAGE BODY
═══════════════════════════════════════════════════════ */
.page-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ═══════════════════════════════════════════════════════
   PAGE HEADER ROW (title + action button)
═══════════════════════════════════════════════════════ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.page-header-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.page-header-text .sub-breadcrumb {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.page-header-text .sub-breadcrumb a { color: var(--text-light); }
.page-header-text .sub-breadcrumb a:hover { color: var(--accent-blue); }

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    border: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent-yellow);
    color: var(--text-primary);
}
.btn-primary:hover { background: #e09620; box-shadow: 0 4px 12px rgba(245,166,35,0.35); }

.btn-blue {
    background: var(--accent-blue);
    color: #fff;
}
.btn-blue:hover { background: #003d6e; }

.btn-danger {
    background: var(--accent-red);
    color: #fff;
}
.btn-danger:hover { background: #c82333; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-outline:hover { background: var(--bg-main); }

.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
}
.btn-icon {
    width: 32px; height: 32px;
    padding: 0;
    border-radius: var(--radius-sm);
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}
.card-body { padding: 20px; }

/* ═══════════════════════════════════════════════════════
   STAT CARDS (Dashboard)
═══════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.stat-icon.orange { background: #fff7ed; color: #f59e0b; }
.stat-icon.blue   { background: #eff6ff; color: #3b82f6; }
.stat-icon.green  { background: #f0fdf4; color: #22c55e; }
.stat-icon.red    { background: #fef2f2; color: #ef4444; }
.stat-icon.purple { background: #f5f3ff; color: #8b5cf6; }

.stat-info { flex: 1; min-width: 0; }
.stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    display: block;
}
.stat-sub {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 2px;
    display: block;
}

/* ═══════════════════════════════════════════════════════
   FILTERS BAR
═══════════════════════════════════════════════════════ */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-select {
    appearance: none;
    background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a99' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 32px 8px 12px;
    font-size: 0.82rem;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s;
}
.filter-select:focus { outline: none; border-color: var(--accent-blue); }

.search-box {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
}
.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.82rem;
}
.search-box input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: border-color 0.15s;
}
.search-box input:focus { outline: none; border-color: var(--accent-blue); }
.search-box input::placeholder { color: var(--text-light); }

/* ═══════════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
thead th {
    background: var(--bg-main);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.1s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f8f9fd; }
tbody td {
    padding: 12px 14px;
    color: var(--text-primary);
    vertical-align: middle;
}

/* Project thumbnail in table */
.proj-thumb {
    width: 56px; height: 42px;
    border-radius: 5px;
    object-fit: cover;
    background: var(--bg-main);
    display: block;
}
.proj-name { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); }
.proj-sub  { font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; }

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-green   { background: #dcfce7; color: #15803d; }
.badge-yellow  { background: #fef9c3; color: #b45309; }
.badge-orange  { background: #ffedd5; color: #c2410c; }
.badge-red     { background: #fee2e2; color: #b91c1c; }
.badge-blue    { background: #dbeafe; color: #1d4ed8; }
.badge-gray    { background: #f1f5f9; color: #475569; }

/* Action buttons in table */
.action-btns { display: flex; align-items: center; gap: 6px; }

/* ═══════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════ */
.pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    font-size: 0.78rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 8px;
}
.pagination-btns { display: flex; align-items: center; gap: 4px; }
.page-btn {
    width: 30px; height: 30px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all 0.15s;
    cursor: pointer;
}
.page-btn:hover { background: var(--bg-main); }
.page-btn.active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.page-btn:disabled { opacity: 0.4; cursor: default; }

/* ═══════════════════════════════════════════════════════
   GALLERY GRID
═══════════════════════════════════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.gallery-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gallery-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-main);
    overflow: hidden;
}
.gallery-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-card-overlay {
    position: absolute;
    top: 8px; left: 8px;
    display: flex;
    gap: 6px;
}
.overlay-btn {
    width: 28px; height: 28px;
    background: rgba(30,45,78,0.7);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s;
}
.overlay-btn:hover { background: rgba(30,45,78,0.95); color: #fff; }
.overlay-btn.starred { color: var(--accent-yellow); }

.gallery-card-body {
    padding: 10px 12px 12px;
}
.gallery-card-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.gallery-card-meta {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 3px;
}
.gallery-card-actions {
    display: flex;
    gap: 7px;
    margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }
.form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}
.form-control {
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--bg-card);
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0,76,133,0.08);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 0.72rem; color: var(--text-light); }

/* Section divider */
.section-divider {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    padding: 6px 0 2px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
    grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,20,50,0.55);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.22s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96) translateY(-12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
}
.modal-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.modal-close {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: background 0.15s;
}
.modal-close:hover { background: var(--bg-main); }
.modal-body { padding: 22px; }
.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ═══════════════════════════════════════════════════════
   UPLOAD DROP ZONE
═══════════════════════════════════════════════════════ */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--accent-yellow);
    background: #fffbf0;
}
.upload-zone i { font-size: 2rem; color: var(--text-light); margin-bottom: 10px; }
.upload-zone p { font-size: 0.82rem; color: var(--text-secondary); }
.upload-zone span { color: var(--accent-blue); font-weight: 600; }

/* ═══════════════════════════════════════════════════════
   ALERT / TOAST
═══════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    min-width: 240px;
    max-width: 340px;
    border-left: 4px solid var(--green);
    animation: toastIn 0.25s ease;
}
.toast.error   { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--orange); }
.toast i { font-size: 1rem; }
.toast.error i   { color: var(--red); }
.toast.warning i { color: var(--orange); }
.toast i:first-child { color: var(--green); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════════════════════
   MESSAGES (Contacts)
═══════════════════════════════════════════════════════ */
.message-row td { font-size: 0.82rem; }
.message-row.unread td { font-weight: 600; background: #f8faff; }
.msg-excerpt { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════
   COMPANY DETAILS specific
═══════════════════════════════════════════════════════ */
.detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.detail-section-header {
    background: var(--bg-main);
    padding: 12px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-section-header i { color: var(--accent-blue); }
.detail-section-body { padding: 20px; }
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.82rem;
}
.hours-day { font-weight: 600; color: var(--text-primary); min-width: 80px; }
.hours-inputs { display: flex; align-items: center; gap: 6px; }
.hours-inputs input {
    width: 80px;
    padding: 5px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-family: inherit;
}

/* ═══════════════════════════════════════════════════════
   CHART PLACEHOLDER
═══════════════════════════════════════════════════════ */
.chart-wrap { position: relative; height: 220px; }
canvas { width: 100% !important; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    .main-content { margin-left: 0; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .page-body { padding: 16px; }
    .topbar { padding: 0 16px; }
    .user-info { display: none; }
}

/* ═══════════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════════ */
.login-page {
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(245,166,35,0.06);
    top: -200px; right: -200px;
}
.login-page::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(0,76,133,0.12);
    bottom: -150px; left: -100px;
}
.login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}
.login-brand {
    text-align: center;
    margin-bottom: 28px;
}
.login-logo {
    width: 56px; height: 56px;
    margin: 0 auto 12px;
}
.login-brand h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}
.login-brand p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form .form-group { gap: 6px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.85rem;
}
.input-icon-wrap input { padding-left: 34px; }
.login-btn {
    width: 100%;
    padding: 11px;
    background: var(--accent-yellow);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    margin-top: 4px;
}
.login-btn:hover { background: #e09620; box-shadow: 0 4px 14px rgba(245,166,35,0.4); }
.login-error {
    background: #fee2e2;
    color: #b91c1c;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-footer-text {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 20px;
}

@media (max-width: 768px) {
    .login-page {
        padding: 16px;
        align-items: stretch;
    }

    .login-page::before {
        width: 320px;
        height: 320px;
        top: -120px;
        right: -120px;
    }

    .login-page::after {
        width: 240px;
        height: 240px;
        bottom: -100px;
        left: -80px;
    }

    .login-card {
        max-width: 100%;
        margin: auto;
        padding: 28px 22px;
        border-radius: 12px;
    }

    .login-brand {
        margin-bottom: 20px;
    }

    .login-brand h2 {
        font-size: 1.15rem;
    }

    .login-form {
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .login-page {
        padding: 10px;
    }

    .login-card {
        padding: 20px 14px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.14);
    }

    .form-control {
        font-size: 16px;
    }

    .login-btn {
        padding: 10px;
        font-size: 0.85rem;
    }

    .login-footer-text {
        margin-top: 14px;
    }
}
