/* =========================================================
   GLOBAL THEME VARIABLES
========================================================= */

:root {
    --accent: #EA5456;
    --accent-light: rgba(234, 84, 86, 0.08);
    --bg: #FAFAFA;
    --white: #FFFFFF;
    --text: #111111;
    --muted: #6B7280;
    --border: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.05);
  }
  
  /* =========================================================
     BASE
  ========================================================= */
  
  body {
    background: var(--bg);
    margin: 0;
    padding: 0;
  }
  
  * {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    box-sizing: border-box;
  }
  
  /* =========================================================
     LAYOUT
  ========================================================= */
  
  .sidebar {
    width: 280px;
    min-height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border);
    box-shadow: 2px 0px 8px rgba(0,0,0,0.04);
    padding: 20px 18px;
    position: sticky;
    top: 0;
  }
  
  .main {
    flex: 1;
    min-height: 100vh;
    padding: 24px;
    background: var(--bg);
  }
  
  .topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 18px;
  }
  
  /* =========================================================
     SIDEBAR NAV
  ========================================================= */
  
  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 24px;
    color: #374151;
    transition: all 0.2s ease;
  }
  
  .nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
  }
  
  .nav-item.active {
    background: var(--accent);
    color: white;
  }
  
  .filters-title {
    margin-top: 22px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #374151;
  }
  
  /* =========================================================
     CARDS
  ========================================================= */
  
  .card-lite {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }
  
  .page-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: var(--text);
  }
  
  .subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-top: 6px;
    margin-bottom: 10px;
  }
  
  /* =========================================================
     FILTER CONTROLS
  ========================================================= */
  
  /* Dropdown */
  .Select-control {
    border-radius: 12px !important;
    border: 1px solid var(--border) !important;
  }
  
  .Select-menu-outer {
    border-radius: 12px !important;
  }
  
  /* Radio pills */
  .pill-group .form-check {
    display: inline-block;
    margin-right: 8px;
  }
  
  .pill-group input {
    display: none;
  }
  
  .pill-group label {
    border: 1px solid rgba(0,0,0,0.18);
    color: #374151;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    background: white;
    transition: all 0.2s ease;
  }
  
  .pill-group input:checked + label {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
  }
  
  .pill-group label:hover {
    background: var(--accent-light);
  }
  
  /* Buttons */
  .btn {
    border-radius: 12px !important;
    font-weight: 700 !important;
  }
  
  /* =========================================================
     AG GRID LIGHT THEME OVERRIDES
  ========================================================= */
  
  .ag-theme-alpine {
    --ag-header-height: 44px;
    --ag-row-height: 36px;
    --ag-font-size: 13px;
    --ag-font-family: Inter, system-ui, sans-serif;
    --ag-border-color: var(--border);
    --ag-header-background-color: #F4F4F4;
    --ag-odd-row-background-color: #FBFBFB;
    --ag-selected-row-background-color: rgba(234, 84, 86, 0.08);
    --ag-row-hover-color: rgba(0, 0, 0, 0.03);
  }
  
  .ag-header-cell-label {
    font-weight: 700;
    color: #333;
  }
  
  .ag-cell {
    border-right: 1px solid var(--border);
  }
  
  /* =========================================================
     SCROLLBAR (Optional but nice)
  ========================================================= */
  
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.25);
  }

 /* Increase vertical spacing between wrapped rows of pills */
#time-filter .form-check {
    margin-bottom: 14px !important;   /* Increase this value for more space */
}

/* Optional: slightly more breathing room overall */
#time-filter {
    row-gap: 12px;
}

/* Increase AG Grid font size */
.ag-theme-alpine {
    font-size: 20px !important;
}

/* Increase header font size */
.ag-theme-alpine .ag-header-cell-label {
    font-size: 20px !important;
    font-weight: 600;
}

/* Adjust row height to match bigger font */
.ag-theme-alpine .ag-row {
    height: 48px !important;
}

.btn-check + .btn.rounded-pill {
    border: 1px solid #9CA3AF;
    background-color: white;
    color: #6B7280;
    font-weight: 600;
}

.btn-check:checked + .btn.rounded-pill {
    background-color: #E63946 !important;
    border-color: #E63946 !important;
    color: white !important;
}