/*
 * theme-forest.css  —  Light Forest
 * "Clean & outdoorsy" — warm white backgrounds, forest-green primary, amber accents.
 *
 * Light-mode only theme. Activated via:
 *   activateTheme('light', 'forest')
 *
 * Structure:
 *   [data-theme="forest"]                      — green primary (safe on any brightness)
 *   [data-bs-theme="light"][data-theme="forest"] — warm white surfaces, green borders
 */

/* ── Primary green — active in both light and dark ──────────────────────────── */
[data-theme="forest"] {
    --tblr-primary:        #2d6a2d;
    --tblr-primary-rgb:    45, 106, 45;
    --tblr-primary-darken: #1e4d1e;
    --tblr-primary-lt:     rgba(45, 106, 45, 0.12);
}

/* ── Full light forest ────────────────────────────────────────────────────────
   Warm-white surfaces, natural green borders, deep forest text.
   ─────────────────────────────────────────────────────────────────────────── */
[data-bs-theme="light"][data-theme="forest"] {
    /* Page / surface backgrounds */
    --tblr-body-bg:              #f5f7f4;
    --tblr-bg-surface:           #ffffff;
    --tblr-bg-surface-secondary: #e8efe6;
    --tblr-bg-surface-tertiary:  #f5f7f4;

    /* Borders */
    --tblr-border-color:             #c8dbc4;
    --tblr-border-color-translucent: rgba(200, 219, 196, 0.6);

    /* Text */
    --tblr-body-color:      #1a2e1a;
    --tblr-secondary-color: #5c7a5c;
    --tblr-muted:           #7a9a7a;

    /* Status colours — shifted to complement the forest palette */
    --tblr-success:     #2d6a2d;
    --tblr-success-rgb: 45, 106, 45;
    --tblr-warning:     #e07b20;
    --tblr-warning-rgb: 224, 123, 32;
}

/* ── DataTables ──────────────────────────────────────────────────────────────── */
[data-bs-theme="light"][data-theme="forest"] table.dataTable thead th,
[data-bs-theme="light"][data-theme="forest"] table.dataTable thead td {
    background-color: #f5f7f4;
    border-bottom-color: #c8dbc4;
    color: #5c7a5c;
}
[data-bs-theme="light"][data-theme="forest"] table.dataTable tbody td {
    background-color: #ffffff;
    color: #1a2e1a;
}
[data-bs-theme="light"][data-theme="forest"] table.dataTable tbody tr {
    border-bottom-color: #e8efe6;
}
[data-bs-theme="light"][data-theme="forest"] table.dataTable tbody tr:hover > td {
    background-color: #e8efe6 !important;
}
[data-bs-theme="light"][data-theme="forest"] table.dataTable tbody a {
    color: #2d6a2d;
}
[data-bs-theme="light"][data-theme="forest"] table.dataTable tbody a:hover {
    color: #1e4d1e;
}
/* Sort arrows */
[data-bs-theme="light"][data-theme="forest"] table.dataTable thead .sorting::after {
    border-top-color: #c8dbc4;
}
[data-bs-theme="light"][data-theme="forest"] table.dataTable thead .sorting_asc::after {
    border-bottom-color: #2d6a2d;
}
[data-bs-theme="light"][data-theme="forest"] table.dataTable thead .sorting_desc::after {
    border-top-color: #2d6a2d;
}
/* DataTables controls */
[data-bs-theme="light"][data-theme="forest"] .dataTables_wrapper .dataTables_filter input,
[data-bs-theme="light"][data-theme="forest"] .dataTables_wrapper .dataTables_length select {
    background-color: #ffffff;
    border-color: #c8dbc4;
    color: #1a2e1a;
}
[data-bs-theme="light"][data-theme="forest"] .dataTables_wrapper .dataTables_filter input:focus,
[data-bs-theme="light"][data-theme="forest"] .dataTables_wrapper .dataTables_length select:focus {
    border-color: #2d6a2d;
}
[data-bs-theme="light"][data-theme="forest"] .dataTables_wrapper .dataTables_filter label,
[data-bs-theme="light"][data-theme="forest"] .dataTables_wrapper .dataTables_length label,
[data-bs-theme="light"][data-theme="forest"] .dataTables_wrapper .dataTables_info {
    color: #5c7a5c;
}
[data-bs-theme="light"][data-theme="forest"] .dataTables_wrapper .dataTables_info,
[data-bs-theme="light"][data-theme="forest"] .dataTables_wrapper .dataTables_paginate {
    border-top-color: #c8dbc4;
}
[data-bs-theme="light"][data-theme="forest"] .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #1a2e1a !important;
}
[data-bs-theme="light"][data-theme="forest"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(45, 106, 45, 0.08);
    border-color: #2d6a2d;
    color: #2d6a2d !important;
}
[data-bs-theme="light"][data-theme="forest"] .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #2d6a2d;
    border-color: #2d6a2d;
    color: #fff !important;
}
[data-bs-theme="light"][data-theme="forest"] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #c8dbc4 !important;
}

/* ── br_rides expanded child row ─────────────────────────────────────────────── */
[data-bs-theme="light"][data-theme="forest"] .ride-expand-body {
    background: #e8efe6;
    border-top-color: #c8dbc4;
}
[data-bs-theme="light"][data-theme="forest"] .ride-expand-lbl { color: #7a9a7a; }
[data-bs-theme="light"][data-theme="forest"] .ride-expand-val { color: #1a2e1a; }

/* ── Cards ────────────────────────────────────────────────────────────────────── */
[data-bs-theme="light"][data-theme="forest"] .card {
    background-color: #ffffff;
    border-color: #c8dbc4;
}
[data-bs-theme="light"][data-theme="forest"] .card-header,
[data-bs-theme="light"][data-theme="forest"] .card-footer {
    border-color: #c8dbc4;
    background-color: #f5f7f4;
}

/* ── dt-admin-header border ──────────────────────────────────────────────────── */
[data-bs-theme="light"][data-theme="forest"] .dt-admin-header {
    border-bottom-color: #c8dbc4;
}

/* ── Navbar / sidebar ────────────────────────────────────────────────────────── */
[data-bs-theme="light"][data-theme="forest"] .navbar-vertical,
[data-bs-theme="light"][data-theme="forest"] .navbar {
    border-color: #c8dbc4;
}

/* ── Gradient card ─────────────────────────────────────────────────────────── */
[data-bs-theme="light"][data-theme="forest"] .card-gradient {
    background: linear-gradient(to bottom, rgba(45,106,45,.18) 0%, transparent 100%) !important;
    border-color: rgba(45,106,45,.32) !important;
}
