/* ==========================================================================
   GLOBAL CAMPAIGN BRANDING & VARIABLES
   ========================================================================== */
/* Hide Google Translate banner bar */
.goog-te-banner-frame { display: none !important; }
body.translated-ltr { top: 0 !important; }
body.translated-rtl { top: 0 !important; }
.skiptranslate { display: none !important; }
#goog-gt-tt { display: none !important; }

:root {
    --bg-dark: #0a0e14;
    --card-bg: rgba(22, 28, 38, 0.65);
    --bg-card: #161c26; /* Solid dark card color */
    --border-color: rgba(255, 255, 255, 0.08);
    --color-text: #e2e8f0;
    --color-text-primary: #ffffff;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --accent-orange: #ff9100;
    --accent-red: #ff3d00;
    --accent-blue: #2979ff;
    --accent-emerald: #00e676;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

/* Premium Light Theme (White) */
body.theme-light {
    --bg-dark: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --bg-card: #ffffff; /* Solid white card color */
    --border-color: rgba(0, 0, 0, 0.08);
    --color-text: #334155;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --accent-orange: #d97706;
    --accent-red: #dc2626;
    --accent-blue: #2563eb;
    --accent-emerald: #16a34a;
}
body.theme-light .sidebar {
    background: #f1f5f9;
}
body.theme-light .nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}
body.theme-light .nav-btn.active {
    background: rgba(0, 0, 0, 0.08);
}
body.theme-light .core-box {
    background: rgba(0, 0, 0, 0.02);
}
body.theme-light ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

/* Premium Ocean Blue Theme */
body.theme-blue {
    --bg-dark: #030e1a;
    --card-bg: rgba(10, 30, 55, 0.65);
    --bg-card: #0a1e37; /* Solid blue card color */
    --border-color: rgba(0, 191, 255, 0.15);
    --color-text: #b0d4ff;
    --color-text-primary: #ffffff;
    --color-text-secondary: #7bb5f7;
    --color-text-muted: #4e80b8;
    --accent-orange: #00d2ff;
    --accent-red: #ff3d00;
    --accent-blue: #2979ff;
    --accent-emerald: #00e676;
}
body.theme-blue .sidebar {
    background: rgba(2, 10, 20, 0.95);
}

/* Premium Emerald Forest Theme */
body.theme-emerald {
    --bg-dark: #04140c;
    --card-bg: rgba(8, 32, 20, 0.65);
    --bg-card: #082014; /* Solid emerald card color */
    --border-color: rgba(0, 230, 118, 0.15);
    --color-text: #b2ebd4;
    --color-text-primary: #ffffff;
    --color-text-secondary: #74ccab;
    --color-text-muted: #4b9c80;
    --accent-orange: #00e676;
    --accent-red: #ff3d00;
    --accent-blue: #2979ff;
    --accent-emerald: #00e676;
}
body.theme-emerald .sidebar {
    background: rgba(2, 12, 8, 0.95);
}

/* High Contrast Mode */
body.high-contrast-mode {
    --bg-dark: #000000;
    --card-bg: rgba(20, 20, 20, 0.95);
    --bg-card: #111111;
    --border-color: rgba(255, 255, 255, 0.4);
    --color-text: #ffffff;
    --color-text-primary: #ffffff;
    --color-text-secondary: #e0e0e0;
    --color-text-muted: #b0b0b0;
    --accent-orange: #ffb300;
    --accent-red: #ff5252;
    --accent-blue: #448aff;
    --accent-emerald: #69f0ae;
}
body.high-contrast-mode .sidebar {
    background: #000000;
}
body.high-contrast-mode .glass {
    border-width: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--color-text);
    font-family: var(--font-primary);
    overflow-x: hidden;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* Sidebar styling */
.sidebar {
    width: 280px;
    background: rgba(13, 20, 30, 0.95);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo-area {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    font-size: 24px;
    color: var(--accent-orange);
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--color-text-primary);
}

