/* ========================================
   Training Evaluation System - Theme Styles
   ======================================== */

.text-muted {
    color: #e9ecef !important;
}

form .text-muted,
.card .text-muted,
.table .text-muted {
    color: rgba(33, 37, 41, 0.75) !important;
}

/* CSS Variables - Theme Colors */
:root {
    --primary-gold: #f5c220;
    --primary-gold-hover: #e0b01c;
    --dark-primary: #2d3748;
    --dark-secondary: #4a5568;
    --dark-hover: #3d4a5c;
    --white: #ffffff;
    --gray-text: #718096;
    --gray-light: #e2e8f0;
    --gray-bg: #f7fafc;
    --danger: #dc3545;
    --success: #28a745;
    --font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-blur: blur(10px);
}

/* Base Styles */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: var(--font-family);
    margin-bottom: 60px;
    background-color: var(--gray-bg);
}

/* ========================================
   Page Background Styles
   ======================================== */
body.has-background {
    background: transparent;
    min-height: 100vh;
    overflow-x: hidden;
}

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.page-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 55, 72, 0.4);
    z-index: 1;
}

/* Main Content Wrapper */
.main-content-wrapper {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 120px);
    padding: 30px 40px 4rem;
    border-radius: 20px;
    margin: 1rem auto;
    width: 85%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.main-content-wrapper .container {
    max-width: 100%;
    padding: 0;
}

@media (max-width: 992px) {
    .main-content-wrapper {
        width: 95%;
        padding: 20px 15px 4rem;
    }
}

/* Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-gold);
}

.form-control:focus {
    border-color: var(--primary-gold);
}

/* Checkbox Styling - Gold Theme */
.form-check-input {
    border: 2px solid var(--dark-primary);
    background-color: #fff;
}

.form-check-input:checked {
    background-color: var(--dark-primary);
    border-color: var(--dark-primary);
}

.form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23F5C220' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(245, 194, 32, 0.3);
}

/* ========================================
   Calendar/Datepicker Theme
   ======================================== */
/* Flatpickr Calendar */
.flatpickr-calendar {
    border: 1px solid var(--dark-primary);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.flatpickr-months .flatpickr-month {
    background: var(--dark-primary);
    color: var(--primary-gold);
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: var(--primary-gold);
    font-weight: 600;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: var(--primary-gold);
    fill: var(--primary-gold);
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: var(--white);
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--white);
}

.flatpickr-weekdays {
    background: var(--dark-primary);
}

.flatpickr-weekday {
    color: var(--primary-gold);
    font-weight: 600;
}

.flatpickr-day {
    color: var(--dark-primary);
    border-radius: 4px;
}

.flatpickr-day:hover {
    background: rgba(245, 194, 32, 0.2);
    border-color: var(--primary-gold);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--dark-primary);
    border-color: var(--dark-primary);
    color: var(--primary-gold);
}

.flatpickr-day.today {
    border-color: var(--primary-gold);
}

.flatpickr-day.today:hover {
    background: var(--primary-gold);
    color: var(--dark-primary);
}

/* Bootstrap Datepicker */
.datepicker {
    border: 1px solid var(--dark-primary);
    border-radius: 8px;
}

