/* ============================================================
   KR TURNER ADMIN PANEL - APEXQUOTE DARK MODE
   Enterprise-Grade Gallery Management System
   ============================================================ */

:root {
    /* ========== APEXQUOTE DARK THEME ========== */
    /* Background Layers */
    --bg-base: #0B0F19;
    --bg-surface: #0F172A;
    --bg-card: #1E293B;
    --bg-card-hover: #263348;
    --bg-input: #1E293B;
    --bg-sidebar: #0F172A;
    
    /* Borders */
    --border-subtle: #334155;
    --border-card: #334155;
    --border-input: #475569;
    --border-glow: rgba(34, 211, 238, 0.4);
    
    /* Primary Accent - Cyan */
    --accent-primary: #22D3EE;
    --accent-primary-hover: #06B6D4;
    --accent-primary-glow: rgba(34, 211, 238, 0.2);
    --accent-primary-bg: rgba(34, 211, 238, 0.1);
    
    /* Semantic Colors */
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --success-border: rgba(16, 185, 129, 0.3);
    
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --warning-border: rgba(245, 158, 11, 0.3);
    
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --danger-border: rgba(239, 68, 68, 0.3);
    
    --info: #3B82F6;
    --info-bg: rgba(59, 130, 246, 0.15);
    --info-border: rgba(59, 130, 246, 0.3);
    
    /* Text Colors */
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-dimmed: #64748B;
    
    /* Gradients for KPI Cards */
    --gradient-cyan: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(34, 211, 238, 0.05) 100%);
    --gradient-green: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    --gradient-amber: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    --gradient-purple: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
    --gradient-blue: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    
    /* Sparkline Colors */
    --sparkline-cyan: #22D3EE;
    --sparkline-green: #10B981;
    --sparkline-blue: #3B82F6;
    
    /* Layout */
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(34, 211, 238, 0.15);
    
    /* Legacy mappings for compatibility */
    --primary: #22D3EE;
    --primary-dark: #06B6D4;
    --primary-light: rgba(34, 211, 238, 0.1);
    --gray-50: #1E293B;
    --gray-100: #1E293B;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748B;
    --gray-500: #94A3B8;
    --gray-600: #CBD5E1;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #F8FAFC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
}

/* ============================================================
   LOGIN SCREEN
   ============================================================ */

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-base) 0%, #0D1323 100%);
}

.login-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
}

.login-box h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text-primary);
}

.login-box p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.login-error {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.875rem;
    display: none;
    border: 1px solid var(--danger-border);
}

.login-error.visible {
    display: block;
}

.login-forgot {
    text-align: center;
    margin-top: 16px;
    font-size: 0.875rem;
}

.login-forgot a {
    color: var(--accent-primary);
    text-decoration: none;
}

.login-forgot a:hover {
    color: var(--accent-primary-hover);
    text-decoration: underline;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.admin-layout {
    display: none;
    min-height: 100vh;
}

.admin-layout.active {
    display: flex;
}

/* ============================================================
   SIDEBAR - ApexQuote Style
   ============================================================ */

.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    color: var(--text-primary);
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-subtle);
}

.sidebar__logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.sidebar__logo h1 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar__logo span {
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.sidebar__nav {
    list-style: none;
    flex: 1;
}

.sidebar__nav-item {
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    border-left: 3px solid transparent;
    margin: 2px 0;
}

.sidebar__nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-left-color: var(--border-subtle);
}

.sidebar__nav-item.active {
    background: var(--accent-primary-bg);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    font-weight: 500;
}

.sidebar__nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar__nav-item--sub {
    padding-left: 44px;
    font-size: 0.875rem;
    color: var(--text-dimmed);
}

.sidebar__nav-item--sub svg {
    width: 18px;
    height: 18px;
}

.sidebar__nav-item--sub:hover {
    color: var(--text-secondary);
}

.sidebar__nav-item--sub.active {
    color: var(--accent-primary);
    background: var(--accent-primary-bg);
}

.sidebar__logout {
    padding: 24px;
    border-top: 1px solid var(--border-subtle);
}