.logo-text span {
    font-size: 10px;
    color: var(--color-text-muted);
    font-weight: 700;
}

.sidebar-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 14px;
}

.nav-category {
    margin-bottom: 24px;
}

.category-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-secondary);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-speed);
}

.nav-btn:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-btn.active {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.05);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.mission-bubble {
    background: rgba(255, 61, 0, 0.08);
    border: 1px solid rgba(255, 61, 0, 0.15);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.mission-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-red);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.mission-body {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.app-header {
    padding: 24px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.header-title p {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
}

.language-selector select {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: var(--color-text-primary) !important;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    box-shadow: none !important;
}

.language-selector select option {
    background-color: var(--bg-dark) !important;
    color: var(--color-text) !important;
}

.panels-container {
    padding: 40px;
    flex-grow: 1;
}

/* ==========================================================================
   PANEL STATE TOGGLES
   ========================================================================== */
.panel {
    display: none;
}

.panel.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CARDS & UTILITIES (GLASSMORPHISM)
   ========================================================================== */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.hero-section {
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, rgba(22, 28, 38, 0.9), rgba(10, 14, 20, 0.95));
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 12px 0;
    line-height: 1.2;
}

.hero-content p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: var(--accent-orange);
    color: #ffffff;
    border: none;
    outline: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-speed);
}

.action-btn:hover {
    background: #ff5722;
}

.action-btn.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
}

.action-btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.metric-icon {
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon.alert-red { background: rgba(255, 61, 0, 0.12); color: var(--accent-red); }
.metric-icon.alert-orange { background: rgba(255, 145, 0, 0.12); color: var(--accent-orange); }
.metric-icon.alert-green { background: rgba(0, 230, 118, 0.12); color: var(--accent-emerald); }

.metric-info h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0;
}

.metric-info p {
    font-size: 11.5px;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   HOTSPOTS & SHIPPING MAP LAYOUT
   ========================================================================== */
.home-map-section {
    display: flex;
    flex-direction: column;
}

.box-header h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: #ffffff;
}

.box-header p {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.home-map-container {
    margin-top: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* ==========================================================================
   2-COLUMN LAYOUTS
   ========================================================================== */
.about-us-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 800px) {
    .about-us-layout {
        grid-template-columns: 1fr;
    }
}

.about-text-content p {
    margin-bottom: 14px;
    color: var(--color-text-secondary);
}

.leaders-list li {
    list-style: none;
    margin-bottom: 14px;
}

.leaders-list strong {
  color: var(--color-text-primary);
}

.leaders-list span {
    font-size: 12px;
    color: var(--color-text-secondary);
    display: block;
    margin-top: 2px;
}

/* ==========================================================================
   TRADE FLOWS PAGE
   ========================================================================== */
.routes-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

@media (max-width: 900px) {
    .routes-layout {
        grid-template-columns: 1fr;
    }
}

.map-wrapper {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.laws-matrix-wrapper {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    padding: 12px 16px;
    font-weight: 700;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--color-text);
}

/* ==========================================================================
   HEALTH PAGE (ANATOMY SELECTOR)
   ========================================================================== */
.health-explorer-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 30px;
}

@media (max-width: 800px) {
    .health-explorer-layout {
        grid-template-columns: 1fr;
    }
}

.anatomy-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.silhouette-container {
    width: 220px;
    height: 380px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255,255,255,0.06)"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H7c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.04-.42 1.99-1.07 2.75z"/></svg>') no-repeat center;
    background-size: contain;
    position: relative;
}

.organ-point {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-red);
    position: absolute;
    cursor: pointer;
    box-shadow: 0 0 8px var(--accent-red);
    transition: all 0.2s;
    opacity: 0.3;
}

.organ-point.active {
    opacity: 1;
    transform: scale(1.3);
}

.organ-brain { top: 15%; left: 47%; }
.organ-lungs { top: 32%; left: 47%; }
.organ-kidneys { top: 46%; left: 47%; }
.organ-repro, .organ-reproductive { top: 58%; left: 47%; }

