/* Global Styles */
:root {
    --primary-color: #cda434;
    /* Gold */
    --secondary-color: #6c757d;
    --accent-color: #fce180;
    /* Light Gold */
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-color: #e2e8f0;
    --glass-border: 1px solid rgba(255, 215, 0, 0.2);
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    background-image: radial-gradient(circle at 10% 20%, rgb(17, 20, 10) 0%, rgb(15, 23, 42) 90%);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Inputs */
.form-control,
.form-select {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(205, 164, 52, 0.25);
    color: #fff;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #cda434 0%, #d4af37 100%);
    border: none;
    font-weight: 600;
    color: #1a202c;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e6c04e 0%, #f6d258 100%);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
    color: #000;
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    border: none;
}

.btn-purple {
    background: linear-gradient(135deg, #6f42c1 0%, #d63384 100%);
    color: white;
    border: none;
}

.btn-purple:hover {
    color: white;
    box-shadow: 0 0 15px rgba(214, 51, 132, 0.5);
}

/* Theme Overrides (Gold/Yellow) */
.text-info {
    color: var(--accent-color) !important;
}

.bg-info {
    background-color: var(--primary-color) !important;
    color: #000;
}

.border-info {
    border-color: var(--primary-color) !important;
}

/* Sidebar */
.sidebar {
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    width: 280px;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1040;
    transition: transform 0.3s ease-in-out;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(205, 164, 52, 0.2);
    /* Gold active tint */
    color: #fff;
    transform: translateX(5px);
    border-left: 3px solid var(--primary-color);
}

.nav-link i {
    width: 25px;
}

/* Force override Bootstrap nav-pills active color */
.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: rgba(205, 164, 52, 0.2) !important;
    border-left: 3px solid var(--primary-color);
    color: #fff;
}

/* Main Content Wrapper */
.content-wrapper {
    margin-left: 280px;
    transition: margin-left 0.3s ease-in-out;
}

/* Responsive Sidebar logic */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .content-wrapper {
        margin-left: 0 !important;
    }

    /* Overlay effect */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1030;
        display: none;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.show {
        display: block;
    }
}

/* Stats Cards */
.stat-card {
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* Tables */
.table {
    color: var(--text-color);
}

.table-hover tbody tr:hover {
    color: #fff;
    background-color: rgba(255, 215, 0, 0.05);
}

.table thead th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
}

.table td,
.table th {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}