/*
 * CWAgents Global Theme
 * Applies to navigation, footer, and all pages
 */

/* ============================================
   NAVIGATION BAR
   ============================================ */

#simpleNav {
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%) !important;
    border-bottom: 1px solid #2d2d2d !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

#simpleNav a {
    color: #a3a3a3 !important;
    transition: all 0.2s ease !important;
}

#simpleNav a:hover {
    color: #d4a84b !important;
}

#simpleNav a[href*="dashboard"] {
    color: #f5f5f5 !important;
}

#simpleNav .nav-toggle-btn {
    color: #d4a84b !important;
}

/* ============================================
   FOOTER
   ============================================ */

footer.bg-white {
    background: #1a1a1a !important;
    border-top: 1px solid #2d2d2d !important;
}

footer .text-muted,
footer p,
footer a {
    color: #737373 !important;
}

footer a:hover {
    color: #d4a84b !important;
}

/* ============================================
   GLOBAL BODY OVERRIDES
   ============================================ */

.min-h-screen.bg-gray-100 {
    background: #0f0f0f !important;
}

body {
    background: #0f0f0f !important;
}

/* ============================================
   APPLICATION LOGO - GOLD GLOW
   ============================================ */

.block.h-8.w-auto,
x-application-logo {
    filter: drop-shadow(0 0 8px rgba(212, 168, 75, 0.3));
}

/* ============================================
   DROPDOWN STYLING
   ============================================ */

.dropdown-menu,
details[open] > div {
    background: #1a1a1a !important;
    border: 1px solid #2d2d2d !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-item,
details a {
    color: #f5f5f5 !important;
}

.dropdown-item:hover,
details a:hover {
    background: rgba(212, 168, 75, 0.1) !important;
    color: #d4a84b !important;
}

/* ============================================
   MODAL & OFFCANVAS GLOBAL
   ============================================ */

.modal-content {
    background: #1a1a1a !important;
    border: 1px solid #2d2d2d !important;
    color: #f5f5f5 !important;
}

.modal-header {
    border-bottom: 1px solid #2d2d2d !important;
}

.modal-footer {
    border-top: 1px solid #2d2d2d !important;
}

.modal-title {
    color: #f5f5f5 !important;
}

.offcanvas {
    background: #1a1a1a !important;
    color: #f5f5f5 !important;
}

.offcanvas-header {
    border-bottom: 1px solid #2d2d2d !important;
}

/* ============================================
   CART BADGE
   ============================================ */

.cart-badge,
.notification-badge {
    background: linear-gradient(135deg, #d4a84b 0%, #b8923e 100%) !important;
    color: #0f0f0f !important;
}

/* ============================================
   ALERT OVERRIDES
   ============================================ */

.alert {
    background: #1a1a1a !important;
    border: 1px solid #2d2d2d !important;
}

.alert-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.alert-danger {
    border-color: #f43f5e !important;
    color: #f43f5e !important;
}

.alert-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.alert-info {
    border-color: #0ea5e9 !important;
    color: #0ea5e9 !important;
}

/* ============================================
   FORM CONTROLS GLOBAL
   ============================================ */

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    background: #242424 !important;
    border: 1px solid #2d2d2d !important;
    color: #f5f5f5 !important;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: #d4a84b !important;
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15) !important;
    outline: none !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #737373 !important;
}

/* ============================================
   BUTTON OVERRIDES
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, #d4a84b 0%, #b8923e 100%) !important;
    border: none !important;
    color: #0f0f0f !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e8c36a 0%, #d4a84b 100%) !important;
    box-shadow: 0 4px 20px rgba(212, 168, 75, 0.3) !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
}

.btn-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    border: none !important;
}

.btn-outline-secondary {
    border-color: #3d3d3d !important;
    color: #a3a3a3 !important;
}

.btn-outline-secondary:hover {
    background: #242424 !important;
    border-color: #d4a84b !important;
    color: #d4a84b !important;
}

/* ============================================
   CARD OVERRIDES
   ============================================ */

.card {
    background: #1a1a1a !important;
    border: 1px solid #2d2d2d !important;
    color: #f5f5f5 !important;
}

