/* ============================================
   GLOBAL DESIGN SYSTEM — Amazon Internal Products
   Inspired by Meta Store + Amazon.com patterns
   Usage: <link rel="stylesheet" href="global.css">
   
   Blanket rules:
     border: 1px solid var(--g-border)
     border-radius: 32px
   ============================================ */

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ── Design Tokens ─────────────────────────── */
:root {
    /* Typography */
    --g-font: 'Amazon Ember', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --g-font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    --g-font-size-xs: 11px;
    --g-font-size-sm: 12px;
    --g-font-size-base: 14px;
    --g-font-size-md: 16px;
    --g-font-size-lg: 18px;
    --g-font-size-xl: 22px;
    --g-font-size-2xl: 28px;
    --g-font-size-3xl: 36px;
    --g-line-height: 1.5;
    --g-line-height-tight: 1.25;
    --g-letter-spacing: -0.01em;

    /* Colors — Amazon palette */
    --g-white: #ffffff;
    --g-black: #0F1111;
    --g-bg: #ffffff;
    --g-bg-secondary: #f7f8fa;
    --g-bg-tertiary: #f0f2f5;
    --g-bg-hover: #f0f0f0;
    --g-bg-active: #e3e6e8;
    --g-text: #0F1111;
    --g-text-secondary: #565959;
    --g-text-muted: #888c8c;
    --g-text-link: #007185;
    --g-text-link-hover: #c7511f;
    --g-border: #d5d9d9;
    --g-border-light: #ededed;
    --g-border-dark: #bbbfbf;

    /* Brand */
    --g-orange: #ff9900;
    --g-orange-hover: #fa8900;
    --g-orange-dark: #e47911;
    --g-blue: #007185;
    --g-blue-hover: #004b91;
    --g-dark: #232F3E;
    --g-dark-deep: #131A22;
    --g-green: #067D62;
    --g-green-light: #E7F4EE;
    --g-red: #B12704;
    --g-red-light: #FFF5F5;
    --g-yellow-star: #FFA41C;

    /* Shadows */
    --g-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --g-shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --g-shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --g-shadow-xl: 0 8px 32px rgba(0,0,0,0.18);
    --g-shadow-card: 0 2px 5px rgba(15,17,17,0.08);

    /* 2026 Neumorphic Drop Shadow (dual-light) */
    --g-shadow-neu: 0 -30px 48px rgba(255,255,255,0.7), 0 30px 48px rgba(0,0,0,0.25);
    --g-shadow-neu-sm: 0 -12px 24px rgba(255,255,255,0.6), 0 12px 24px rgba(0,0,0,0.15);
    --g-shadow-neu-hover: 0 -30px 48px rgba(255,255,255,0.85), 0 30px 48px rgba(0,0,0,0.3);
    --g-radius: 32px;

    /* Spacing */
    --g-space-1: 4px;
    --g-space-2: 8px;
    --g-space-3: 12px;
    --g-space-4: 16px;
    --g-space-5: 20px;
    --g-space-6: 24px;
    --g-space-8: 32px;
    --g-space-10: 40px;
    --g-space-12: 48px;

    /* Transitions */
    --g-transition-fast: 0.15s ease;
    --g-transition: 0.2s ease;
    --g-transition-slow: 0.3s ease;

    /* Meta-style transition tokens */
    --g-duration: .2s;
    --g-ease-out: cubic-bezier(.4, 0, 1, 1);
    --g-ease-smooth: ease-in-out;
    --g-font-display: 'Optimistic Display', Montserrat, Helvetica, Arial, 'Noto Sans', sans-serif;
    --g-color-dark: #1C2B33;
    --g-color-light-bg: #E6EBEF;
    --g-color-surface: #FFFFFF;

    /* Z-index */
    --g-z-dropdown: 100;
    --g-z-sticky: 200;
    --g-z-fixed: 300;
    --g-z-overlay: 9000;
    --g-z-modal: 10000;
    --g-z-toast: 11000;

    /* Layout */
    --g-sidebar-width: 260px;
    --g-max-width: 1440px;
    --g-content-max: 1200px;
}

/* ── Base ───────────────────────────────────── */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--g-font);
    font-size: var(--g-font-size-base);
    line-height: var(--g-line-height);
    letter-spacing: var(--g-letter-spacing);
    color: var(--g-text);
    background: #ffffff;
}

