/* ===================================
   BLACK & GOLD THEME - AESTHETIC
   Premium Dark Theme with Gold Accents
   ==================================== */

:root {
    --primary-gold: #d4af37;
    --dark-gold: #c9a227;
    --accent-gold: #daa52d;
    --light-gold: #e8b923;
    --primary-black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --lighter-gray: #252525;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
}

/* ===================================
   ANIMATIONS
   ==================================== */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===================================
   BASE STYLES
   ==================================== */

html.dark-theme,
html {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

html.dark-theme body,
body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
    color: #e0e0e0 !important;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-in;
}

/* ===================================
   TYPOGRAPHY
   ==================================== */

html.dark-theme h1,
html.dark-theme h2,
html.dark-theme h3,
html.dark-theme h4,
html.dark-theme h5,
html.dark-theme h6,
h1, h2, h3, h4, h5, h6 {
    color: #d4af37 !important;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

html.dark-theme p,
html.dark-theme span,
html.dark-theme div,
p, span, a, li {
    color: #e0e0e0 !important;
}

html.dark-theme .text-secondary,
.text-secondary {
    color: #a0a0a0 !important;
}

html.dark-theme .text-muted,
.text-muted {
    color: #808080 !important;
}

html.dark-theme hr,
hr {
    border-color: rgba(212, 175, 55, 0.2) !important;
}

/* ===================================
   CARDS & CONTAINERS
   ==================================== */

html.dark-theme .card,
.card {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease-out;
}

html.dark-theme .card:hover,
.card:hover {
    box-shadow: 0 12px 48px rgba(212, 175, 55, 0.2) !important;
    transform: translateY(-5px);
}

html.dark-theme .card-header,
.card-header {
    background: rgba(212, 175, 55, 0.1) !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3) !important;
    color: #d4af37 !important;
}

html.dark-theme .card-body,
.card-body {
    color: #e0e0e0 !important;
}

html.dark-theme .card-footer,
.card-footer {
    background: rgba(212, 175, 55, 0.05) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
}

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

html.dark-theme .sidebar,
.sidebar {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%) !important;
    border-right: 2px solid rgba(212, 175, 55, 0.3) !important;
    animation: slideInLeft 0.5s ease-out;
}

html.dark-theme .nav-link,
.nav-link {
    color: #e0e0e0 !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px 20px;
}

html.dark-theme .nav-link:hover,
.nav-link:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    padding-left: 25px;
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.1);
}

html.dark-theme .nav-link.active,
.nav-link.active {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.15) !important;
    border-left: 4px solid #d4af37 !important;
    box-shadow: inset -4px 0 15px rgba(212, 175, 55, 0.15);
}

/* ===================================
   NAVBAR & HEADER
   ==================================== */

html.dark-theme .topbar,
.topbar, .navbar {
    background: linear-gradient(90deg, #0a0a0a 0%, #1a1a1a 100%) !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    animation: slideInDown 0.5s ease-out;
}

html.dark-theme .topbar .nav-item .nav-link,
.topbar .nav-item .nav-link {
    color: #e0e0e0 !important;
    transition: all 0.3s ease;
}

html.dark-theme .topbar .nav-item .nav-link:hover,
.topbar .nav-item .nav-link:hover {
    color: #d4af37 !important;
}

html.dark-theme .user-box,
.user-box {
    border-left: 2px solid rgba(212, 175, 55, 0.3) !important;
}

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

html.dark-theme .btn,
.btn {
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

html.dark-theme .btn::before,
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

html.dark-theme .btn:hover::before,
.btn:hover::before {
    width: 300px;
    height: 300px;
}

html.dark-theme .btn-primary,
html.dark-theme .btn-success,
html.dark-theme .btn-info,
.btn-primary, .btn-success, .btn-info,
button[type="submit"], input[type="submit"] {
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%) !important;
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3) !important;
}

html.dark-theme .btn-primary:hover,
html.dark-theme .btn-success:hover,
html.dark-theme .btn-info:hover,
.btn-primary:hover, .btn-success:hover, .btn-info:hover,
button[type="submit"]:hover, input[type="submit"]:hover {
    background: linear-gradient(135deg, #daa52d 0%, #d4af37 100%) !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5) !important;
    transform: translateY(-2px) scale(1.02) !important;
    animation: glow 1s ease-in-out;
}

html.dark-theme .btn-primary:active,
.btn-primary:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

html.dark-theme .btn-dark,
.btn-dark {
    background: #0a0a0a !important;
    border: 2px solid #d4af37 !important;
    color: #d4af37 !important;
}

html.dark-theme .btn-dark:hover,
.btn-dark:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #e8b923 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3) !important;
}