.card-header {
    background: #242424 !important;
    border-bottom: 1px solid #2d2d2d !important;
}

.card-footer {
    background: #242424 !important;
    border-top: 1px solid #2d2d2d !important;
}

/* ============================================
   TABLE OVERRIDES
   ============================================ */

.table {
    color: #f5f5f5 !important;
}

.table thead th {
    background: #242424 !important;
    border-color: #2d2d2d !important;
    color: #a3a3a3 !important;
}

.table tbody td {
    border-color: #2d2d2d !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02) !important;
}

.table-hover tbody tr:hover {
    background: rgba(212, 168, 75, 0.05) !important;
}

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

.pagination .page-link {
    background: #1a1a1a !important;
    border-color: #2d2d2d !important;
    color: #a3a3a3 !important;
}

.pagination .page-link:hover {
    background: #242424 !important;
    color: #d4a84b !important;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #d4a84b 0%, #b8923e 100%) !important;
    border-color: #d4a84b !important;
    color: #0f0f0f !important;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    background: transparent !important;
}

.breadcrumb-item a {
    color: #a3a3a3 !important;
}

.breadcrumb-item a:hover {
    color: #d4a84b !important;
}

.breadcrumb-item.active {
    color: #f5f5f5 !important;
}

/* ============================================
   BADGE OVERRIDES
   ============================================ */

.badge.bg-primary {
    background: linear-gradient(135deg, #d4a84b 0%, #b8923e 100%) !important;
    color: #0f0f0f !important;
}

.badge.bg-secondary {
    background: #3d3d3d !important;
    color: #f5f5f5 !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #0f0f0f !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
}

/* ============================================
   LIST GROUP
   ============================================ */

.list-group-item {
    background: #1a1a1a !important;
    border-color: #2d2d2d !important;
    color: #f5f5f5 !important;
}

.list-group-item:hover {
    background: #242424 !important;
}

.list-group-item.active {
    background: linear-gradient(135deg, #d4a84b 0%, #b8923e 100%) !important;
    border-color: #d4a84b !important;
    color: #0f0f0f !important;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress {
    background: #2d2d2d !important;
}

.progress-bar {
    background: linear-gradient(90deg, #d4a84b 0%, #b8923e 100%) !important;
}

/* ============================================
   TAB OVERRIDES
   ============================================ */

.nav-tabs {
    border-bottom-color: #2d2d2d !important;
}

.nav-tabs .nav-link {
    color: #a3a3a3 !important;
    border-color: transparent !important;
}

.nav-tabs .nav-link:hover {
    border-color: #2d2d2d !important;
    color: #d4a84b !important;
}

.nav-tabs .nav-link.active {
    background: #1a1a1a !important;
    border-color: #2d2d2d #2d2d2d #1a1a1a !important;
    color: #d4a84b !important;
}

.nav-pills .nav-link {
    color: #a3a3a3 !important;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #d4a84b 0%, #b8923e 100%) !important;
    color: #0f0f0f !important;
}

/* ============================================
   TOOLTIP & POPOVER
   ============================================ */

.tooltip-inner {
    background: #242424 !important;
    border: 1px solid #3d3d3d !important;
}

.popover {
    background: #1a1a1a !important;
    border-color: #2d2d2d !important;
}

.popover-header {
    background: #242424 !important;
    border-bottom-color: #2d2d2d !important;
    color: #f5f5f5 !important;
}

.popover-body {
    color: #a3a3a3 !important;
}

/* ============================================
   SPINNER
   ============================================ */

.spinner-border {
    color: #d4a84b !important;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */

.text-dark {
    color: #f5f5f5 !important;
}

.text-muted {
    color: #737373 !important;
}

.text-body {
    color: #f5f5f5 !important;
}

.bg-white {
    background: #1a1a1a !important;
}

.bg-light {
    background: #242424 !important;
}

.border {
    border-color: #2d2d2d !important;
}

/* ============================================
   SHADOWS
   ============================================ */

.shadow,
.shadow-sm,
.shadow-lg {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* ============================================
   SELECTION HIGHLIGHT
   ============================================ */

::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #f5f5f5;
}

::-moz-selection {
    background: rgba(212, 168, 75, 0.3);
    color: #f5f5f5;
}
