/****************************************************************************** 
======================= GLOBAL & SHARED STYLES ================================
******************************************************************************/


body {
    font-family: Arial, sans-serif;
}


/******************************************************************************
============================= HOME PAGE NEWS ==================================
******************************************************************************/


/* Style for each news item */
.news-item {
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    min-height: 38px;
}

/* Hover effect */
.news-item:hover {
    background-color: #2a2a2a;
    cursor: pointer;
    transform: none;
}

/* Timestamp block */
.news-timestamp {
    width: 80px;
    flex-shrink: 0;
    margin-right: 10px;
    border-right: 1px solid #444;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

/* Date line */
.date {
    font-size: 12px;
    color: #cccccc;
    margin-bottom: 2px;
}

/* Time line */
.time {
    font-size: 12px;
    color: #999999;
}

/* Headline content */
.news-headline {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    max-width: calc(100% - 100px);
}



/******************************************************************************
========================= HOME PAGE ASSET PERFORMANCE =========================
******************************************************************************/


/* ===========================================================
   Major Asset Performance — FINAL SYNCHRONIZED VERSION
   =========================================================== */

/* ===== PERFORMANCE TILE CONTAINER ===== */
.perf-container {
    display: grid;
    grid-auto-rows: minmax(0, 1fr);
    width: 100%;
    height: 100%;
    gap: 4px;
    overflow: hidden;
    box-sizing: border-box;
}

/* ===========================================================
   UNIFIED GRID FOR BOTH HEADER & ROWS
   =========================================================== */

.perf-header-row,
.perf-row {
    display: grid;
    grid-template-columns: 90px 28px 80px 1fr;  /* SYMBOL | ? | CHANGE | BAR */
    align-items: center;
    padding: 3px 6px;
    height: 24px;
    column-gap: 6px;
}

/* ===========================================================
   HEADER — CLEAN, CENTERED, PROPER SPACING
   =========================================================== */

.perf-header-row {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #bbbbbb;

    padding-top: 6px;
    padding-bottom: 22px;     /* lower underline */
    border-bottom: 1px solid #444;
}

/* SYMBOL HEADER */
.perf-header-symbol {
    text-align: left;
    padding-right: 8px;
    border-right: 1px solid #333;
}

/* "?" HEADER */
.perf-header-dot {
    font-size: 14px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;   /* match centering of dot in rows */

    padding: 0;
    border-right: 1px solid #333;   /* divider between ? and CHANGE */
}

/* CHANGE HEADER */
.perf-header-pct {
    text-align: center;
    padding: 0 8px;
    border-right: 1px solid #333;
}

/* RELATIVE PERFORMANCE HEADER */
.perf-header-bar {
    text-align: center;
    padding: 0 12px;
}

/* ===========================================================
   ROWS — EXACTLY MATCH HEADER PADDING & GRID
   =========================================================== */

/* SYMBOL COLUMN */
.perf-symbol {
    font-weight: 600;
    font-size: 14px;
    color: #e0e0e0;
    text-align: left;
    padding-right: 8px;
    border-right: 1px solid #333;
}



/* Center DOT in its grid cell */
.perf-sentiment-dot {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center !important;   /* center horizontally */
    border-right: 1px solid #333;
}



/* Center CHANGE values */
.perf-pct {
    text-align: center !important;        /* center text */
    padding: 0 8px;
    border-right: 1px solid #333;
    font-weight: bold;
    font-size: 13px;
}


/* ===========================================================
   BAR COLUMN
   =========================================================== */

.perf-bar {
    height: 12px;
    background-color: #1a1a1a;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.perf-bar div {
    height: 100%;
    border-radius: 6px;
}

/* Center zero line */
.perf-bar::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #666;
}





/* ===========================================================
   BODY ROW COLUMNS — MATCHED WITH HEADER
   =========================================================== */

/* SYMBOL COLUMN */
.perf-symbol {
    font-weight: 600;
    font-size: 14px;
    color: #e0e0e0;
    text-align: left;
    padding-right: 8px;
    border-right: 1px solid #333;
}