.sidebar__logout button {
    width: 100%;
    padding: 10px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.sidebar__logout button:hover {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-border);
}

/* Alerts Badge */
.alerts-badge {
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

.alerts-badge.hidden {
    display: none;
}

/* Contact Type Badges - Dark Mode */
.contact-type-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: capitalize;
}

.badge--customer {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid var(--info-border);
}

.badge--lead {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.badge--vip {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

/* Contact Orders Badge */
.contact-orders-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--accent-primary);
    color: var(--bg-base);
    border-radius: 12px;
    padding: 0 8px;
}

.contact-orders-badge--zero {
    background: var(--bg-card);
    color: var(--text-dimmed);
    border: 1px solid var(--border-subtle);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
    background: var(--bg-base);
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-muted);
    margin-top: 4px;
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ============================================================
   CARDS - ApexQuote Style
   ============================================================ */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border-card);
    overflow: hidden;
}

.card__header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.card__header--split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Tags multi-select dropdown */
.tags-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tags-dropdown-menu {
    animation: dropdownFadeIn 0.15s ease;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-dropdown label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.view-dropdown select {
    padding: 6px 12px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--bg-input);
    color: var(--text-primary);
    cursor: pointer;
}

.view-dropdown select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-primary-glow);
}

.card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card__body {
    padding: 24px;
}

/* ============================================================
   FORMS - Dark Mode
   ============================================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #334155;
    border-radius: var(--radius);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9375rem;
    background: #0F172A;
    color: #F8FAFC;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748B;
    font-family: 'Inter', -apple-system, sans-serif;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Image Preview Section */
.image-preview-section {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.current-image-preview {
    flex-shrink: 0;
}

.current-image-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
}

/* Checkbox/Radio - Dark Mode */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--accent-primary);
}

/* ============================================================
   BUTTONS - ApexQuote Style
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn--primary {
    background: var(--accent-primary);
    color: var(--bg-base);
}

.btn--primary:hover {
    background: var(--accent-primary-hover);
    box-shadow: 0 0 20px var(--accent-primary-glow);
}

.btn--secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn--secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-dimmed);
    color: var(--text-primary);
}

.btn--success {
    background: var(--success);
    color: white;
}

.btn--success:hover {
    background: #0D9669;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.btn--danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.btn--danger:hover {
    background: var(--danger);
    color: white;
}

.btn--warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.btn--warning:hover {
    background: var(--warning);
    color: var(--bg-base);
}

.btn--archive {
    background: #ffffff;
    color: #1a1a2e;
    border: 1px solid var(--border-subtle);
}

.btn--archive:hover {
    background: #f0f0f0;
    border-color: var(--text-muted);
}

.btn--outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn--outline:hover {
    background: var(--accent-primary-bg);
}

.btn--small {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Uniform width filter buttons */
.btn-group--uniform {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.btn-group--uniform .btn {
    min-width: 90px;
    text-align: center;
    justify-content: center;
}

/* Pill count badge */
.pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    margin-left: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 9px;
}

.btn--primary .pill-count {
    background: rgba(0, 0, 0, 0.25);
}

.btn--secondary .pill-count {
    background: var(--border-subtle);
    color: var(--text-muted);
}

/* ============================================================
   TABLES - Dark Mode
   ============================================================ */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-surface);
}