/* Force white background on all layout containers (overridden by dark mode) */
.content-area, .page-container, #page-content, #content-area {
    background: #ffffff;
}

/* Dark mode overrides for layout containers */
body.dark-mode {
    background: #1a202c !important;
    color: #e2e8f0;
}

body.dark-mode .content-area,
body.dark-mode .page-container,
body.dark-mode #page-content,
body.dark-mode #content-area {
    background: #1a202c !important;
}

body.dark-mode .content-card,
body.dark-mode .stat-card {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #f7fafc;
}

body.dark-mode p {
    color: #a0aec0;
}

body.dark-mode table th {
    background: #2d3748;
    color: #a0aec0;
    border-bottom-color: #4a5568;
}

body.dark-mode table td {
    border-bottom-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode table tr:hover {
    background: #374151;
}

body.dark-mode .g-card {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .g-badge-green { background: #064e3b; color: #6ee7b7; }
body.dark-mode .g-badge-blue { background: #1e3a5f; color: #93c5fd; }
body.dark-mode .g-badge-orange { background: #78350f; color: #fcd34d; }
body.dark-mode .g-badge-red { background: #7f1d1d; color: #fca5a5; }
body.dark-mode .g-badge-gray { background: #374151; color: #d1d5db; }

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--g-text);
    margin: 0 0 8px;
    line-height: var(--g-line-height-tight);
}
h1 { font-size: var(--g-font-size-2xl); }
h2 { font-size: var(--g-font-size-xl); }
h3 { font-size: var(--g-font-size-md); }
h4 { font-size: var(--g-font-size-base); font-weight: 600; }

p { margin: 0 0 12px; color: var(--g-text-secondary); }

a { color: var(--g-text-link); text-decoration: none; }
a:hover { color: var(--g-text-link-hover); text-decoration: underline; }

.g-price { font-size: var(--g-font-size-xl); font-weight: 700; color: var(--g-text); }
.g-price-was { font-size: var(--g-font-size-sm); color: var(--g-text-muted); text-decoration: line-through; }
.g-deal-badge { color: var(--g-red); font-weight: 700; font-size: var(--g-font-size-md); }

/* ── Buttons (Amazon-style: small, compact, rounded pill) ── */
.g-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.g-btn:hover { box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.g-btn:active { transform: scale(0.97); }
.g-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.g-btn:focus-visible { outline: 2px solid var(--g-blue); outline-offset: 2px; }

.g-btn-orange {
    background: var(--g-orange);
    color: var(--g-white);
    border-color: var(--g-orange-dark);
}
.g-btn-orange:hover:not(:disabled) { background: var(--g-orange-hover); }

.g-btn-yellow {
    background: #FFD814;
    color: var(--g-black);
    border-color: #FCD200;
}
.g-btn-yellow:hover:not(:disabled) { background: #F7CA00; }

.g-btn-dark {
    background: var(--g-dark);
    color: var(--g-white);
}
.g-btn-dark:hover:not(:disabled) { background: var(--g-dark-deep); }

.g-btn-blue {
    background: var(--g-blue);
    color: var(--g-white);
}
.g-btn-blue:hover:not(:disabled) { background: var(--g-blue-hover); }

.g-btn-outline {
    background: var(--g-white);
    color: var(--g-text);
    border: 1px solid var(--g-border);
}
.g-btn-outline:hover:not(:disabled) { background: var(--g-bg-hover); }

.g-btn-ghost {
    background: transparent;
    color: var(--g-text-link);
    border: none;
    padding: 5px 10px;
}
.g-btn-ghost:hover { background: var(--g-bg-hover); }

.g-btn-danger { background: var(--g-red); color: var(--g-white); }
.g-btn-sm { padding: 4px 12px; font-size: 12px; }
.g-btn-lg { padding: 10px 22px; font-size: 14px; }
.g-btn-full { width: 100%; }
.g-btn-icon { padding: 6px; min-width: 30px; min-height: 30px; border-radius: 50%; }

/* ── Form Inputs ───────────────────────────── */
.g-input, .g-select, .g-textarea {
    width: 100%;
    padding: 8px 12px;
    font-family: inherit;
    font-size: var(--g-font-size-base);
    border: 1px solid var(--g-border);
    border-radius: 8px;
    background: var(--g-white);
    color: var(--g-text);
    transition: border-color var(--g-transition-fast), box-shadow var(--g-transition-fast);
}
.g-input:focus, .g-select:focus, .g-textarea:focus {
    outline: none;
    border-color: var(--g-blue);
    box-shadow: 0 0 0 3px rgba(0,113,133,0.15);
}
.g-input::placeholder, .g-textarea::placeholder { color: var(--g-text-muted); }

.g-label {
    display: block;
    font-size: var(--g-font-size-sm);
    font-weight: 600;
    color: var(--g-text);
    margin-bottom: 4px;
}

/* ── Cards ─────────────────────────────────── */
.g-card {
    background: var(--g-white);
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius);
    padding: 20px;
    box-shadow: var(--g-shadow-neu-sm);
}
.g-card-hover { transition: box-shadow var(--g-transition), border-color var(--g-transition); }
.g-card-hover:hover { box-shadow: var(--g-shadow-neu-hover); border-color: var(--g-border-dark); }
.g-card-flat { box-shadow: none; }
.g-card-compact { padding: 12px 16px; }

/* ── Product Card (Amazon style) ───────────── */
.g-product-card {
    background: var(--g-white);
    border: 1px solid var(--g-border-light);
    border-radius: var(--g-radius);
    padding: 16px;
    transition: box-shadow var(--g-transition);
    cursor: pointer;
    box-shadow: var(--g-shadow-neu-sm);
}
.g-product-card:hover { box-shadow: var(--g-shadow-neu-hover); }
.g-product-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    margin-bottom: 12px;
}
.g-product-card-title {
    font-size: var(--g-font-size-base);
    font-weight: 400;
    color: var(--g-text-link);
    line-height: 1.35;
    margin-bottom: 4px;
}
.g-product-card-title:hover { color: var(--g-text-link-hover); text-decoration: underline; }

/* ── Buy Box (Amazon/Meta sticky panel) ────── */
.g-buy-box {
    position: sticky;
    top: 20px;
    align-self: start;
    background: var(--g-white);
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius);
    padding: 20px;
    box-shadow: var(--g-shadow-neu);
}
.g-buy-box-divider {
    border: none;
    border-top: 1px solid var(--g-border-light);
    margin: 12px 0;
}
.g-buy-box-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--g-font-size-sm);
    color: var(--g-text-secondary);
    margin-bottom: 6px;
}
.g-buy-box-row strong { color: var(--g-text); }
.g-in-stock { color: var(--g-green); font-weight: 600; font-size: var(--g-font-size-md); }

/* ── Tables ────────────────────────────────── */
.g-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}
.g-table th {
    background: var(--g-bg-secondary);
    padding: 10px 14px;
    text-align: left;
    font-size: var(--g-font-size-xs);
    font-weight: 700;
    color: var(--g-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--g-border);
}
.g-table td {
    padding: 10px 14px;
    font-size: var(--g-font-size-sm);
    border-bottom: 1px solid var(--g-border-light);
}
.g-table tr:hover { background: var(--g-bg-hover); }

/* ── Spec Table (Amazon product detail style) ─ */
.g-spec-table {
    width: 100%;
    border-collapse: collapse;
}
.g-spec-table tr:nth-child(odd) { background: var(--g-bg-secondary); }
.g-spec-table th {
    text-align: left;
    padding: 8px 14px;
    font-size: var(--g-font-size-sm);
    font-weight: 600;
    color: var(--g-text);
    width: 35%;
    border: 1px solid var(--g-border-light);
}
.g-spec-table td {
    padding: 8px 14px;
    font-size: var(--g-font-size-sm);
    color: var(--g-text-secondary);
    border: 1px solid var(--g-border-light);
}

/* ── Badges ────────────────────────────────── */
.g-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: var(--g-font-size-xs);
    font-weight: 700;
    border-radius: 32px;
}
.g-badge-green { background: var(--g-green-light); color: var(--g-green); }
.g-badge-blue { background: #E3F2FD; color: #1565C0; }
.g-badge-orange { background: #FFF3CD; color: #856404; }
.g-badge-red { background: var(--g-red-light); color: var(--g-red); }
.g-badge-gray { background: var(--g-bg-tertiary); color: var(--g-text-secondary); }
.g-badge-prime { background: var(--g-blue); color: var(--g-white); font-style: italic; }

/* ── Stars / Rating ────────────────────────── */
.g-stars { color: var(--g-yellow-star); font-size: var(--g-font-size-base); letter-spacing: 1px; }
.g-rating-count { color: var(--g-text-link); font-size: var(--g-font-size-sm); margin-left: 4px; }

/* ── Image Gallery ─────────────────────────── */
.g-gallery { display: flex; flex-direction: column; gap: 12px; }
.g-gallery-main {
    width: 100%;
    aspect-ratio: 1;
    background: var(--g-white);
    border: 1px solid var(--g-border-light);
    border-radius: var(--g-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.g-gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.g-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.g-gallery-thumb {
    width: 56px;
    height: 56px;
    border: 1px solid var(--g-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--g-white);
    transition: border-color var(--g-transition-fast);
}
.g-gallery-thumb:hover, .g-gallery-thumb.active { border-color: var(--g-orange); border-width: 2px; }
.g-gallery-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ── Swatch / Option Selector ──────────────── */
.g-swatch-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.g-swatch {
    width: 56px;
    height: 56px;
    border: 1px solid var(--g-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--g-white);
    transition: border-color var(--g-transition-fast);
}
.g-swatch:hover { border-color: var(--g-text-link); }
.g-swatch.active { border-color: var(--g-text-link); border-width: 2px; }
.g-swatch img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ── Modal ─────────────────────────────────── */
.g-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: var(--g-z-modal);
}
.g-modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    background: var(--g-white);
    border-radius: var(--g-radius);
    box-shadow: var(--g-shadow-neu);
    z-index: calc(var(--g-z-modal) + 1);
    overflow: hidden;
    max-width: 92vw;
    max-height: 85vh;
}
.g-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--g-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.g-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.g-modal-footer { padding: 16px 20px; border-top: 1px solid var(--g-border-light); }
.g-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--g-text-muted);
    padding: 4px;
    line-height: 1;
}
.g-modal-close:hover { color: var(--g-text); }