.chem-selector-row {
    display: flex;
    gap: 10px;
    margin: 14px 0;
}

.chem-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--color-text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all var(--transition-speed);
}

.chem-btn.active {
    background: var(--accent-orange);
    color: #ffffff;
    border-color: var(--accent-orange);
}

/* Before-and-After Swipe Image Compare */
.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.slider-compare {
    position: relative;
    height: 380px;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.slider-compare img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-dumped {
    width: 100%;
    height: 100%;
}

.img-clean {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.image-label {
    position: absolute;
    bottom: 20px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.7);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.label-dumped { right: 20px; }
.label-clean { left: 20px; }

.slider-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    cursor: ew-resize;
    z-index: 10;
}

.slider-handle::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 4px;
    height: 380px;
    background: #ffffff;
    cursor: ew-resize;
}

/* ==========================================================================
   CALCULATORS
   ========================================================================== */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 800px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }
}

.input-group {
    margin-bottom: 20px;
}

.input-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.input-labels label {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
}

.range-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-orange);
}

.input-group input[type="range"] {
    width: 100%;
    accent-color: var(--accent-orange);
}

.calculated-waste-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.calculated-waste-metric strong {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--accent-red);
}

.costs-breakdown {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--color-text-secondary);
}

.cost-row strong {
    color: #ffffff;
}

.cost-row.total-row {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.cost-row.total-row strong {
    color: var(--accent-emerald);
}

/* ==========================================================================
   VIDEO GRID LAYOUT
   ========================================================================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.video-card {
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-orange);
}

.video-thumbnail {
    position: relative;
    height: 180px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-info {
    padding: 14px 0 0 0;
}

.video-info h5 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: #ffffff;
}

.video-info p {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

/* ==========================================================================
   DOWNLOADS MODULE
   ========================================================================== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.download-icon {
    font-size: 36px;
    color: var(--accent-orange);
    margin-bottom: 14px;
}

.download-card h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 8px;
}

.download-card p {
    font-size: 12.5px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.download-card .action-btn {
    margin-top: auto;
}

/* ==========================================================================
   MODALS (OVERLAY & CARD PLAYBACK)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #0d141e;
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #ffffff;
    cursor: pointer;
    outline: none;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000000;
    margin-bottom: 15px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#video-modal-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

/* ==========================================================================
   FORM AND GENERAL ADDITIONS
   ========================================================================== */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

input[type="text"],
input[type="number"],
textarea,
select,
.mp-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed);
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus,
.mp-select:focus {
    border-color: var(--accent-orange);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.badge-success { background: rgba(0, 230, 118, 0.12); color: var(--accent-emerald); }
.badge-warn { background: rgba(255, 145, 0, 0.12); color: var(--accent-orange); }
.badge-danger { background: rgba(255, 61, 0, 0.12); color: var(--accent-red); }

.report-view-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 800px) {
    .report-view-layout {
        grid-template-columns: 1fr;
    }
}

.report-map-container {
    height: 380px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hidden {
    display: none !important;
}

.about-core-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.core-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
}

.core-box h5 {
    color: var(--accent-orange);
    font-size: 13px;
    margin-bottom: 6px;
}

.core-box p {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .about-core-metrics {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   GOOGLE TRANSLATE CUSTOM STYLE INVISIBILITY OVERRIDES
   ========================================================================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame {
    display: none !important;
}
body {
    top: 0px !important;
}
html {
    margin-top: 0px !important;
}
.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


/* ==========================================================================
   CAMPAIGN SPOKESPERSON ANCHOR PULSE EFFECTS
   ========================================================================== */
@keyframes anchorPulseAnimation {
    0% {
        transform: scale(1.0);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.50);
        opacity: 0;
    }
}
.anchor-pulse-active {
    animation: anchorPulseAnimation 1.6s infinite ease-in-out;
}


/* ==========================================================================
   SLOW ROTATION ANIMATION (Brand Logo & Symbol)
   ========================================================================== */
@keyframes spinSlowAnimation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.spin-slow {
    animation: spinSlowAnimation 22s linear infinite;
}


/* Responsive adjustments for two-column hero section */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column !important;
        text-align: center;
        padding: 24px !important;
    }
    .hero-image-container {
        width: 160px !important;
        height: 160px !important;
        margin-top: 15px;
    }
}