/* DOT COLUMN */
.perf-sentiment-dot {
    width: 22px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding-left: 4px;
    padding-right: 6px;
    border-right: 1px solid #333;

    margin: 0;
}

/* PERCENT COLUMN */
.perf-pct {
    text-align: right;
    padding-left: 2px;
    padding-right: 8px;
    border-right: 1px solid #333;
    font-weight: bold;
    font-size: 13px;
}

/* ===========================================================
   RELATIVE PERFORMANCE BAR
   =========================================================== */

.perf-bar {
    height: 12px;
    background-color: #1a1a1a;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.perf-bar div {
    height: 100%;
    border-radius: 6px;
}

/* Center zero line */
.perf-bar::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #666;
}






/******************************************************************************
========================== HOME PAGE VIDEO COMMENTARY =========================
******************************************************************************/



/* --- Responsive grid for the video cards --- */
.video-list {
  /* Use a grid so cards flow horizontally on wider viewports.  Each card has
     a minimum width of 200px and grows to fill the available space. */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  overflow-y: auto;
  min-height: 200px;
  padding: 4px;
}

.video-list .video-card {
  display: flex;
  flex-direction: column;
  background-color: #222;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-list .video-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.video-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 6px 8px 2px 8px;
}

.video-date {
  font-size: 12px;
  color: #bbb;
  padding: 0 8px 6px 8px;
}