.datepicker-dropdown {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover,
.datepicker table tr td span.active,
.datepicker table tr td span.active:hover {
    background: var(--dark-primary) !important;
    color: var(--primary-gold) !important;
    border-color: var(--dark-primary);
}

.datepicker table tr td.today,
.datepicker table tr td.today:hover {
    background: var(--primary-gold) !important;
    color: var(--dark-primary) !important;
}

.datepicker table tr td:hover,
.datepicker table tr td span:hover {
    background: rgba(245, 194, 32, 0.2);
}

.datepicker .datepicker-switch,
.datepicker .prev,
.datepicker .next,
.datepicker tfoot tr th {
    color: var(--dark-primary);
    font-weight: 600;
}

.datepicker .datepicker-switch:hover,
.datepicker .prev:hover,
.datepicker .next:hover,
.datepicker tfoot tr th:hover {
    background: var(--dark-primary);
    color: var(--primary-gold);
}

/* jQuery UI Datepicker */
.ui-datepicker {
    border: 1px solid var(--dark-primary);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 0;
    width: auto;
}

.ui-datepicker-header {
    background: var(--dark-primary);
    color: var(--primary-gold);
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 10px;
}

.ui-datepicker-title {
    color: var(--primary-gold);
    font-weight: 600;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
    top: 10px !important;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    background-image: none !important;
}

.ui-datepicker-prev:before {
    content: "←";
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.ui-datepicker-next:before {
    content: "→";
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: transparent;
    border: none;
}

.ui-datepicker th {
    color: var(--dark-primary);
    font-weight: 600;
    padding: 8px;
}

.ui-datepicker td {
    padding: 2px;
}

.ui-datepicker td a,
.ui-datepicker td span {
    text-align: center;
    padding: 8px;
    border-radius: 4px;
}

.ui-datepicker td a:hover {
    background: rgba(245, 194, 32, 0.2);
    border: none;
}

.ui-datepicker .ui-state-active {
    background: var(--dark-primary) !important;
    color: var(--primary-gold) !important;
    border: none;
}

.ui-datepicker .ui-state-highlight {
    background: var(--primary-gold);
    color: var(--dark-primary);
    border: none;
}

/* ========================================
   Select2 Theme (Global)
   ======================================== */
/* Form Select Focus */
.form-select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(245, 194, 32, 0.3);
}

/* Single Select */
.select2-container--bootstrap-5 .select2-selection--single {
    min-height: 45px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fff;
}

.select2-container--bootstrap-5 .select2-selection--single:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection--single {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(245, 194, 32, 0.3);
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: #495057;
}

/* Multiple Select */
.select2-container--bootstrap-5 .select2-selection--multiple {
    min-height: 45px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 4px 8px 4px 35px;
    background: #fff;
    position: relative;
}

.select2-container--bootstrap-5 .select2-selection--multiple:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection--multiple {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(245, 194, 32, 0.3);
}

/* Tag/Chip Styling */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background-color: var(--dark-primary) !important;
    border: none !important;
    border-radius: 4px;
    color: var(--primary-gold) !important;
    padding: 5px 10px 5px 24px;
    margin: 3px;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
}

/* Remove button (×) on chips */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    position: absolute !important;
    left: 6px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border: none !important;
    /*background: transparent !important;*/
    padding: 0 !important;
    margin: 0 !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #dc3545 !important;
    transform: translateY(-50%) scale(1.2) !important;
}

/* Clear All button */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-primary) !important;
    border-radius: 50%;
    border: 2px solid var(--primary-gold) !important;
    z-index: 10;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear:hover {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

/* Search field */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field {
    margin-top: 5px;
    color: #495057;
}

/* Dropdown */
.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 2px;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 10px 15px;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted,
.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected],
.select2-container--bootstrap-5 .select2-results__option:hover {
    background-color: var(--primary-gold) !important;
    color: var(--dark-primary) !important;
}

.select2-container--bootstrap-5 .select2-results__option[aria-selected=true] {
    background-color: var(--dark-primary) !important;
    color: var(--primary-gold) !important;
}

/* RTL Support for Select2  */
[dir="rtl"] .select2-container--bootstrap-5 .select2-selection--multiple {
    padding: 4px 35px 4px 8px !important;
}

[dir="rtl"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    left: 1.0rem;
    right: auto;
}

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    padding-right: 8px;
    padding-right: 20px !important;
}

[dir="rtl"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    padding: 5px 24px 5px 10px !important;
}

[dir="rtl"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    left: auto !important;
    right: 6px !important;
}