html.dark-theme .btn-secondary,
.btn-secondary {
    background: #1a1a1a !important;
    border: 1px solid #d4af37 !important;
    color: #d4af37 !important;
}

html.dark-theme .btn-secondary:hover,
.btn-secondary:hover {
    background: #252525 !important;
    color: #e8b923 !important;
}

/* ===================================
   FORMS & INPUTS
   ==================================== */

html.dark-theme .form-control,
html.dark-theme .form-select,
html.dark-theme input,
html.dark-theme textarea,
html.dark-theme select,
.form-control, .form-select, input, textarea, select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #e0e0e0 !important;
    transition: all 0.3s ease;
}

html.dark-theme .form-control:focus,
html.dark-theme .form-select:focus,
html.dark-theme input:focus,
html.dark-theme textarea:focus,
html.dark-theme select:focus,
.form-control:focus, .form-select:focus, input:focus, textarea:focus, select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #d4af37 !important;
    color: #e0e0e0 !important;
    box-shadow: 0 0 0 0.3rem rgba(212, 175, 55, 0.25) !important;
    animation: pulse 0.5s ease-out;
}

html.dark-theme .form-control::placeholder,
html.dark-theme input::placeholder,
.form-control::placeholder, input::placeholder {
    color: rgba(224, 224, 224, 0.4) !important;
}

html.dark-theme .form-label,
.form-label {
    color: #d4af37 !important;
    font-weight: 500;
}

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

html.dark-theme .table,
.table {
    color: #e0e0e0 !important;
}

html.dark-theme .table thead th,
.table thead th {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.1) 100%) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    color: #d4af37 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

html.dark-theme .table tbody tr,
.table tbody tr {
    border-color: rgba(212, 175, 55, 0.1) !important;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease-out;
}

html.dark-theme .table tbody tr:hover,
.table tbody tr:hover {
    background: rgba(212, 175, 55, 0.08) !important;
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
    transform: scale(1.01);
}

html.dark-theme .table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(212, 175, 55, 0.02) !important;
}

html.dark-theme .table td,
html.dark-theme .table th,
.table td, .table th {
    color: #e0e0e0 !important;
    padding: 12px;
}

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

html.dark-theme .modal-content,
.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    animation: slideInUp 0.4s ease-out;
}

html.dark-theme .modal-header,
.modal-header {
    background: rgba(212, 175, 55, 0.1) !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3) !important;
}

html.dark-theme .modal-header .modal-title,
.modal-header .modal-title {
    color: #d4af37 !important;
    font-weight: 600;
}

html.dark-theme .modal-body,
.modal-body {
    color: #e0e0e0 !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%) !important;
}

html.dark-theme .modal-footer,
.modal-footer {
    background: rgba(212, 175, 55, 0.05) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
}

html.dark-theme .close,
html.dark-theme .btn-close,
.close, .btn-close {
    color: #d4af37 !important;
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

html.dark-theme .close:hover,
html.dark-theme .btn-close:hover,
.close:hover, .btn-close:hover {
    animation: rotate 0.3s ease;
}

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

html.dark-theme .dropdown-menu,
.dropdown-menu {
    background: #1a1a1a !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    animation: slideInUp 0.3s ease-out;
}

html.dark-theme .dropdown-item,
.dropdown-item {
    color: #e0e0e0 !important;
    transition: all 0.3s ease;
}

html.dark-theme .dropdown-item:hover,
html.dark-theme .dropdown-item:focus,
.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #d4af37 !important;
    padding-left: 25px;
}

html.dark-theme .dropdown-divider,
.dropdown-divider {
    border-color: rgba(212, 175, 55, 0.2) !important;
}

/* ===================================
   BADGES & ALERTS
   ==================================== */

html.dark-theme .badge,
.badge {
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%) !important;
    color: #000000 !important;
    font-weight: 600;
    animation: bounce 1s ease-in-out infinite;
}