/* ==========================================================================
   THEME-AWARE CHATBOT CUSTOM STYLING
   ========================================================================== */
.chat-box-container {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

body.theme-light .chat-box-container {
    background: rgba(0, 0, 0, 0.04);
}

.bot-bubble {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-primary);
    border: 1px solid transparent;
}

body.theme-light .bot-bubble {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    color: var(--color-text-primary);
}

/* Agent Button theme awareness */
.agent-btn {
    padding: 6px 12px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-primary);
}

body.theme-light .agent-btn {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-text-secondary);
}

.agent-btn.active {
    background: var(--accent-orange) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.agent-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.theme-light .agent-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Light Mode Input, Select, and Textarea Contrast Overrides */
body.theme-light input,
body.theme-light select,
body.theme-light textarea {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--color-text-primary) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
    color: var(--color-text-muted) !important;
}

/* Fix option selections inside select elements in Light Mode */
body.theme-light select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN — MOBILE-FIRST BREAKPOINTS
   ========================================================================== */

/* --- Mobile Menu Button (hidden on desktop) --- */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1100;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    color: var(--color-text-primary);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: all var(--transition-speed);
}
.mobile-menu-btn:hover {
    background: var(--accent-orange);
    color: #ffffff;
}

/* --- Sidebar Close Button (hidden on desktop) --- */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--color-text-primary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    z-index: 10;
}
.sidebar-close-btn:hover {
    background: var(--accent-red);
    color: #ffffff;
    border-color: transparent;
}

/* --- Sidebar Overlay Backdrop (hidden on desktop) --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ============ TABLET BREAKPOINT (max-width: 1024px) ============ */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    .panels-container {
        padding: 24px;
    }
    .app-header {
        padding: 18px 24px;
    }
    .hero-section {
        padding: 28px;
    }
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .download-card {
        padding: 20px;
    }
}