td {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

tr:hover td {
    background: var(--bg-card-hover);
}

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.table-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ============================================================
   STATUS BADGES - ApexQuote Style
   ============================================================ */

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status--pending {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.status--awaiting-payment {
    background: rgba(236, 72, 153, 0.15);
    color: #EC4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.status--paid {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.status--new {
    background: var(--accent-primary-bg);
    color: var(--accent-primary);
    border: 1px solid var(--border-glow);
}

.status--processing {
    background: rgba(139, 92, 246, 0.15);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.status--shipped {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.status--completed {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

/* Additional status colors for better differentiation */
.status--ready {
    background: var(--accent-primary-bg);
    color: var(--accent-primary);
    border: 1px solid var(--border-glow);
}

.status--clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.status--editable {
    cursor: pointer;
    position: relative;
}

.status--editable:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.status--ready.status--clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.status--ready.status--clickable:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.status--quote-needed {
    background: rgba(251, 146, 60, 0.15);
    color: #EA580C;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.status--responded {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.status--ordered {
    background: rgba(34, 197, 94, 0.15);
    color: #16A34A;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status--archived {
    background: rgba(107, 114, 128, 0.15);
    color: #6B7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.status--in-progress {
    background: rgba(168, 85, 247, 0.15);
    color: #9333EA;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.status--customization {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status--viewed {
    background: var(--accent-primary-bg);
    color: var(--accent-primary);
    border: 1px solid var(--border-glow);
}

.status--need-to-respond {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

/* ============================================================
   TIME FILTER - ApexQuote Style
   ============================================================ */

.time-filter {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
}

.time-filter__btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-filter__btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.time-filter__btn.active {
    background: var(--accent-primary);
    color: var(--bg-base);
    box-shadow: 0 0 10px var(--accent-primary-glow);
}

/* ============================================================
   DASHBOARD CHARTS
   ============================================================ */

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.charts-grid .card__body {
    padding: 16px;
    height: 280px;
    max-height: 280px;
}

.charts-grid canvas {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
}

.chart-period-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .time-filter {
        flex-wrap: wrap;
    }
    
    .time-filter__btn {
        padding: 6px 10px;
        font-size: 0.8125rem;
    }

    .charts-grid .card__body {
        padding: 12px;
        height: 240px;
        max-height: 240px;
    }
}

/* ============================================================
   ALERTS DASHBOARD - ApexQuote KPI Style
   ============================================================ */

.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.alerts-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.alerts-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.alert-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-card);
    border-left: 4px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.stat-card,
.alert-card {
    height: 112px;
}

.alert-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.alert-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-subtle);
}

.alert-card--pending {
    border-left-color: var(--warning);
    background: var(--gradient-amber);
}

.alert-card--quote {
    border-left-color: #A78BFA;
    background: var(--gradient-purple);
}

.alert-card--ship {
    border-left-color: var(--accent-primary);
    background: var(--gradient-cyan);
}

.alert-card--customization {
    border-left-color: #8B5CF6;
    background: var(--gradient-purple);
}

.alert-card--inquiry {
    border-left-color: var(--accent-primary);
    background: var(--gradient-cyan);
}

.alert-card__count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.alert-card__label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive alert tiles */
@media (max-width: 1200px) {
    .stats-grid--5 .stat-card,
    .alerts-grid--5 .alert-card {
        padding: 14px;
    }
    .stats-grid--5 .stat-card { gap: 10px; }
    .stats-grid--5 .stat-card__icon { width: 40px; height: 40px; border-radius: 10px; }
    .stats-grid--5 .stat-card__value { font-size: 1.4rem; }
    .stats-grid--5 .stat-card__label { font-size: 0.8rem; }
    .alerts-grid--5 .alert-card__count { font-size: 2.1rem; }
    .alerts-grid--5 .alert-card__label { margin-top: 6px; font-size: 0.8rem; }
}

@media (max-width: 980px) {
    .stats-grid--5 .stat-card,
    .alerts-grid--5 .alert-card {
        padding: 12px;
    }
    .stats-grid--5 .stat-card__icon { width: 36px; height: 36px; }
    .stats-grid--5 .stat-card__value { font-size: 1.25rem; }
    .stats-grid--5 .stat-card__label { font-size: 0.75rem; }
    .alerts-grid--5 .alert-card__count { font-size: 1.9rem; }
    .alerts-grid--5 .alert-card__label { margin-top: 4px; font-size: 0.75rem; }
}

@media (max-width: 720px) {
    .stats-grid--5 { gap: 8px; }
    .alerts-grid--5 { gap: 8px; }
    .stats-grid--5 .stat-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px;
    }
    .stats-grid--5 .stat-card__icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }
    .stats-grid--5 .stat-card__value { font-size: 1.05rem; line-height: 1.1; }
    .stats-grid--5 .stat-card__label { font-size: 0.7rem; }
    .alerts-grid--5 .alert-card { padding: 10px; }
    .alerts-grid--5 .alert-card__count { font-size: 1.6rem; }
    .alerts-grid--5 .alert-card__label { font-size: 0.7rem; }
}