/* ── Toast ─────────────────────────────────── */
.g-toast {
    position: fixed;
    top: 20px; right: 20px;
    padding: 12px 20px;
    color: var(--g-white);
    font-weight: 600;
    font-size: var(--g-font-size-sm);
    border-radius: var(--g-radius);
    z-index: var(--g-z-toast);
    box-shadow: var(--g-shadow-neu);
    animation: g-toast-in 0.3s ease;
}
.g-toast-success { background: var(--g-green); }
.g-toast-error { background: var(--g-red); }
.g-toast-info { background: var(--g-blue); }
@keyframes g-toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Breadcrumb ────────────────────────────── */
.g-breadcrumb {
    font-size: var(--g-font-size-sm);
    color: var(--g-text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.g-breadcrumb a { color: var(--g-text-link); }
.g-breadcrumb .sep { color: var(--g-text-muted); }

/* ── Divider ───────────────────────────────── */
.g-divider {
    border: none;
    border-top: 1px solid var(--g-border-light);
    margin: 16px 0;
}

/* ── Feature List (Amazon bullet style) ────── */
.g-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.g-feature-list li {
    padding: 4px 0;
    font-size: var(--g-font-size-base);
    color: var(--g-text);
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}
.g-feature-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--g-text);
    font-weight: 700;
}