html.dark-theme .alert,
.alert {
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    animation: slideInDown 0.4s ease-out;
}

html.dark-theme .alert-danger,
.alert-danger {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    color: #daa52d !important;
}

html.dark-theme .alert-success,
.alert-success {
    background: rgba(76, 175, 80, 0.1) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
    color: #4caf50 !important;
}

html.dark-theme .alert-warning,
.alert-warning {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    color: #daa52d !important;
}

html.dark-theme .alert-info,
.alert-info {
    background: rgba(76, 175, 230, 0.1) !important;
    border-color: rgba(76, 175, 230, 0.3) !important;
    color: #4cb7e6 !important;
}

/* ===================================
   LINKS & TEXT UTILITIES
   ==================================== */

html.dark-theme a,
a {
    color: #d4af37 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

html.dark-theme a:hover,
a:hover {
    color: #e8b923 !important;
}

html.dark-theme .text-white,
html.dark-theme .text-light,
.text-white, .text-light {
    color: #e0e0e0 !important;
}

html.dark-theme .text-dark,
.text-dark {
    color: #e0e0e0 !important;
}

html.dark-theme .bg-white,
html.dark-theme .bg-light,
.bg-white, .bg-light {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
}

html.dark-theme .bg-dark,
.bg-dark {
    background: #0a0a0a !important;
    color: #e0e0e0 !important;
}

/* ===================================
   TABS & NAVIGATION TABS
   ==================================== */

html.dark-theme .nav-tabs,
.nav-tabs {
    border-bottom: 2px solid rgba(212, 175, 55, 0.2) !important;
}

html.dark-theme .nav-tabs .nav-link,
.nav-tabs .nav-link {
    color: #a0a0a0 !important;
    border: none !important;
    transition: all 0.3s ease;
    position: relative;
}

html.dark-theme .nav-tabs .nav-link:hover,
.nav-tabs .nav-link:hover {
    color: #d4af37 !important;
    border-bottom: 3px solid rgba(212, 175, 55, 0.3) !important;
}

html.dark-theme .nav-tabs .nav-link.active,
.nav-tabs .nav-link.active {
    color: #d4af37 !important;
    background: transparent !important;
    border-bottom: 3px solid #d4af37 !important;
    animation: slideInDown 0.3s ease-out;
}

/* ===================================
   SCROLLBAR
   ==================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37 0%, #c9a227 100%);
    border-radius: 5px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #daa52d 0%, #d4af37 100%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ===================================
   MISC ELEMENTS
   ==================================== */

html.dark-theme .breadcrumb,
.breadcrumb {
    background: rgba(212, 175, 55, 0.05) !important;
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
}

html.dark-theme .breadcrumb-item,
.breadcrumb-item {
    color: #e0e0e0 !important;
}

html.dark-theme .breadcrumb-item.active,
.breadcrumb-item.active {
    color: #d4af37 !important;
}

html.dark-theme .progress,
.progress {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

html.dark-theme .progress-bar,
.progress-bar {
    background: linear-gradient(90deg, #d4af37 0%, #c9a227 100%) !important;
    animation: shimmer 2s infinite;
    background-size: 200% 100%;
}

html.dark-theme .pagination .page-link,
.pagination .page-link {
    background: rgba(212, 175, 55, 0.05) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    color: #e0e0e0 !important;
    transition: all 0.3s ease;
}

html.dark-theme .pagination .page-link:hover,
.pagination .page-link:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #d4af37 !important;
}

html.dark-theme .pagination .page-item.active .page-link,
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%) !important;
    border-color: #d4af37 !important;
    color: #000000 !important;
}

/* ===================================
   OPACITY & TRANSITIONS
   ==================================== */

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

button, a, .btn, input[type="button"], input[type="submit"] {
    transition: all 0.3s ease !important;
}

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

.spinner-border {
    border-color: rgba(212, 175, 55, 0.3);
    border-right-color: #d4af37;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@media (max-width: 768px) {
    html.dark-theme .sidebar,
    .sidebar {
        animation: slideInLeft 0.4s ease-out;
    }
    
    html.dark-theme .card,
    .card {
        margin-bottom: 20px;
    }
    
    html.dark-theme .modal-content,
    .modal-content {
        animation: slideInUp 0.3s ease-out;
    }
}