[dir="rtl"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear {
    left: auto !important;
    right: 8px !important;
}

/* Form Floating Placeholders */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ========================================
   Navbar Styles
   ======================================== */
.navbar-themed {
    background: var(--dark-primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-themed .navbar-brand {
    color: var(--primary-gold) !important;
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-themed .navbar-brand:hover {
    color: var(--primary-gold-hover) !important;
}

.navbar-themed .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-themed .nav-link:hover,
.navbar-themed .nav-link:focus {
    color: var(--primary-gold) !important;
}

.navbar-themed .nav-link.active {
    color: var(--primary-gold) !important;
}

.navbar-themed .navbar-toggler {
    border-color: var(--dark-secondary);
}

.navbar-themed .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28245, 194, 32, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-themed .dropdown-menu {
    background: var(--dark-primary);
    border: 1px solid var(--dark-secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar-themed .dropdown-item {
    color: var(--white);
    transition: all 0.2s ease;
}

.navbar-themed .dropdown-item:hover,
.navbar-themed .dropdown-item:focus {
    background: var(--dark-secondary);
    color: var(--primary-gold);
}

.navbar-themed .dropdown-item.active {
    background: var(--dark-secondary);
    color: var(--primary-gold);
}

.navbar-themed .dropdown-divider {
    border-color: var(--dark-secondary);
}

/* ========================================
   Transparent Navbar (for background pages)
   ======================================== */
.navbar-themed-transparent {
    background: rgba(45, 55, 72, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1000;
}

.navbar-themed-transparent .navbar-brand {
    color: var(--primary-gold) !important;
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-themed-transparent .navbar-brand:hover {
    color: var(--primary-gold-hover) !important;
}

.navbar-themed-transparent .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-themed-transparent .nav-link:hover,
.navbar-themed-transparent .nav-link:focus {
    color: var(--primary-gold) !important;
}

.navbar-themed-transparent .nav-link.active {
    color: var(--primary-gold) !important;
}

.navbar-themed-transparent .navbar-toggler {
    border-color: var(--dark-secondary);
}

.navbar-themed-transparent .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28245, 194, 32, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-themed-transparent .dropdown-menu {
    background: rgba(45, 55, 72, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 85, 104, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1050;
}

.navbar-themed-transparent .dropdown-item {
    color: var(--white);
    transition: all 0.2s ease;
}

.navbar-themed-transparent .dropdown-item:hover,
.navbar-themed-transparent .dropdown-item:focus {
    background: rgba(74, 85, 104, 0.7);
    color: var(--primary-gold);
}

.navbar-themed-transparent .dropdown-item.active {
    background: rgba(74, 85, 104, 0.7);
    color: var(--primary-gold);
}

.navbar-themed-transparent .dropdown-divider {
    border-color: rgba(74, 85, 104, 0.5);
}

/* ========================================
   Footer Styles
   ======================================== */
.footer-themed {
    background: var(--dark-primary);
    color: var(--gray-text);
    padding: 1rem 0;
}

.footer-themed a {
    color: var(--primary-gold);
    text-decoration: none;
}

.footer-themed a:hover {
    color: var(--primary-gold-hover);
}

/* Transparent Footer (for background pages) */
.footer-themed-transparent {
    background: rgba(45, 55, 72, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Dark, blurred surface — gray-text was too low-contrast against it. White
       reads cleanly without overpowering the gold link color. */
    color: #ffffff;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

.footer-themed-transparent a {
    color: var(--primary-gold);
    text-decoration: none;
}

.footer-themed-transparent a:hover {
    color: var(--primary-gold-hover);
}

/* ========================================
   Button Styles
   ======================================== */
.btn-primary-themed {
    background: var(--dark-secondary);
    border: none;
    color: var(--primary-gold);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary-themed:hover {
    background: var(--dark-hover);
    color: var(--primary-gold);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary-themed:active {
    background: var(--dark-primary) !important;
    color: var(--primary-gold) !important;
}

.btn-gold {
    background: var(--dark-primary);
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-gold:hover {
    background: var(--dark-hover);
    color: var(--primary-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline-themed {
    border: 1px solid var(--dark-secondary);
    color: var(--dark-secondary);
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-themed:hover {
    background: var(--dark-secondary);
    color: var(--white);
}

/* Gold Outline Button - like screenshot */
.btn-outline-gold {
    border: 2px solid var(--dark-primary);
    color: var(--dark-primary);
    background: var(--primary-gold);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-outline-gold:hover {
    background: var(--primary-gold-hover);
    color: var(--dark-primary);
    border-color: var(--dark-primary);
    box-shadow: 0 4px 12px rgba(245, 194, 32, 0.3);
}

/* Dark button with gold text - like screenshot */
.btn-dark-gold {
    background: var(--dark-primary);
    border: none;
    color: var(--primary-gold);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-dark-gold:hover {
    background: var(--dark-hover);
    color: var(--primary-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Card Styles
   ======================================== */
.card-themed {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .card-themed .card-header {
        background: var(--dark-primary);
        color: var(--primary-gold);
        border-bottom: 1px solid rgba(245, 194, 32, 0.5);
        font-weight: 600;
        border-radius: 15px 15px 0 0;
        padding: 1.0rem 1.5rem 1.0rem 1.5rem;
        text-align: center;
        /*margin: 1rem 0 0 0;*/
        margin-bottom: 0;
    }

/* Gap between search header and table */
.card-themed .card-body {
    /*padding-top: 1rem !important;*/
}

.card-themed .card-header h5,
.card-themed .card-header h4,
.card-themed .card-header h3 {
    color: var(--primary-gold);
    margin: 0;
}

.card-themed .card-header small,
.card-themed .card-header .text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Search Form in Card Header */
.card-themed .card-header form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.card-themed .card-header .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-gold);
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    min-width: 280px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.card-themed .card-header .form-control:focus {
    background: #fff;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(245, 194, 32, 0.3);
    outline: none;
}

.card-themed .card-header .form-control::placeholder {
    color: #6c757d;
}

.card-themed .card-header .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-themed .card-header .btn-outline-gold {
    background: var(--primary-gold);
    color: var(--dark-primary);
    border: 2px solid var(--primary-gold);
}

.card-themed .card-header .btn-outline-gold:hover {
    background: var(--primary-gold-hover);
    border-color: var(--primary-gold-hover);
}

.card-themed .card-header .btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.card-themed .card-header .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* Select in Card Header (Advanced Search) */
.card-themed .card-header select.form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-gold);
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    appearance: auto;
    cursor: pointer;
}

.card-themed .card-header select.form-control:focus {
    background: #fff;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(245, 194, 32, 0.3);
    outline: none;
}

/* ========================================
   Table Styles
   ======================================== */
/* Global table header styling */
.table thead,
.table-themed thead {
    background: var(--dark-primary) !important;
    color: var(--primary-gold) !important;
}

.table thead th,
.table-themed thead th {
    background: var(--dark-primary) !important;
    color: var(--primary-gold) !important;
    border: none !important;
    font-weight: 600;
    padding: 1rem;
    vertical-align: middle;
    white-space: nowrap;
}

.table-themed {
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table-themed thead tr:first-child th:first-child {
    border-top-right-radius: 10px;
}

.table-themed thead tr:first-child th:last-child {
    border-top-left-radius: 10px;
}

.table-themed tbody tr:last-child td:first-child {
    border-bottom-right-radius: 10px;
}

.table-themed tbody tr:last-child td:last-child {
    border-bottom-left-radius: 10px;
}

.table tbody tr:hover,
.table-themed tbody tr:hover {
    background: rgba(245, 194, 32, 0.08) !important;
}

.table tbody td,
.table-themed tbody td {
    vertical-align: middle;
    padding: 0.875rem 1rem;
    border-color: #e9ecef;
}

/* Table with rounded corners */
.table-rounded {
    border-radius: 10px;
    overflow: hidden;
}

.table-rounded thead tr:first-child th:first-child {
    border-top-right-radius: 10px;
}

.table-rounded thead tr:first-child th:last-child {
    border-top-left-radius: 10px;
}

/* Striped rows with gold accent */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(245, 194, 32, 0.03);
}

/* ========================================
   Page Header Styles
   ======================================== */
.page-header {
    background: var(--dark-primary);
    border-radius: 15px;
    padding: 1.25rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
}

[dir="rtl"] .page-header {
    /* RTL adjustments if needed */
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5 {
    color: var(--primary-gold);
    margin: 0;
    font-weight: 600;
}

.page-header i {
    color: var(--primary-gold);
}

/* Icons inside header buttons must follow the button's own text colour — not
   the header's gold — otherwise a gold icon on a gold-filled button (e.g.
   .btn-outline-gold) is invisible, at rest and on hover. */
.page-header .btn i {
    color: inherit;
}

/* ========================================
   Alert Styles
   ======================================== */
.alert-themed {
    border: none;
    border-radius: 8px;
}

.alert-success-themed {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

[dir="rtl"] .alert-success-themed {
    border-left: none;
    border-right: 4px solid var(--success);
}

.alert-danger-themed {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

[dir="rtl"] .alert-danger-themed {
    border-left: none;
    border-right: 4px solid var(--danger);
}

/* ========================================
   Badge Styles
   ======================================== */
.badge-gold {
    background: var(--primary-gold);
    color: var(--dark-primary);
    font-weight: 500;
}

.badge-dark-themed {
    background: var(--dark-secondary);
    color: var(--white);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-gold {
    color: var(--primary-gold) !important;
}

.text-dark-themed {
    color: var(--dark-primary) !important;
}

.bg-dark-themed {
    background: var(--dark-primary) !important;
}

.bg-gold {
    background: var(--primary-gold) !important;
}

.border-gold {
    border-color: var(--primary-gold) !important;
}

/* ========================================
   Dashboard Styles
   ======================================== */
.dashboard-welcome {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-right: 4px solid var(--primary-gold);
}

[dir="ltr"] .dashboard-welcome {
    border-right: none;
    border-left: 4px solid var(--primary-gold);
}

.dashboard-welcome h2 {
    color: var(--dark-primary);
    font-weight: 600;
}

/* Stat Cards */
.stat-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-card-body {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.stat-label {
    margin: 0.25rem 0 0;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.stat-card-footer {
    padding: 0.75rem 1.5rem;
    background: var(--gray-bg);
    border-top: 1px solid var(--gray-light);
}

.stat-link {
    color: var(--dark-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.stat-link:hover {
    color: var(--primary-gold);
}

.stat-badge {
    font-size: 0.8rem;
    color: var(--gray-text);
}

/* Stat Card Color Variants */
.stat-card-primary .stat-icon {
    background: rgba(45, 55, 72, 0.1);
    color: var(--dark-primary);
}
.stat-card-primary .stat-number { color: var(--dark-primary); }

.stat-card-success .stat-icon {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}
.stat-card-success .stat-number { color: var(--success); }

.stat-card-info .stat-icon {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}
.stat-card-info .stat-number { color: #17a2b8; }

.stat-card-warning .stat-icon {
    background: rgba(245, 194, 32, 0.15);
    color: var(--primary-gold);
}
.stat-card-warning .stat-number { color: var(--primary-gold-hover); }

.stat-card-secondary .stat-icon {
    background: rgba(74, 85, 104, 0.1);
    color: var(--dark-secondary);
}
.stat-card-secondary .stat-number { color: var(--dark-secondary); }

.stat-card-purple .stat-icon {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}
.stat-card-purple .stat-number { color: #6f42c1; }

.stat-card-teal .stat-icon {
    background: rgba(32, 201, 151, 0.1);
    color: #20c997;
}
.stat-card-teal .stat-number { color: #20c997; }

/* Quick Action Buttons */
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-bg);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: var(--gray-light);
    transform: translateX(-5px);
    color: inherit;
}

[dir="ltr"] .quick-action-btn:hover {
    transform: translateX(5px);
}

.quick-action-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.quick-action-text {
    flex: 1;
}

.quick-action-text strong {
    display: block;
    color: var(--dark-primary);
    font-size: 0.95rem;
}

.quick-action-text small {
    color: var(--gray-text);
    font-size: 0.8rem;
}

.quick-action-arrow {
    color: var(--gray-text);
    transition: transform 0.2s;
}

.quick-action-btn:hover .quick-action-arrow {
    transform: translateX(-3px);
    color: var(--primary-gold);
}

[dir="ltr"] .quick-action-btn:hover .quick-action-arrow {
    transform: translateX(3px);
}

[dir="ltr"] .quick-action-arrow {
    transform: rotate(180deg);
}

/* ========================================
   New Dashboard Styles (Matching Screenshot)
   ======================================== */

/* Welcome Card */
.welcome-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: var(--dark-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.75rem;
}

.welcome-label {
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
}

.user-name {
    color: var(--dark-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.user-info {
    color: var(--gray-text);
    font-size: 0.85rem;
}

.badge-date {
    background: var(--primary-gold);
    color: var(--dark-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* New Stat Cards */
.stat-card-new {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-card-new-body {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    text-align: right;
}

[dir="ltr"] .stat-card-new-body {
    justify-content: flex-start;
    text-align: left;
}

.stat-icon-new {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    order: 1;
}

[dir="ltr"] .stat-icon-new {
    order: 0;
}

.stat-info {
    flex: 1;
}

.stat-number-new {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: var(--dark-primary);
}

.stat-label-new {
    margin: 0.25rem 0 0;
    color: var(--gray-text);
    font-size: 0.85rem;
}

.stat-card-new-footer {
    padding: 0.75rem 1.5rem;
    background: var(--dark-primary);
    text-align: center;
}

.stat-link-new {
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.stat-link-new:hover {
    color: var(--primary-gold-hover);
}

.stat-badge-new {
    color: var(--primary-gold);
    font-size: 0.85rem;
}

/* Stat Icon Colors */
.stat-icon-primary {
    background: rgba(45, 55, 72, 0.1);
    color: var(--dark-primary);
}

.stat-icon-success {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.stat-icon-info {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.stat-icon-warning {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.stat-icon-secondary {
    background: rgba(74, 85, 104, 0.15);
    color: var(--dark-secondary);
}

.stat-icon-purple {
    background: rgba(111, 66, 193, 0.15);
    color: #6f42c1;
}

.stat-icon-teal {
    background: rgba(32, 201, 151, 0.15);
    color: #20c997;
}

/* New Quick Action Buttons */
.quick-action-btn-new {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--gray-bg);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-light);
}

.quick-action-btn-new:hover {
    background: var(--white);
    border-color: var(--primary-gold);
    transform: translateX(-3px);
    color: inherit;
}

[dir="ltr"] .quick-action-btn-new:hover {
    transform: translateX(3px);
}

.quick-action-icon-new {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.bg-primary-light {
    background: rgba(45, 55, 72, 0.1);
    color: var(--dark-primary);
}

.bg-info-light {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
}

.bg-warning-light {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.bg-success-light {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

/* Status Badges for Training */
.badge-scheduled {
    background: var(--primary-gold);
    color: var(--dark-primary);
    font-weight: 600;
}

.badge-gold {
    background: var(--primary-gold);
    color: var(--dark-primary);
    font-weight: 600;
}

/* Logout button style */
.btn-logout {
    border: 2px solid var(--primary-gold);
    color: var(--danger);
    background: transparent;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.badge-active {
    background: #28a745;
    color: white;
}

.badge-completed {
    background: var(--dark-secondary);
    color: white;
}

.badge-cancelled {
    background: #dc3545;
    color: white;
}

.badge-default {
    background: var(--gray-text);
    color: white;
}

/* Font weight utility */
.fw-500 {
    font-weight: 500;
}

/* Fixed width buttons for actions */
.btn-fixed-width {
    min-width: 70px;
    text-align: center;
}

.btn-fixed-width-sm {
    min-width: 55px;
    text-align: center;
}

/* ========================================
   Enhanced Filter Tabs
   ======================================== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--gray-light);
    background: var(--white);
    color: var(--dark-secondary);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: var(--primary-gold);
    color: var(--dark-primary);
    background: rgba(245, 194, 32, 0.06);
    text-decoration: none;
}

.filter-tab.active {
    background: var(--dark-primary);
    border-color: var(--dark-primary);
    color: var(--primary-gold);
    box-shadow: 0 3px 10px rgba(45, 55, 72, 0.25);
}

.filter-tab.active:hover {
    background: var(--dark-hover);
    color: var(--primary-gold);
}

.filter-tab .tab-icon {
    font-size: 1rem;
    line-height: 1;
}

.filter-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--gray-light);
    color: var(--dark-secondary);
}

.filter-tab.active .tab-count {
    background: var(--primary-gold);
    color: var(--dark-primary);
}

/* Status-colored dot indicator on tabs */
.filter-tab .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.filter-tab .status-dot.dot-all { background: var(--dark-secondary); }
.filter-tab .status-dot.dot-pending { background: #f39c12; }
.filter-tab .status-dot.dot-approved { background: #28a745; }
.filter-tab .status-dot.dot-rejected { background: #dc3545; }

.filter-tab.active .status-dot {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* ========================================
   Enhanced Action Buttons (Table Icons)
   ======================================== */
.action-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    color: var(--dark-secondary);
    background: var(--gray-bg);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

/* Action button with label */
.action-btn.has-label {
    width: auto;
    padding: 0 12px;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Color Variants */
.action-btn-danger {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.2);
}
.action-btn-danger:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.action-btn-primary {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.2);
}
.action-btn-primary:hover {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.action-btn-info {
    color: #0dcaf0;
    background: rgba(13, 202, 240, 0.08);
    border-color: rgba(13, 202, 240, 0.2);
}
.action-btn-info:hover {
    background: #0dcaf0;
    color: white;
    border-color: #0dcaf0;
}

.action-btn-warning {
    color: #d68910;
    background: rgba(245, 194, 32, 0.1);
    border-color: rgba(245, 194, 32, 0.3);
}
.action-btn-warning:hover {
    background: var(--primary-gold);
    color: var(--dark-primary);
    border-color: var(--primary-gold);
}

.action-btn-success {
    color: #28a745;
    background: rgba(40, 167, 69, 0.08);
    border-color: rgba(40, 167, 69, 0.2);
}
.action-btn-success:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.action-btn-secondary {
    color: var(--dark-secondary);
    background: rgba(74, 85, 104, 0.08);
    border-color: rgba(74, 85, 104, 0.2);
}
.action-btn-secondary:hover {
    background: var(--dark-secondary);
    color: white;
    border-color: var(--dark-secondary);
}

.action-btn-dark {
    color: var(--primary-gold);
    background: var(--dark-primary);
    border-color: var(--dark-primary);
}
.action-btn-dark:hover {
    background: var(--dark-hover);
    color: var(--primary-gold);
    border-color: var(--dark-hover);
    box-shadow: 0 3px 10px rgba(45, 55, 72, 0.3);
}

/* Tooltip for action buttons */
.action-btn[title] {
    cursor: pointer;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
    .filter-tabs {
        gap: 6px;
        padding: 12px;
    }
    .filter-tab {
        padding: 7px 14px;
        font-size: 0.82rem;
    }
    .action-btns {
        gap: 4px;
    }
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

/* ========================================
   Context Menu (Dropdown) for Action Buttons
   ======================================== */
.table-with-dropdown {
    overflow: visible !important;
}
.dropdown-menu-themed {
    background: var(--dark-primary);
    border: 1px solid var(--dark-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 6px 0;
    min-width: 200px;
    z-index: 1050;
}
.dropdown-menu-themed .dropdown-item {
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.88rem;
    transition: all 0.15s ease;
}
.dropdown-menu-themed .dropdown-item:hover,
.dropdown-menu-themed .dropdown-item:focus {
    background: var(--dark-secondary);
    color: var(--primary-gold);
}
.dropdown-menu-themed .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #f14353;
}
.dropdown-menu-themed .dropdown-divider {
    border-color: var(--dark-secondary);
    margin: 4px 0;
}

/* ========================================
   Custom Modal Dialogs
   ======================================== */
.app-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background 0.25s ease, backdrop-filter 0.25s ease;
    padding: 1rem;
}

.app-modal-backdrop.show {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.app-modal-dialog {
    background: var(--glass-bg, rgba(255, 255, 255, 0.95));
    border-radius: 20px;
    padding: 2rem 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(245, 194, 32, 0.15);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.app-modal-backdrop.show .app-modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.app-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: modalIconPulse 0.6s ease;
}

@keyframes modalIconPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.app-modal-message {
    font-size: 1.05rem;
    color: var(--dark-primary, #2d3748);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-family: var(--font-family, 'Cairo', sans-serif);
    font-weight: 500;
}

.app-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.app-modal-actions .btn {
    min-width: 110px;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: var(--font-family, 'Cairo', sans-serif);
}

.app-modal-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.app-modal-actions .btn-outline-secondary {
    border-color: #cbd5e0;
    color: var(--dark-secondary, #4a5568);
    background: transparent;
}

.app-modal-actions .btn-outline-secondary:hover {
    background: #f7fafc;
    border-color: #a0aec0;
    color: var(--dark-primary, #2d3748);
}

/* Dark theme support for _PublicLayout pages */
body[style*="background"] .app-modal-dialog,
.has-dark-bg .app-modal-dialog {
    background: rgba(45, 62, 80, 0.97);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(233, 188, 45, 0.3);
}

body[style*="background"] .app-modal-message,
.has-dark-bg .app-modal-message {
    color: #e0e1dd;
}

body[style*="background"] .app-modal-actions .btn-outline-secondary,
.has-dark-bg .app-modal-actions .btn-outline-secondary {
    border-color: #4a6178;
    color: #c6d8eb;
}

body[style*="background"] .app-modal-actions .btn-outline-secondary:hover,
.has-dark-bg .app-modal-actions .btn-outline-secondary:hover {
    background: #4a6178;
    color: #e0e1dd;
}

@media (max-width: 480px) {
    .app-modal-dialog {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
    .app-modal-icon {
        font-size: 2.8rem;
    }
    .app-modal-actions {
        flex-direction: column-reverse;
    }
    .app-modal-actions .btn {
        width: 100%;
    }
}

/* ========================================
   Bootstrap Modal - Gold Theme Override
   ======================================== */
.modal-content {
    background: var(--card-bg, #1a2744);
    color: var(--text-light, #fff);
    border: 2px solid var(--gold-primary, #F5C220);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(245, 194, 32, 0.25), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.modal-header {
    border-bottom: 1px solid rgba(245, 194, 32, 0.3);
    padding: 1.2rem 1.5rem;
}

.modal-header .modal-title {
    color: var(--gold-primary, #F5C220);
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(245, 194, 32, 0.3);
    padding: 1rem 1.5rem;
}

.modal-content .form-control,
.modal-content .form-select {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.modal-content .form-control:focus,
.modal-content .form-select:focus {
    border-color: var(--gold-primary, #F5C220);
    box-shadow: 0 0 0 0.2rem rgba(245, 194, 32, 0.15);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Native <option>s inherit the parent select's white color, which made
   the dropdown items invisible against the OS's white panel background
   (only the hovered row showed up). Force a dark text + white
   background on every option inside a modal select, and let long titles
   wrap so a long session name doesn't stretch the panel off the page. */
.modal-content .form-select option,
.modal-content .form-select optgroup {
    color: #1a2744 !important;
    background-color: #fff !important;
    white-space: normal;
    word-break: break-word;
}
.modal-content .form-select option:checked {
    background-color: rgba(245, 194, 32, 0.25) !important;
    color: #1a2744 !important;
}

.modal-content .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modal-content .form-label {
    color: #fff;
    font-weight: 500;
}

.modal-content hr {
    border-color: rgba(245, 194, 32, 0.2);
}

.start-100 {
    right: 90% !important;
    left: auto !important;
}

.top-0 {
    top: 7% !important;
}