/* ============================================================
   PAINTING CARDS - Dark Mode
   ============================================================ */

.paintings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.painting-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-card);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.painting-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.painting-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-surface);
}

.painting-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.painting-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.painting-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.painting-card__price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.painting-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.painting-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.painting-card__status--available {
    background: var(--success-bg);
    color: var(--success);
}

.painting-card__status--sold {
    background: var(--danger-bg);
    color: var(--danger);
}

.painting-card__status--reserved {
    background: var(--warning-bg);
    color: var(--warning);
}

/* ============================================================
   STATS GRID - ApexQuote KPI Cards
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stats-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .stats-grid:not(.stats-grid--5) { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .stats-grid:not(.stats-grid--5) { grid-template-columns: 1fr; }
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-card);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card__icon svg {
    width: 24px;
    height: 24px;
}

.stat-card__content {
    flex: 1;
    min-width: 0;
}

.stat-card__icon--revenue {
    background: var(--gradient-green);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.stat-card__icon--views {
    background: var(--gradient-cyan);
    color: var(--accent-primary);
    border: 1px solid var(--border-glow);
}

.stat-card__icon--orders {
    background: var(--gradient-blue);
    color: var(--info);
    border: 1px solid var(--info-border);
}

.stat-card__icon--contacts {
    background: var(--gradient-purple);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.stat-card__icon--conversion {
    background: var(--gradient-amber);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.stat-card__icon--pending {
    background: var(--gradient-amber);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.stat-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Sparkline indicator for stat cards */
.stat-card__sparkline {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
    margin-top: 8px;
}

.stat-card__sparkline-bar {
    width: 4px;
    border-radius: 2px;
    background: var(--accent-primary);
    opacity: 0.6;
}

.stat-card__label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card__trend {
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
}

.stat-card__trend--up {
    color: var(--success);
}

.stat-card__trend--down {
    color: var(--danger);
}

/* ============================================================
   MODALS - Dark Mode
   ============================================================ */

/* Modal Overlay - outer container */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

/* Modal Content - inner container */
.modal-overlay > .modal {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
    padding: 0;
    backdrop-filter: none;
}

.modal-overlay > .modal.modal--large {
    max-width: 800px;
}

.modal-overlay > .modal.modal--small {
    max-width: 450px;
}

/* Legacy .modal as overlay (keep for backwards compatibility) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal__content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
}

.modal__header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal__close:hover {
    color: var(--text-primary);
}

.modal__body {
    padding: 24px;
}

.modal__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-surface);
}

/* Order Detail Styles */
.order-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.order-detail__section h4 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.order-detail__section p {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

.order-detail__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.order-detail__row span:first-child {
    margin-right: 12px;
}

/* ============================================================
   SEARCH & FILTERS - Dark Mode
   ============================================================ */

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.search-box input::placeholder {
    color: var(--text-dimmed);
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

/* Filter Pills */
.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.filter-pill:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--accent-primary);
    color: var(--bg-base);
    border-color: var(--accent-primary);
}

/* ============================================================
   TOAST NOTIFICATIONS - Dark Mode
   ============================================================ */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    animation: toastSlideIn 0.3s ease;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast--success {
    border-left: 4px solid var(--success);
    background: var(--success-bg);
}

.toast--success .toast__icon {
    color: var(--success);
}

.toast--error {
    border-left: 4px solid var(--danger);
    background: var(--danger-bg);
}

.toast--error .toast__icon {
    color: var(--danger);
}

.toast--warning {
    border-left: 4px solid var(--warning);
    background: var(--warning-bg);
}

.toast--warning .toast__icon {
    color: var(--warning);
}

.toast__icon {
    flex-shrink: 0;
}

.toast__message {
    flex: 1;
    color: var(--text-primary);
}

.toast__close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.25rem;
    line-height: 1;
}

.toast__close:hover {
    color: var(--text-primary);
}

/* ============================================================
   TABS - Dark Mode
   ============================================================ */

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0;
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-primary);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================================
   ACTIVITY FEED - ApexQuote Style
   ============================================================ */

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.activity-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

