/* ===========================================
   🧩 Modern Light Theme (Upya Style)
   =========================================== */

/* -------------------------------------------
   1. Typography & Global Styles
   ------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Force rebuild for design update */
:root {
    --color-primary: #8bbc80;
    /* Upya Green */
    --color-secondary: #c3890d;
    /* Alert Orange/Gold */
    --color-bg-page: #f8f9fa;
    /* Very light gray (page bg) */
    --color-bg-card: #ffffff;
    /* Pure white (card bg) */
    --color-text-main: #2d3748;
    /* Dark gray (heading) */
    --color-text-muted: #718096;
    /* Muted gray (subtext) */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --border-radius: 16px;
    --transition-speed: 0.2s;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg-page);
    color: var(--color-text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* -------------------------------------------
   2. Components: Cards
   ------------------------------------------- */

/* Main layout grid */
.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Base Card Style override for Dash */
.dashboard-grid>div {
    background-color: var(--color-bg-card) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-soft) !important;
    padding: 24px !important;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    width: calc(50% - 12px);
    /* 2 columns with gap */
    box-sizing: border-box;
}

.dashboard-grid>div:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover) !important;
}

/* Mobile: Single Column */
@media (max-width: 1024px) {
    .dashboard-grid>div {
        width: 100% !important;
    }
}

/* -------------------------------------------
   3. Typography Overrides
   ------------------------------------------- */
h1,
h2,
h3,
h4 {
    color: var(--color-text-main);
    margin-top: 0;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.text-lg {
    font-size: 1.125rem;
    font-weight: 600;
}

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

/* -------------------------------------------
   4. Form Elements (Dropdowns & Buttons)
   ------------------------------------------- */

/* Dash Dropdowns (Select) */
.Select-control {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    height: 42px !important;
    box-shadow: none !important;
    background-color: #f7fafc !important;
}

.Select-control:hover {
    border-color: var(--color-primary) !important;
}

.Select-placeholder,
.Select--single>.Select-control .Select-value {
    line-height: 42px !important;
    padding-left: 12px !important;
    color: var(--color-text-main) !important;
}

/* Radio Buttons (Display Mode) */
#display-mode label {
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s;
    cursor: pointer;
}

#display-mode label:hover {
    color: var(--color-primary);
}

/* -------------------------------------------
   5. Headers & Navigation
   ------------------------------------------- */
/* Sticky Header */
.sticky-header {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
    padding: 16px 32px !important;
    z-index: 1000;
}

/* Status Indicator */
#parcel-status-indicator {
    background-color: rgba(139, 188, 128, 0.1);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Tooltips */
.tooltip-inner {
    background-color: var(--color-text-main) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip-arrow {
    border-top-color: var(--color-text-main) !important;
}

/* -------------------------------------------
   6. Utilities
   ------------------------------------------- */
.hidden {
    display: none !important;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}