/* ===================================
   WHITE, BLACK & YELLOW THEME
   =================================== */

/* CSS Variables for consistent color usage */
:root {
    /* Primary Colors */
    --theme-white: #ffffff;
    --theme-black: #000000;
    --theme-yellow: #ffd700;
    --theme-yellow-light: #ffed4e;
    --theme-yellow-dark: #e6c200;
    
    /* Secondary Colors */
    --theme-gray-light: #f8f9fa;
    --theme-gray: #6c757d;
    --theme-gray-dark: #343a40;
    
    /* Semantic Colors */
    --theme-primary: var(--theme-yellow);
    --theme-secondary: var(--theme-black);
    --theme-success: var(--theme-yellow);
    --theme-warning: var(--theme-yellow-light);
    --theme-danger: var(--theme-black);
    --theme-info: var(--theme-yellow);
    
    /* Background Colors */
    --theme-bg-primary: var(--theme-white);
    --theme-bg-secondary: var(--theme-gray-light);
    --theme-bg-dark: var(--theme-black);
    
    /* Text Colors */
    --theme-text-primary: var(--theme-black);
    --theme-text-secondary: var(--theme-gray-dark);
    --theme-text-light: var(--theme-white);
    --theme-text-muted: var(--theme-gray);
    
    /* Border Colors */
    --theme-border-light: #dee2e6;
    --theme-border: var(--theme-yellow);
    --theme-border-dark: var(--theme-black);
    
    /* Shadow Colors */
    --theme-shadow: rgba(0, 0, 0, 0.1);
    --theme-shadow-dark: rgba(0, 0, 0, 0.2);
}

/* ===================================
   GLOBAL THEME OVERRIDES
   =================================== */

/* Body and main container styling */
body {
    background-color: var(--theme-bg-primary);
    color: var(--theme-text-primary);
}

/* ===================================
   NAVIGATION & HEADER
   =================================== */

/* Navbar styling */
.navbar {
    background: linear-gradient(135deg, var(--theme-black) 0%, var(--theme-gray-dark) 100%);
    border-bottom: 3px solid var(--theme-yellow);
}

.navbar-brand {
    color: var(--theme-white) !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: var(--theme-white) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--theme-yellow) !important;
}

.navbar-nav .nav-link.active {
    color: var(--theme-yellow) !important;
    border-bottom: 2px solid var(--theme-yellow);
}

/* ===================================
   BUTTONS
   =================================== */

/* Primary buttons */
.btn-primary {
    background-color: var(--theme-yellow);
    border-color: var(--theme-yellow);
    color: var(--theme-black);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--theme-yellow-light);
    border-color: var(--theme-yellow-light);
    color: var(--theme-black);
}

.btn-primary:focus {
    background-color: var(--theme-yellow);
    border-color: var(--theme-yellow);
    color: var(--theme-black);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* Secondary buttons */
.btn-secondary {
    background-color: var(--theme-black);
    border-color: var(--theme-black);
    color: var(--theme-white);
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--theme-gray-dark);
    border-color: var(--theme-gray-dark);
    color: var(--theme-white);
}

/* Success buttons */
.btn-success {
    background-color: var(--theme-yellow);
    border-color: var(--theme-yellow);
    color: var(--theme-black);
    font-weight: 600;
}

.btn-success:hover {
    background-color: var(--theme-yellow-light);
    border-color: var(--theme-yellow-light);
    color: var(--theme-black);
}

/* Warning buttons */
.btn-warning {
    background-color: var(--theme-yellow-light);
    border-color: var(--theme-yellow-light);
    color: var(--theme-black);
    font-weight: 600;
}

.btn-warning:hover {
    background-color: var(--theme-yellow);
    border-color: var(--theme-yellow);
    color: var(--theme-black);
}

/* Danger buttons */
.btn-danger {
    background-color: var(--theme-black);
    border-color: var(--theme-black);
    color: var(--theme-white);
    font-weight: 600;
}

.btn-danger:hover {
    background-color: var(--theme-gray-dark);
    border-color: var(--theme-gray-dark);
    color: var(--theme-white);
}

/* ===================================
   CARDS
   =================================== */

.card {
    background-color: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-light);
    box-shadow: 0 2px 4px var(--theme-shadow);
}

.card-header {
    background-color: var(--theme-black);
    color: var(--theme-white);
    border-bottom: 2px solid var(--theme-yellow);
    font-weight: 600;
}

.card-title {
    color: var(--theme-text-primary);
    font-weight: 600;
}

.card-text {
    color: var(--theme-text-primary);
}

/* ===================================
   TABLES
   =================================== */

.table {
    background-color: var(--theme-bg-primary);
}

.table thead th {
    background-color: var(--theme-black);
    color: var(--theme-white);
    border-bottom: 2px solid var(--theme-yellow);
    font-weight: 700;
}