.activity-item__icon--sale {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success-border);
}

.activity-item__icon--inquiry {
    background: var(--accent-primary-bg);
    color: var(--accent-primary);
    border-color: var(--border-glow);
}

.activity-item__icon--view {
    background: var(--info-bg);
    color: var(--info);
    border-color: var(--info-border);
}

.activity-item__content {
    flex: 1;
    min-width: 0;
}

.activity-item__title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-item__description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.activity-item__time {
    font-size: 0.75rem;
    color: var(--text-dimmed);
    margin-top: 4px;
}

/* ============================================================
   EMPTY STATES - Dark Mode
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--text-dimmed);
    opacity: 0.5;
}

.empty-state__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state__description {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 24px;
}

/* ============================================================
   DROPDOWN MENUS - Dark Mode
   ============================================================ */

.dropdown {
    position: relative;
}

.dropdown__menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    z-index: 100;
    display: none;
}

.dropdown__menu.active {
    display: block;
    animation: dropdownFadeIn 0.15s ease;
}

.dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown__item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.dropdown__item--danger {
    color: var(--danger);
}

.dropdown__item--danger:hover {
    background: var(--danger-bg);
}

.dropdown__divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 0;
}

/* ============================================================
   LOADING STATES - Dark Mode
   ============================================================ */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 25%,
        var(--bg-card-hover) 50%,
        var(--bg-card) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   CONTACT DETAIL PANEL - Dark Mode
   ============================================================ */