.play-btn {
  margin-top: 6px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: #333;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}


.video-card { display: flex; flex-direction: column; gap: 6px; }
.video-embed { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 10px; display: block; background: #000; }
.close-video-btn {
  position: absolute; top: 6px; right: 6px;
  border: none; background: rgba(0,0,0,0.45); color: #fff;
  width: 28px; height: 28px; line-height: 28px;
  border-radius: 50%; cursor: pointer; font-size: 18px; padding: 0;
}
.close-video-btn:hover { background: rgba(0,0,0,0.65); }


/* ---------- Video tabs (pills) ---------- */
/* Tabs: pills, no wrap */
.video-tabs {
  border-bottom: none !important;
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;       /* stay on one line */
  overflow: hidden;        /* avoid accidental scrollbar */
}

/* Each tab uses the `video-tab` class.  We avoid styling Dash's internal
   `.tab` selector directly and instead apply styles to our own classes. */
.video-tabs .video-tab {
  background: #1a1a1a !important;
  color: #cfcfcf !important;
  border: 1px solid #2b2b2b !important;
  border-radius: 9999px !important;
  padding: 6px 12px !important;
  font-size: 12px;
  white-space: nowrap;           /* never break labels */
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}

.video-tabs .video-tab:hover {
  background: #232323 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* The active tab receives `video-tab--selected` from the `selected_className`
   prop in Python. */
.video-tabs .video-tab--selected {
  background: #2e2153 !important;   /* purple-ish bg */
  color: #FFD700 !important;        /* yellow text */
  box-shadow: 0 0 0 2px #8B5CF6 inset;
}

/* Header row: keep left, keep on one line */
.video-header {
  display: flex;
  align-items: center;
  gap: 12px;               /* space between H3 and tabs */
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: nowrap;       /* don't let "Previews" drop */
}


.video-embed {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  background: #000;
}


/******************************************************************************
========================== HOME PAGE RATE EXPECTATIONS ========================
******************************************************************************/



/* === Rate Expectations tile (scoped) === */
.rate-card-wrap { padding: 8px 4px; }

.rate-card {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;     /* row “card” gaps */
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #e9e9e9;
}

.rate-card thead th {
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  color: #bdbdbd;
  padding: 6px 10px 4px;
  border-bottom: 1px solid #2b2b2b;
}

.rate-card tbody tr {
  background: #171717;
  box-shadow: 0 1px 0 #2b2b2b;
}


.rate-card td {
  padding: 4px 6px;   /* was 10px */
  vertical-align: middle;
  font-size: 13px;    /* optional: shrink font a touch */
}


/* ✅ Force rate tables to fit tiles without scrollbars */
.rate-card {
  table-layout: fixed;   /* keeps table inside container */
  font-size: clamp(11px, 1vw, 13px); /* responsive scaling */
}

.rate-card th,
.rate-card td {
  white-space: nowrap;       /* stop wrapping */
  text-overflow: ellipsis;   /* clean overflow */
  overflow: hidden;
  padding: 3px 4px;          /* tighter padding */
}

.rate-card-wrap {
  overflow: hidden !important;  /* remove scrollbars */
  flex: 1 1 auto;               /* allow shrinking */
}


/* ✅ Allow wrapping only on Home Page version */
#rate-expectations-table .rate-card thead th {
  white-space: normal;     /* allow text to wrap */
  word-break: break-word;  /* break long words if needed */
  line-height: 1.2;        /* keep it compact */
}


/* Central bank cell */
.rate-card .cb-cell { display: flex; align-items: center; gap: 10px; }
.rate-card .cb-flag { font-size: 15px; line-height: 1; }
.rate-card .cb-name { font-weight: 700; }

/* Implied BSP coloring */
.rate-card .bsp { font-weight: 600; }
.rate-card .bsp.neg { color: #ff4d4f; }
.rate-card .bsp.pos { color: #86ff6b; }


/* Move badges */
.rate-card .badge {
  display: inline-block; padding: 3px 7px; border-radius: 999px;
  font-weight: 700; font-size: 11px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.rate-card .badge-cut  { background: #2b1430; color: #e08bff; }
.rate-card .badge-hold { background: #2a2a1a; color: #ffd84d; }
.rate-card .badge-hike { background: #0f2b16; color: #86ff6b; }

/* Probability bars */
.rate-card .prob-cell { width: 15%; min-width: 100px; }
.rate-card .prob-num  { font-weight: 700; font-feature-settings: "tnum" 1, "lnum" 1; margin-bottom: 6px; }
.rate-card .prob-bar  { height: 8px; background: #2b2b2b; border-radius: 6px; overflow: hidden; }
.rate-card .prob-fill { height: 100%; border-radius: 6px; }

.rate-card .prob-bar.cut  .prob-fill  { background: linear-gradient(90deg,#a64fff,#ff8bff); }
.rate-card .prob-bar.hold .prob-fill  { background: linear-gradient(90deg,#ffd84d,#ffb84d); }
.rate-card .prob-bar.hike .prob-fill  { background: linear-gradient(90deg,#37f087,#86ff6b); }


.cb-cell {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cb-flag-img {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.cb-name {
  font-weight: 600;   /* keep the country/CB code visible and crisp */
  letter-spacing: 0.2px;
}



/* Morning Summary Tile */
#morning-summary-content {
  background: #171717;
  border-radius: 8px;
  padding: 12px;
  box-shadow: inset 0 0 6px rgba(255,255,255,0.05);
}

#morning-summary-content div {
  margin-bottom: 10px;
}

#morning-summary-content strong {
  color: #ffd84d; /* highlight key section headers */
}


/* Tighten title spacing for Rate Expectations Overview */
#rate-expectations-table h3,
#rate-expectations-table + .rate-card-wrap {
    margin-top: 1px !important;   /* was ~16px by default */
}




/* === Generic pill group for RadioItems === */
.pill-group label {
  display: inline-flex;
  align-items: center;
  margin: 0 6px 0 0;
}

.pill-group input[type="radio"] {
  display: none; /* hide the native circle */
}

.pill-group .pill-txt {
  padding: 6px 12px;
  border-radius: 9999px;
  background: #1e1e1e;
  color: #cfcfcf;
  border: 1px solid #2b2b2b;
  font-size: 13px;
  line-height: 1;
  transition: background .15s, color .15s, box-shadow .15s;
  user-select: none;
  white-space: nowrap;
}

.pill-group label:hover .pill-txt {
  background: #232323;
  color: #fff;
}

/* Selected state (clear blue highlight) */
.pill-group input[type="radio"]:checked + .pill-txt {
  background: #2e2153;     /* purple-ish bg */
  color: #FFD700;          /* yellow text */
  box-shadow: 0 0 0 2px #8B5CF6 inset;
  font-weight: 600;
}





/******************************************************************************
================================ CALENDAR PAGE ================================
******************************************************************************/


#calendar-table .rate-card-wrap {
  overflow: auto !important;
}


.rate-card.calendar {
    border-collapse: separate;
    border-spacing: 0 2px;   /* tighter gaps only for calendar */
}


/* === Economic Calendar table (scoped) === */
.rate-card.calendar thead th {
  text-align: center;             /* center all headers by default */
}
.rate-card.calendar thead th.indicator-col {
  text-align: left;               /* left align Indicator column */
}

/* Date column narrower */
.rate-card.calendar td.date-col {
  width: 100px;                   /* adjust as needed */
  text-align: center;
}

/* All td center aligned by default */
.rate-card.calendar td {
  text-align: center;
}

/* Indicator column left aligned */
.rate-card.calendar td.indicator-col {
  text-align: left;
}



/* Impact badges with dark pill background */
.impact-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  background-color: #2b2b2b;  /* dark grey pill background */
}

.impact-high {
  color: #d9534f;   /* dark red */
}

.impact-medium {
  color: #f0ad4e;   /* orange */
}

.impact-low {
  color: #ffffff;   /* white */
}



/* Central bank speaker rows */
.cb-speak-row td {
  background-color: #2b2b2b !important;  /* highlight full row */
}

.cb-speak-row td.indicator-col {
  font-style: italic;
  color: #f5f5f5;
}


/* Threshold highlights */
.row-green td {
  background-color: rgba(0, 128, 0, 0.30) !important; /* subtle green */
}

.row-red td {
  background-color: rgba(178, 34, 34, 0.30) !important; /* subtle red */
}




/* === Calendar Filter Bar === */
.calendar-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  align-items: center;
}



/* --- DATE PICKER RANGE --- */
.DateRangePickerInput {
  background-color: #1e1e1e !important;
  border: 1px solid #2b2b2b !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  display: flex;
  align-items: center;
  height: 36px; /* ✅ unify height */
  padding: 0 8px;
}

/* Inner date inputs (remove white background) */
.DateInput_input {
  background: transparent !important; /* ✅ no more white */
  color: #fff !important;
  border: none !important;
  font-size: 13px !important;
  height: 34px !important; /* ✅ match outer */
  line-height: 34px !important;
  padding: 0 6px !important;
  box-shadow: none !important;
  text-align: center !important;
}

/* Placeholder inside date fields */
.DateInput_input::placeholder {
  color: #aaa !important;
}




/* --- COUNTRY DROPDOWN (selected pill) --- */
.Select-control {
  background: #1e1e1e !important;
  border: 1px solid #2b2b2b !important;
  border-radius: 9999px !important;
  color: #fff !important;
  font-size: 13px !important;
  min-width: 140px;
  height: 36px !important;
}

.Select-value-label {
  color: #fff !important;
  font-size: 13px !important;
  line-height: 34px !important;
}

/* --- COUNTRY DROPDOWN MENU (open list) --- */
.Select-menu-outer {
  background: #1e1e1e !important;
  border: 1px solid #2b2b2b !important;
  border-radius: 6px !important;
  font-size: 13px
}

.Select-option {
  background: #1e1e1e !important;
  color: #fff !important;
  font-size: 13px !important;
  padding: 6px 10px;
}

.Select-option.is-focused {
  background: #2b2b2b !important; /* hover highlight */
  color: #fff !important;
  font-size: 13px
}



/* --- SEARCH BOX --- */
#calendar-event-filter {
  background: #1e1e1e !important;
  color: #fff !important;
  border: 1px solid #2b2b2b !important;
  border-radius: 9999px !important;
  padding: 0 12px;
  font-size: 13px;
  width: 200px;
  height: 36px !important; /* ✅ same height */
  line-height: 34px;
}


/* Fix white background behind each date box */
.DateInput {
  background: transparent !important;  /* removes white box */
  border: none !important;
}




.calendar-preset {
  background: #1e1e1e;
  border: 1px solid #2b2b2b;
  border-radius: 9999px;
  color: #fff;
  font-size: 13px;
  height: 36px;
  line-height: 34px;
  padding: 0 14px;
  cursor: pointer;
}

.calendar-preset:hover {
  background: #2b2b2b;
}

.calendar-preset.clear-btn {
  color: #ff6666;       /* red-ish text */
  border-color: #ff6666;
}

.calendar-preset.clear-btn:hover {
  background: #3a1e1e;
}



/* --- SINGLE DATE PICKER BADGE --- */
.calendar-single-date .SingleDatePickerInput {
  background-color: #1e1e1e !important;
  border: 1px solid #2b2b2b !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  display: flex;
  align-items: center;
  height: 36px !important;
  padding: 0 12px;
}

.calendar-single-date .SingleDatePickerInput input {
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  text-align: center !important;
  font-size: 13px !important;
  height: 34px !important;
  line-height: 34px !important;
  box-shadow: none !important;
}

.calendar-single-date .SingleDatePickerInput input::placeholder {
  color: #aaa !important;
}



.upcoming-event {
    background-color: rgba(255, 215, 0, 0.15); /* a soft yellow highlight */
}


.active-filter {
    background-color: #007acc; /* or any highlight color */
    color: white;
    border: 1px solid #005a9e;
}






/******************************************************************************
============================== CENTRAL BANK PAGE ==============================
******************************************************************************/



/* === Central Bank Pills === */

/* === Central Bank Pills (Top-of-page selectors style) === */
.cb-tabs {
  display: flex !important;
  justify-content: center !important;
  border: none !important;
  background: transparent !important;
  gap: 8px;                       /* balanced spacing */
  flex-wrap: nowrap !important;   /* ✅ stay on one row */
  width: 100% !important;
  overflow: hidden;               /* ✅ no scrollbars */
}

.cb-tab {
  flex: 0 1 auto !important;        /* allow controlled shrinking */
  background: #1e1e1e !important;
  border-radius: 9999px !important;
  color: #fff !important;
  font-size: 12px !important;       /* bumped font slightly back up */
  padding: 4px 8px !important;     /* slightly roomier padding */
  min-width: 70px !important;       /* ✅ ensures readability */
  max-width: 100px !important;      /* ✅ keeps them from hogging */

  border: none !important;
  margin: 0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}


/* Force spacing between tab items even with Dash wrappers */
.cb-tabs { 
  gap: 0 !important;              /* neutralize gap; we'll control via margins */
}

/* The actual flex items are the direct children Dash injects */
.cb-tabs > * {
  margin: 0 14px 0px 0 !important;  /* right + bottom spacing between badges */
}

/* Optional: no extra space after the last item on a row */
.cb-tabs > *:last-child {
  margin-right: 0 !important;
}

.cb-tab:hover {
  background: #2b2b2b !important;
  transform: translateY(-1px);
}

/* Selected pill */
.cb-tab--selected {
  background: #2e2153 !important;
  color: #FFD700 !important;
  box-shadow: 0 0 0 2px #8B5CF6 inset;
}


/* --- Central Bank Tile 1 spacing & alignment --- */
.cb-tile .rate-card-wrap { 
  margin-top: 2px;         /* pulls table closer to the title */
}

.cb-tile .rate-card th,
.cb-tile .rate-card td {
  text-align: center;      /* center align ALL columns in Tile 1 */
  vertical-align: middle;  /* better row look */
}

/* keep empty rows same height as filled rows */
.cb-tile .rate-card td {
  height: 35px;            /* same height for filled & empty */
  vertical-align: middle;  /* center vertically */
}



.curve-badge {
    background-color: #2a2a2a;
    border-radius: 20px;
    padding: 4px 12px;
    margin: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ccc;
    font-size: 13px;
}
.curve-badge:hover {
    background-color: #444;
}
.curve-badge-selected {
    background-color: #FFD700;
    color: black;
    font-weight: bold;
}




/* === Tile 4: Rate Curves (Current) — unified transparent highlight === */
.curve-pill {
  background-color: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin: 0 4px 4px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hide the default checkbox */
.curve-pill input[type="checkbox"] {
  display: none;
}

/* Hover */
.curve-pill:hover {
  background-color: #2b2b2b;
  color: #fff;
}

/* Active / Selected — single transparent purple highlight */
label.curve-pill:has(input[type="checkbox"]:checked),
.curve-pill.active {
  background-color: rgba(78, 46, 129, 0.28) !important; /* soft transparent purple */
  color: #FFD700 !important;
  border-color: #8B5CF6 !important;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.6) inset,   /* inner purple edge */
    0 0 4px rgba(139, 92, 246, 0.4);           /* outer glow */
  font-weight: 600;
}

/* Flatten inner span */
.curve-pill span {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: inherit !important;
  box-shadow: none !important;
}


/* === Shared Pill Button Style (Tile 1 toggles) === */
.pill-btn {
  border: 1px solid #2b2b2b;
  color: #d3d3d3;
  background-color: #1e1e1e;
  border-radius: 20px;
  padding: 3px 12px;
  transition: 0.2s ease-in-out;
  font-size: 13px;
  cursor: pointer;
}

/* Hover */
.pill-btn:hover {
  background-color: #2b2b2b;
  color: #fff;
}

/* Active — identical to page selector + Rate Curves highlight */
.pill-btn.active-pill {
  background: #2e2153;              /* same purple as top tabs */
  color: #FFD700;
  box-shadow: 0 0 0 1px #8B5CF6 inset;
  font-weight: 600;
}



/****************************************************************************** 
========================= CENTRAL BANK TILE 3 (NEWS) ==========================
******************************************************************************/

/* Wrap the whole tile neatly */
#tile-3 {
  display: flex;
  flex-direction: column;
  height: 100%;            /* 👈 stretch to match Tile 1 */
  box-sizing: border-box;
}

/* Inner scrolling list */
.news-scroll {
  max-height: 100%;
  overflow-y: auto;
}

.news-item {
  border-bottom: 1px solid #333;
  padding: 6px 0;
}





.cb-tile {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cb-chart {
    flex: 1 1 auto;
    height: 100%;
    min-height: 500px;
}



/****************************************************************************** 
========================= CURRENCY PAGE - SEARCH ==========================
******************************************************************************/



/* Currency page dropdown: single-pill look */
#currency-pair-search .Select-control {
  background: #1e1e1e;
  border: none;
  border-radius: 9999px;
  min-height: 36px;
  box-shadow: none;
}
#currency-pair-search .Select-placeholder,
#currency-pair-search .Select-value-label,
#currency-pair-search .Select-input > input {
  color: #ffffff !important;
}
#currency-pair-search .Select-arrow-zone { color: #ffffff; }
#currency-pair-search .Select-menu-outer {
  background: #1e1e1e;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
}


/* Pill styling applied to the inner control of the search dropdown */
.pill-dropdown .Select__control {
  background-color: #1e1e1e;
  border: none;
  border-radius: 9999px;
  min-height: 32px;
  height: 32px;
  box-shadow: none;
}

.pill-dropdown .Select__value-container {
  padding: 0 12px;
}

.pill-dropdown .Select__single-value,
.pill-dropdown .Select__placeholder {
  color: #ffffff;
}

.pill-dropdown .Select__indicators { color: #ffffff; }
.pill-dropdown .Select__indicator { padding: 6px; }

.pill-dropdown .Select__menu {
  background-color: #1e1e1e;
  color: #ffffff;
  z-index: 10000; /* ensure dropdown menu sits above other elements */
}


/* Elevate dropdown menus in Tile 1 above the chart */
#currency-tile-1 .Select__menu {
  z-index: 10000;
}


/* --- Central Bank Flags --- */
.cb-flag-img {
  width: 30px;        /* increase width */
  height: 20px;       /* slightly shorter height */
  object-fit: cover;  /* ensures rectangular scaling */
  border-radius: 2px; /* optional: subtle rounding for cleaner look */
  margin-right: 6px;  /* small gap before text */
  vertical-align: middle;
}


/* --- Central Bank News Modal Layer Fix --- */
#cb-news-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  /* don't force display, let Dash toggle it */
  justify-content: center !important;
  align-items: center !important;
  z-index: 999999 !important;
  background-color: rgba(0, 0, 0, 0.75) !important;
}

/* Inner modal box */
#cb-news-modal > div {
  position: relative !important;
  z-index: 1000000 !important;
  background-color: #1e1e1e !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 20px !important;
  width: 70% !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9) !important;
}


/* Keep Central Bank News modal at a comfortable width and height */
#cb-news-modal > div {
  transition: all 0.2s ease;
  width: 50% !important;
  min-width: 500px !important;
  min-height: 600px !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
}

#cb-news-modal[style*="display: flex"] {
  opacity: 1;
  pointer-events: all;
}

/* --- Central Bank Modal dropdown (dark mode) --- */
#cb-news-dropdown .Select-control {
  background-color: #1e1e1e !important;
  color: white !important;
  border-color: #555 !important;
}

#cb-news-dropdown .Select-menu-outer {
  background-color: #1e1e1e !important;
  color: white !important;
  border: 1px solid #555 !important;
}