.table tbody td {
    color: var(--theme-text-primary);
    border-bottom: 1px solid var(--theme-border-light);
}

.table tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

/* ===================================
   FORMS
   =================================== */

.form-control {
    background-color: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-light);
    color: var(--theme-text-primary);
}

.form-control:focus {
    border-color: var(--theme-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.form-label {
    color: var(--theme-text-primary);
    font-weight: 600;
}

.form-select {
    background-color: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-light);
    color: var(--theme-text-primary);
}

.form-select:focus {
    border-color: var(--theme-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* ===================================
   ALERTS
   =================================== */

.alert-primary {
    background-color: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--theme-yellow);
    color: var(--theme-text-primary);
}

.alert-secondary {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid var(--theme-black);
    color: var(--theme-text-primary);
}

.alert-success {
    background-color: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--theme-yellow);
    color: var(--theme-text-primary);
}

.alert-warning {
    background-color: rgba(255, 237, 78, 0.1);
    border: 1px solid var(--theme-yellow-light);
    color: var(--theme-text-primary);
}

.alert-danger {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid var(--theme-black);
    color: var(--theme-text-primary);
}

/* ===================================
   BADGES
   =================================== */

.badge-primary {
    background-color: var(--theme-yellow);
    color: var(--theme-black);
}

.badge-secondary {
    background-color: var(--theme-black);
    color: var(--theme-white);
}

.badge-success {
    background-color: var(--theme-yellow);
    color: var(--theme-black);
}

.badge-warning {
    background-color: var(--theme-yellow-light);
    color: var(--theme-black);
}

.badge-danger {
    background-color: var(--theme-black);
    color: var(--theme-white);
}

/* ===================================
   PROGRESS BARS
   =================================== */

.progress {
    background-color: var(--theme-gray-light);
    border: 1px solid var(--theme-border-light);
}

.progress-bar {
    background-color: var(--theme-yellow);
    color: var(--theme-black);
    font-weight: 600;
}

.progress-bar.bg-primary {
    background-color: var(--theme-yellow) !important;
    color: var(--theme-black) !important;
}

.progress-bar.bg-secondary {
    background-color: var(--theme-black) !important;
    color: var(--theme-white) !important;
}

/* ===================================
   SIDEBAR & NAVIGATION
   =================================== */

.sidebar {
    background-color: var(--theme-black);
    color: var(--theme-white);
}

.sidebar .nav-link {
    color: var(--theme-white);
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--theme-yellow);
}

.sidebar .nav-link.active {
    background-color: var(--theme-yellow);
    color: var(--theme-black);
    font-weight: 600;
}

/* ===================================
   MODALS
   =================================== */

.modal-header {
    background: linear-gradient(135deg, var(--theme-black) 0%, var(--theme-gray-dark) 100%);
    color: var(--theme-white);
    border-bottom: 3px solid var(--theme-yellow);
}

.modal-title {
    color: var(--theme-white);
    font-weight: 700;
}

.modal-footer {
    background-color: var(--theme-gray-light);
    border-top: 2px solid var(--theme-yellow);
}

/* ===================================
   PAGINATION
   =================================== */

.page-link {
    color: var(--theme-black);
    background-color: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-light);
}

.page-link:hover {
    color: var(--theme-black);
    background-color: var(--theme-yellow);
    border-color: var(--theme-yellow);
}

.page-item.active .page-link {
    background-color: var(--theme-black);
    border-color: var(--theme-black);
    color: var(--theme-white);
}

.page-item.disabled .page-link {
    color: var(--theme-gray);
    background-color: var(--theme-bg-primary);
    border-color: var(--theme-border-light);
}

/* ===================================
   DROPDOWNS
   =================================== */

.dropdown-menu {
    background-color: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-light);
    box-shadow: 0 4px 6px var(--theme-shadow);
}

.dropdown-item {
    color: var(--theme-text-primary);
}

.dropdown-item:hover {
    background-color: var(--theme-yellow);
    color: var(--theme-black);
}

.dropdown-item.active {
    background-color: var(--theme-black);
    color: var(--theme-white);
}

/* ===================================
   TOOLTIPS
   =================================== */

.tooltip-inner {
    background-color: var(--theme-black);
    color: var(--theme-white);
}

.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--theme-black);
}

.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--theme-black);
}

.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--theme-black);
}

.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--theme-black);
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 768px) {
    .navbar {
        background: var(--theme-black);
    }
    
    .sidebar {
        background-color: var(--theme-black);
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-theme-primary {
    color: var(--theme-yellow) !important;
}

.text-theme-secondary {
    color: var(--theme-black) !important;
}

.bg-theme-primary {
    background-color: var(--theme-yellow) !important;
}

.bg-theme-secondary {
    background-color: var(--theme-black) !important;
}

.border-theme-primary {
    border-color: var(--theme-yellow) !important;
}

.border-theme-secondary {
    border-color: var(--theme-black) !important;
}