.contact-detail {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

@media (max-width: 1024px) {
    .contact-detail {
        grid-template-columns: 1fr;
    }
}

.contact-detail__main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail__sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-info-item {
    padding: 12px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
}

.contact-info-item__label {
    font-size: 0.75rem;
    color: var(--text-dimmed);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.contact-info-item__value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================================
   RESPONSIVE - Mobile Menu Toggle
   ============================================================ */

.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--bg-base);
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 999;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid:not(.stats-grid--5) {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .stat-card__value {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        gap: 12px;
    }
    
    .stat-card__label {
        font-size: 0.75rem;
    }
    
    .stat-card__value {
        font-size: 1.25rem;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-primary { color: var(--text-primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-accent { color: var(--accent-primary) !important; }

.bg-success { background: var(--success-bg) !important; }
.bg-danger { background: var(--danger-bg) !important; }
.bg-warning { background: var(--warning-bg) !important; }
.bg-info { background: var(--info-bg) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ============================================================
   SCROLLBAR STYLING - Dark Mode
   ============================================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dimmed);
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
    .sidebar,
    .mobile-menu-toggle,
    .btn,
    .toast-container {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ============================================================
   PUNCH LIST FIXES - FINAL POLISH
   ============================================================ */

/* ============================================================
   1. AMERICA 250 CARD - APEXQUOTE DARK STYLE
   ============================================================ */

.america250-card {
    background: #151F32 !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.america250-card .card__header {
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.america250-badge {
    background: rgba(34, 211, 238, 0.15) !important;
    color: var(--accent-primary) !important;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.america250-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.america250-stat {
    text-align: center;
    padding: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
}

.america250-stat__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    line-height: 1.2;
}

.america250-stat__label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.america250-progress {
    margin-bottom: 24px;
}

.america250-progress__bar {
    height: 12px;
    background: var(--bg-surface);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.america250-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #06B6D4 0%, #22D3EE 50%, #3B82F6 100%) !important;
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.america250-progress__text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.america250-actions {
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.america250-actions h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.america250-action-list {
    display: none; /* Hide the "No pending actions" text - replaced by Boardroom */
}

@media (max-width: 768px) {
    .america250-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .america250-stat__value {
        font-size: 1.5rem;
    }
}

/* ============================================================
   2. BOARDROOM / INVENTORY INTELLIGENCE CARDS
   ============================================================ */

/* ============================================================
   BOARDROOM - Today's Priorities Command Center
   Premium, museum-grade styling. Calm, data-driven.
   ============================================================ */

.boardroom-module {
    margin-bottom: 24px;
}

.boardroom-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.boardroom-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.boardroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.boardroom-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.boardroom-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    color: var(--success);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.boardroom-empty-state p {
    font-size: 0.9375rem;
}

/* Boardroom Card - Base */
.boardroom-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.boardroom-card:hover {
    border-color: var(--border-default);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Priority Indicator (amber dot for urgent, subtle) */
.boardroom-card__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.boardroom-card__indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.boardroom-card__indicator--high {
    background: #f59e0b; /* Amber for urgency */
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.boardroom-card__indicator--medium {
    background: #3b82f6;
}

.boardroom-card__indicator--low {
    background: var(--text-muted);
    opacity: 0.5;
}

.boardroom-card__indicator--config {
    background: #8b5cf6; /* Purple for config issues */
}

.boardroom-card__title-group {
    flex: 1;
}

.boardroom-card__category {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.boardroom-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.boardroom-card__body {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 16px;
}

.boardroom-card__value {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.boardroom-card__value strong {
    color: var(--text-primary);
}

/* CTA Button */
.boardroom-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-primary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.boardroom-card__cta:hover {
    color: var(--accent-hover);
}

.boardroom-card__cta svg {
    width: 14px;
    height: 14px;
}

/* Card Type Variants (subtle left border accent) */
.boardroom-card--hot-inquiry {
    border-left: 3px solid #f59e0b;
}

.boardroom-card--scarcity {
    border-left: 3px solid #8b5cf6;
}

.boardroom-card--re-engage {
    border-left: 3px solid #3b82f6;
}

.boardroom-card--fulfillment {
    border-left: 3px solid #10b981;
}

.boardroom-card--config {
    border-left: 3px solid #ef4444;
}

@media (max-width: 900px) {
    .boardroom-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   3. PAINTING CARDS - FIX IMAGE CROPPING
   ============================================================ */

.painting-card__image {
    /* Fill the entire square (cropping if needed) */
    aspect-ratio: 1 / 1;
    height: auto;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: var(--bg-surface);
    position: relative;
}

.painting-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.painting-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.painting-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.painting-card__meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.painting-card__prices {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Full-width Edit button at bottom of card */
.painting-card .btn {
    width: 100%;
    margin-top: auto;
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.painting-card .btn:hover {
    background: var(--accent-primary);
    color: var(--bg-base);
}

.painting-card--unavailable {
    opacity: 0.6;
}

.painting-card--unavailable .painting-card__image::after {
    content: 'UNAVAILABLE';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* ============================================================
   4. CONTACTS PAGE - EMAIL LINK COLORS
   ============================================================ */

#contactsTableBody a[href^="mailto:"],
.contacts-table a[href^="mailto:"],
table a[href^="mailto:"] {
    color: var(--accent-primary) !important;
    text-decoration: none;
}

#contactsTableBody a[href^="mailto:"]:hover,
table a[href^="mailto:"]:hover {
    color: var(--accent-primary-hover) !important;
    text-decoration: underline;
}

/* Phone links */
table a[href^="tel:"] {
    color: var(--text-secondary);
    text-decoration: none;
}

table a[href^="tel:"]:hover {
    color: var(--text-primary);
}

/* Add Contact button - ensure proper contrast */
.btn--primary {
    background: var(--accent-primary);
    color: #0B0F19 !important; /* Dark text for contrast */
    font-weight: 500;
}

/* ============================================================
   5. SETTINGS PAGE - SPACING & INPUT STYLING
   ============================================================ */

/* Add spacing before Shipping Calculator Test */
.section-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 32px 0;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Dark mode input styling - Premium SaaS */
.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    background: #0F172A !important;
    border: 1px solid #334155 !important;
    color: #F8FAFC !important;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: #64748B !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
}

/* Form label styling */
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Form prefix styling (for $ symbols) */
.form-prefix {
    display: flex;
    align-items: center;
}

.form-prefix span {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-right: none;
    padding: 10px 12px;
    color: var(--text-muted);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.9375rem;
}

.form-prefix input {
    border-radius: 0 var(--radius) var(--radius) 0 !important;
}

/* Shipping test result box */
#testShipResult {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary) !important;
}

/* Zone grid styling */
.zone-grid {
    display: block;
    margin-bottom: 16px;
}

.zone-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 8px;
}

.zone-item label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

/* ============================================================
   6. TYPOGRAPHY & ALIGNMENT FIXES
   ============================================================ */

/* Page titles - left aligned */
.page-header h2 {
    text-align: left;
}

/* Card titles - left aligned */
.card__title {
    text-align: left;
}

/* Data values in stat cards - centered */
.stat-card__value,
.alert-card__count {
    text-align: center;
}

/* Dashboard page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.page-header > div:first-child {
    text-align: left;
}

/* Ensure Inter font throughout */
body, .btn, input, select, textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   7. CHART STYLING HINT (for Chart.js config)
   ============================================================ */
/* 
   Revenue chart should use gradient:
   backgroundColor: createGradient('#06B6D4', '#3B82F6')
   
   This is handled in admin.js initCharts() function
*/

/* ============================================================
   8. TAGS DROPDOWN - DARK MODE
   ============================================================ */

.tags-dropdown-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: var(--shadow-md);
}

.tags-dropdown-menu .tag-checkbox-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.tags-dropdown-menu .tag-checkbox-item:hover {
    background: var(--bg-card-hover);
}

.tags-dropdown-menu .tag-checkbox-item label {
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.875rem;
}

/* ============================================================
   9. MODAL FIXES - DARK MODE
   ============================================================ */

.modal__content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.modal__header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.modal__footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

/* ============================================================
   10. MISC DARK MODE FIXES
   ============================================================ */

/* Ensure all text is readable */
td, th {
    color: var(--text-secondary);
}

th {
    color: var(--text-muted);
}

/* Table row hover */
tr:hover td {
    background: var(--bg-card-hover);
}

/* Links in tables */
td a {
    color: var(--accent-primary);
}

td a:hover {
    color: var(--accent-primary-hover);
}

/* Code blocks */
code {
    background: var(--bg-surface);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Contacts count badge in sidebar */
.contacts-count {
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

/* ============================================================
   BOARDROOM SECTION TITLE
   ============================================================ */

/* Old boardroom-section removed - now first-class module */

/* ============================================================
   PAINTING CARD TAGS
   ============================================================ */

.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag--unavailable {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.tag--sold {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.tag--limited {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.tag--original {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.tag--no-custom {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.tag--nonstandard {
    background: rgba(139, 92, 246, 0.15);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ============================================================
   SIDEBAR OVERLAY (Mobile)
   ============================================================ */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* ============================================================
   TABLE TEXT ALIGNMENT
   ============================================================ */

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

/* ============================================================
   LOGIN BUTTON DARK MODE FIX
   ============================================================ */

.login-box .btn--secondary {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle) !important;
}

.login-box .btn--secondary:hover {
    background: var(--bg-card-hover) !important;
}

/* ============================================================
   FORM INPUT SMALL VARIANT
   ============================================================ */

.form-input--small {
    padding: 8px 12px;
    font-size: 0.875rem;
}

/* ============================================================
   MARGIN/PADDING UTILITIES
   ============================================================ */

.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mt-4 { margin-top: 24px !important; }

/* ============================================================
   OUTLINE BUTTON VARIANT
   ============================================================ */

.btn--outline-primary {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 4px 10px;
    font-size: 0.75rem;
}

.btn--outline-primary:hover {
    background: var(--accent-primary-bg);
}

/* ============================================================
   ENSURE STAT CARD VALUES ARE CENTERED
   ============================================================ */

.stat-card__content {
    text-align: center;
}

.stat-card__value {
    text-align: center;
}

.stat-card__label {
    text-align: center;
}

/* ============================================================
   CHART CARD DARK MODE
   ============================================================ */

.charts-grid .card {
    background: var(--bg-card);
}

.charts-grid .card__header {
    border-bottom: 1px solid var(--border-subtle);
}

.chart-period-label {
    color: var(--text-muted) !important;
}
}

/* ============================================================
   SETTINGS PAGE - NEW COMPONENTS
   ============================================================ */

/* Shipping Calculator Result */
.shipping-calc-result {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 16px;
    font-family: 'Inter', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}

.shipping-calc-result .calc-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.shipping-calc-result .calc-label {
    color: var(--text-muted);
}

.shipping-calc-result .calc-value {
    color: var(--accent-primary);
    font-weight: 500;
}

.shipping-calc-result .calc-total {
    border-top: 1px solid var(--border-subtle);
    margin-top: 8px;
    padding-top: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.shipping-calc-result .calc-note {
    color: var(--warning);
    font-size: 0.8125rem;
    margin-top: 8px;
    font-style: italic;
}

/* Status List (for Order/Inquiry Statuses and Contact Stages) */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}

.status-item__color {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.status-item__name {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    font-size: 0.9375rem;
    padding: 6px 10px;
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.status-item__name:hover {
    border-color: var(--border-subtle);
}

.status-item__name:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card);
}

.status-item__flags {
    display: flex;
    gap: 16px;
    align-items: center;
}

.status-item__flag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.status-item__flag input[type="checkbox"] {
    accent-color: var(--accent-primary);
}

.status-item__actions {
    display: flex;
    gap: 8px;
}

.status-item__delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.status-item__delete:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.status-item--default {
    border-color: var(--accent-primary);
    border-style: dashed;
}

.status-item__default-badge {
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: var(--accent-primary-bg);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Zone Item Styling */
/* Zone item row styling */
.zone-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.zone-item__name {
    flex: 1;
    min-width: 150px;
}

.zone-item__multiplier {
    width: 100px;
}

.zone-item__tooltip {
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: help;
    position: relative;
}

.zone-item__tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    z-index: 10;
    border: 1px solid var(--border-subtle);
}

.zone-item__delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.zone-item__delete:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.zone-item--fallback {
    border-color: var(--warning);
    border-style: dashed;
}

.zone-item__fallback-badge {
    font-size: 0.75rem;
    color: var(--warning);
    background: var(--warning-bg);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-primary);
    width: 16px;
    height: 16px;
}

/* Size Table Group */
.size-table-group {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}

.size-table-group__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
}

.size-table-group__name {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--radius);
}

.size-table-group__name:hover {
    border-color: var(--border-subtle);
}

.size-table-group__name:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.size-table-group__ratio {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.size-table-group__ratio input {
    width: 50px;
    text-align: center;
}

.size-table-group__delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
}

.size-table-group__delete:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.size-table-group__body {
    padding: 16px;
}

.size-table-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.size-table-row input {
    width: 80px;
    text-align: center;
}

.size-table-row__delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.size-table-row__delete:hover {
    color: var(--danger);
}

.size-table-group__add {
    margin-top: 12px;
}

/* Confirmation Modal */
.confirm-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 400px;
    text-align: center;
}

.confirm-modal__title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirm-modal__message {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.confirm-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ============================================================
   QUE PRINTING MODAL
   ============================================================ */

.que-status-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.que-status-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.que-status-option:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.que-status-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.que-status-option input[type="radio"]:checked + .que-status-label {
    font-weight: 600;
}

.que-status-label {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ============================================================
   TODAY'S PRIORITIES
   ============================================================ */

.priorities-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.priority-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
}

.priority-category--empty {
    display: none;
}

.priority-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.priority-category__header:hover {
    background: var(--bg-card-hover);
}

.priority-category__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.priority-category__icon {
    font-size: 1.25rem;
}

.priority-category__count {
    background: var(--accent-primary);
    color: var(--bg-base);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.priority-category__summary {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.priority-category__toggle {
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.priority-category.collapsed .priority-category__toggle {
    transform: rotate(-90deg);
}

.priority-category__items {
    border-top: 1px solid var(--border-subtle);
    padding: 8px 0;
}

.priority-category.collapsed .priority-category__items {
    display: none;
}

.priority-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.priority-item:hover {
    background: var(--bg-card-hover);
}

.priority-item__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.priority-item__title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.priority-item__subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.priority-item__time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.priority-item__arrow {
    color: var(--text-muted);
}

.priorities-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.priorities-empty__icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.priorities-empty__text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
}