/* ============ MOBILE BREAKPOINT (max-width: 768px) ============ */
@media (max-width: 768px) {
    /* Show hamburger button */
    .mobile-menu-btn {
        display: flex;
    }

    /* Show sidebar close button */
    .sidebar-close-btn {
        display: flex;
    }

    /* Show overlay when sidebar is open */
    .sidebar.sidebar-open ~ .sidebar-overlay {
        display: block;
        opacity: 1;
    }

    /* Sidebar becomes slide-in overlay */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }
    .sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.4);
    }

    /* Main content takes full width */
    .main-content {
        width: 100%;
    }

    /* Adjust header */
    .app-header {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .app-header .header-title {
        flex: 1 1 100%;
        padding-left: 44px;
    }
    .header-title h2 {
        font-size: 17px;
    }
    .header-title p {
        font-size: 12px;
    }
    .app-header > div:last-child {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Reduce panel container padding */
    .panels-container {
        padding: 16px;
    }

    /* Hero section mobile */
    .hero-section {
        padding: 20px !important;
    }
    .hero-content h2 {
        font-size: 22px;
    }
    .hero-content p {
        font-size: 13px;
    }
    .hero-actions {
        flex-wrap: wrap;
    }
    .action-btn {
        font-size: 12.5px;
        padding: 10px 16px;
        min-height: 44px;
    }

    /* Stack all 2-column grids to single column */
    .about-us-layout,
    .routes-layout,
    .health-explorer-layout,
    .calculator-layout,
    .report-view-layout,
    .form-row {
        grid-template-columns: 1fr !important;
    }

    /* Metrics grid to single column */
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    /* Videos grid responsive */
    .videos-grid {
        grid-template-columns: 1fr;
    }

    /* Downloads grid responsive */
    .downloads-grid {
        grid-template-columns: 1fr;
    }

    /* Tables get horizontal scroll */
    .laws-matrix-wrapper,
    .custom-table-wrapper {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .custom-table {
        min-width: 600px;
    }

    /* About core metrics: 2 columns */
    .about-core-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Map containers reduce height */
    .report-map-container,
    .home-map-container {
        height: 260px;
    }
    #hotspot-map,
    #shipping-map {
        min-height: 260px;
    }

    /* Slider compare reduce height */
    .slider-compare {
        height: 240px;
    }
    .slider-handle::-webkit-slider-thumb {
        height: 240px;
    }

    /* Chemical selector buttons wrap */
    .chem-selector-row {
        flex-wrap: wrap;
    }

    /* Spokesperson widget repositioned for mobile */
    #campaign-anchor-widget {
        bottom: 12px !important;
        right: 12px !important;
        padding: 8px 12px !important;
        border-radius: 30px !important;
    }
    #campaign-anchor-widget #anchor-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    /* Modal adjustments */
    .modal-card {
        width: 95%;
        padding: 20px;
    }

    /* Images scale down */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Silhouette anatomy resize */
    .silhouette-container {
        width: 180px;
        height: 300px;
    }

    /* Touch-friendly interactive elements */
    .nav-btn {
        min-height: 44px;
        padding: 10px 14px;
    }
    .chem-btn {
        min-height: 44px;
        padding: 10px 18px;
    }

    /* Glass card padding reduction */
    .glass {
        padding: 16px;
    }

    /* Metric values slightly smaller */
    .metric-val {
        font-size: 20px;
    }
    .metric-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    /* Video thumbnail height */
    .video-thumbnail {
        height: 160px;
    }

    /* Download card spacing */
    .download-card {
        padding: 20px;
    }

    /* Section intro text */
    .section-intro h3 {
        font-size: 20px;
    }
    .section-intro p {
        font-size: 13px;
    }
}

/* ============ SMALL PHONES (max-width: 480px) ============ */
@media (max-width: 480px) {
    /* Even smaller padding */
    .panels-container {
        padding: 12px;
    }
    .app-header {
        padding: 12px;
    }
    .app-header .header-title {
        padding-left: 40px;
    }

    /* Smaller fonts */
    .header-title h2 {
        font-size: 15px;
    }
    .header-title p {
        font-size: 11px;
    }
    .hero-content h2 {
        font-size: 18px;
    }
    .hero-content p {
        font-size: 12px;
    }
    .hero-section {
        padding: 16px !important;
    }

    /* Single column everything */
    .about-core-metrics {
        grid-template-columns: 1fr !important;
    }

    /* Gallery thumbs smaller */
    .video-thumbnail {
        height: 140px;
    }

    /* Quiz/action buttons full width */
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    .hero-actions {
        flex-direction: column;
    }

    /* Metric card stacking */
    .metric-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Sidebar slightly narrower on very small phones */
    .sidebar.sidebar-open {
        width: 260px;
    }

    /* Spokesperson widget compact */
    #campaign-anchor-widget {
        bottom: 8px !important;
        right: 8px !important;
        padding: 6px 10px !important;
        gap: 8px !important;
    }
    #campaign-anchor-widget span {
        font-size: 9px !important;
    }
    #campaign-anchor-widget button {
        font-size: 11px !important;
    }

    /* Smaller glass padding */
    .glass {
        padding: 12px;
    }

    /* Map heights further reduced */
    .report-map-container,
    .home-map-container {
        height: 200px;
    }

    /* Modal full-width on small phones */
    .modal-card {
        width: 98%;
        padding: 16px;
        border-radius: 8px;
    }

    /* Download cards compact */
    .download-card {
        padding: 16px;
    }

    /* Form inputs larger touch targets */
    input[type="text"],
    input[type="number"],
    textarea,
    select,
    .mp-select {
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }

    /* Section intro text */
    .section-intro h3 {
        font-size: 17px;
    }
    .section-intro p {
        font-size: 12px;
    }
}