/* ── Collapsible Section ───────────────────── */
.g-collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 0;
    border-top: 1px solid var(--g-border-light);
    font-weight: 600;
    font-size: var(--g-font-size-base);
    color: var(--g-text);
    user-select: none;
}
.g-collapse-header:hover { color: var(--g-text-link); }
.g-collapse-chevron {
    transition: transform var(--g-transition);
    font-size: 12px;
}
.g-collapse-header.open .g-collapse-chevron { transform: rotate(180deg); }
.g-collapse-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--g-transition-slow);
}
.g-collapse-body.open { max-height: 2000px; }

/* ── Product Page Layout (Amazon 3-col) ────── */
.g-product-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    max-width: var(--g-content-max);
}
@media (max-width: 960px) {
    .g-product-layout { grid-template-columns: 1fr; }
    .g-buy-box { position: static; }
}

/* ── Grid Layouts ──────────────────────────── */
.g-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.g-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.g-grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 768px) {
    .g-grid-2, .g-grid-3, .g-grid-4 { grid-template-columns: 1fr; }
}

/* ── Utility ───────────────────────────────── */
.g-text-muted { color: var(--g-text-muted); }
.g-text-link { color: var(--g-text-link); }
.g-text-sm { font-size: var(--g-font-size-sm); }
.g-text-xs { font-size: var(--g-font-size-xs); }
.g-text-md { font-size: var(--g-font-size-md); }
.g-text-lg { font-size: var(--g-font-size-lg); }
.g-text-center { text-align: center; }
.g-text-bold { font-weight: 700; }
.g-text-semibold { font-weight: 600; }
.g-mt-0 { margin-top: 0; }
.g-mt-1 { margin-top: 8px; }
.g-mt-2 { margin-top: 16px; }
.g-mt-3 { margin-top: 24px; }
.g-mt-4 { margin-top: 32px; }
.g-mb-0 { margin-bottom: 0; }
.g-mb-1 { margin-bottom: 8px; }
.g-mb-2 { margin-bottom: 16px; }
.g-mb-3 { margin-bottom: 24px; }
.g-mb-4 { margin-bottom: 32px; }
.g-p-0 { padding: 0; }
.g-p-1 { padding: 8px; }
.g-p-2 { padding: 16px; }
.g-p-3 { padding: 24px; }
.g-flex { display: flex; }
.g-flex-col { flex-direction: column; }
.g-flex-wrap { flex-wrap: wrap; }
.g-items-center { align-items: center; }
.g-items-start { align-items: flex-start; }
.g-justify-between { justify-content: space-between; }
.g-justify-center { justify-content: center; }
.g-gap-1 { gap: 8px; }
.g-gap-2 { gap: 12px; }
.g-gap-3 { gap: 16px; }
.g-gap-4 { gap: 24px; }
.g-hidden { display: none; }
.g-block { display: block; }
.g-w-full { width: 100%; }
.g-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }


/* ── Blanket Modal White Background ────────── */
/* All modals across all pages default to white */
.modal-content, .g-modal, .g-modal-body,
dialog, [role="dialog"] {
    background-color: #ffffff !important;
}

/* ── Blanket Button Unification ────────────── */
/* Override any legacy purple/blue buttons to Amazon palette */
button, .btn, [class*="btn-"] {
    font-family: 'Amazon Ember', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Blanket Table Unification ─────────────── */
table {
    border-collapse: collapse;
    width: 100%;
}
table th {
    background: #f7f8fa;
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #888c8c;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #d5d9d9;
}
table td {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid #ededed;
}
table tr:hover {
    background: #f0f0f0;
}

/* ── Blanket Form Focus ────────────────────── */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #007185 !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.15) !important;
}

/* ── Blanket Link Colors ───────────────────── */
a { color: #007185; }
a:hover { color: #c7511f; }

/* ── White Background Enforcement ──────────── */
.content-card, .stat-card {
    background: #ffffff;
}

body.dark-mode .modal-content, body.dark-mode dialog, body.dark-mode [role="dialog"] {
    background-color: #2d3748 !important;
    color: #e2e8f0;
}

/* ── Skeuomorphic Modal Overrides ──────────── */
/* Applied globally so all .g-modal instances get the dark glass treatment */

.g-modal-overlay {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.g-modal-overlay.skeu-overlay-opening {
    animation: skeu-fade-in 300ms ease forwards;
}
.g-modal-overlay.skeu-overlay-closing {
    animation: skeu-fade-out 200ms ease forwards;
}

.g-modal {
    background: linear-gradient(135deg, rgba(26,31,46,0.95) 0%, rgba(35,47,62,0.95) 100%);
    box-shadow: 0 -4px 12px rgba(255,255,255,0.05), 0 8px 24px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    color: #f0f0f0;
}

.g-modal.skeu-modal-opening {
    animation: skeu-modal-in 400ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.g-modal.skeu-modal-closing {
    animation: skeu-modal-out 250ms ease-in forwards;
}

.g-modal-header {
    border-bottom-color: rgba(255,255,255,0.08);
    color: #f0f0f0;
}

.g-modal-body {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.g-modal .g-btn:hover {
    box-shadow: 0 -30px 48px rgba(255,255,255,0.85), 0 30px 48px rgba(0,0,0,0.3);
}

.g-modal input,
.g-modal select,
.g-modal textarea {
    background: #2a3040;
    border: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
}
.g-modal input:focus,
.g-modal select:focus,
.g-modal textarea:focus {
    border-color: #007185;
    box-shadow: 0 0 0 3px rgba(0,113,133,0.25);
}