#cb-news-dropdown .VirtualizedSelectOption {
  color: white !important;
  white-space: pre; /* keeps the indent for speaker rows */
}

#cb-news-dropdown .Select-placeholder,
#cb-news-dropdown .Select-value-label {
  color: white !important;
}


#cb-news-bank-header img {
  height: 50px;
}

@media (max-width: 1000px) {
  #cb-news-bank-header img {
    height: 40px;
  }
}


/* In your assets/custom.css or inside a <style> block */
.Select-control, .Select--single > .Select-control {
    border: none !important;
    box-shadow: none !important;
    background-color: #2a2a2a !important;
    border-radius: 20px !important;
}

.Select-menu-outer {
    background-color: #1f1f1f !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}

.Select-value-label {
    color: #fff !important;
    font-weight: 600 !important;
}


/* scope to our modal pills only */
.pill-dd .Select,
.pill-dd .Select-control {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;      /* wrapper stays transparent */
}

/* the visible pill */
.pill-dd .Select-control {
  background-color: #2a2a2a !important;
  border-radius: 20px !important;
  padding: 2px 6px !important;
}

/* focus state (no glow rectangle) */
.pill-dd .Select.is-focused > .Select-control,
.pill-dd .Select.has-value.is-focused > .Select-control {
  box-shadow: none !important;
}

/* value text */
.pill-dd .Select-value-label { 
  color: #fff !important; 
  font-weight: 600 !important; 
}

/* dropdown menu */
.pill-dd .Select-menu-outer {
  background-color: #1f1f1f !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}


/* ===== Cross-Asset Volatility: header layout + snapshot button ===== */

/* 3-column header: left = title, middle = dropdown, right = button */
.tile-header-3col {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tile-header-3col .center-cell { justify-self: center; }
.tile-header-3col .right-cell  { justify-self: end; }

/* dark ghost-style button */
.save-btn, .snapshot-button {
  background-color: #333 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
.save-btn:hover, .snapshot-button:hover {
  background-color: #444 !important;
  border-color: #666 !important;
}

/* keep titles from shrinking awkwardly */
.tile-header-3col h3 { margin: 0; min-width: 0; }

/* optional niceties */
.tile-header-3col > * { min-width: 0; }
.pill-dropdown .Select__menu { z-index: 9999; }





/* === Home Page News: simple name highlight === */
.hl-news-name {
    color: #bf65cf;
    font-weight: 850;
}



/* --- Home page: News search pill --- */
.pill-search-input {
  background-color: #1e1e1e;
  border: 1px solid #2b2b2b;
  border-radius: 9999px;
  padding: 4px 12px;
  min-width: 160px;
  color: #ffffff;
  font-size: 12px;
  outline: none;
}

.pill-search-input::placeholder {
  color: #888888;
}

