/* Premium Design System - Emerald Teal & Slate Dark Theme */
:root {
    --bg-primary: #0B1216;      /* Deep premium slate black (prevents washed-out grey look) */
    --bg-secondary: #2F4858;    /* Solid Slate/Blue-gray from palette for inputs (fillboxes) */
    --bg-card: #14222A;         /* Darkest Slate/Blue-gray for clean card containers */
    
    --text-main: #F2FAF7;       /* Off-white with mint hint */
    --text-muted: #93ABB8;      /* Soft Slate Blue */
    
    --color-primary: #00A78A;   /* Teal-green */
    --color-primary-glow: rgba(0, 167, 138, 0.3);
    --color-success: #46C477;   /* Medium green */
    --color-success-glow: rgba(70, 196, 119, 0.2);
    --color-info: #00878C;      /* Teal */
    --color-info-glow: rgba(0, 135, 140, 0.2);
    --color-warning: #9BDD58;   /* Light green/lime */
    --color-warning-glow: rgba(155, 221, 88, 0.2);
    
    --gradient-primary: linear-gradient(135deg, #00A78A 0%, #9BDD58 100%);
}

/* Base Overrides */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-main) !important;
    font-family: 'Outfit', 'Nunito', sans-serif !important;
    transition: background-color 0.3s ease;
    overflow-x: hidden;
}

#content-wrapper, #wrapper {
    background-color: transparent !important;
}

/* Glassmorphic Navbar */
.navbar {
    background: rgba(20, 34, 42, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
    z-index: 1030 !important;
}

.navbar .navbar-brand span {
    color: var(--text-main) !important;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar .text-gray-600 {
    color: var(--text-muted) !important;
    font-weight: 500;
}

/* Dropdown Menu styling */
.dropdown-menu {
    background-color: var(--bg-secondary) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important;
}

.dropdown-item {
    color: var(--text-main) !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--color-primary) !important;
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Elegant Cards & Headers */
.card {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    color: var(--text-main) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important;
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 15px 20px !important;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Card Left Neon Accents */
.border-start-primary {
    border-left: 4px solid var(--color-primary) !important;
    box-shadow: inset 3px 0 10px rgba(0, 167, 138, 0.1) !important;
}

.border-start-success {
    border-left: 4px solid var(--color-success) !important;
    box-shadow: inset 3px 0 10px rgba(39, 245, 131, 0.05) !important;
}

.border-start-info {
    border-left: 4px solid var(--color-info) !important;
    box-shadow: inset 3px 0 10px rgba(54, 185, 204, 0.05) !important;
}

.border-start-warning {
    border-left: 4px solid var(--color-warning) !important;
    box-shadow: inset 3px 0 10px rgba(246, 194, 62, 0.05) !important;
}

/* Color Classes Overrides */
.text-primary { color: var(--color-primary) !important; }
.text-success { color: var(--color-success) !important; }
.text-info { color: var(--color-info) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-dark { color: var(--text-main) !important; }
.bg-light { background-color: var(--bg-secondary) !important; }

/* Progress Bars */
.progress {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--color-info) !important;
    box-shadow: 0 0 10px var(--color-info-glow);
}

/* Premium Buttons */
.btn-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    box-shadow: 0 4px 15px var(--color-primary-glow) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px var(--color-primary-glow) !important;
    opacity: 0.95;
}

.btn-primary:active {
    transform: translateY(1px) !important;
}

/* Tables styling */
.table {
    color: var(--text-main) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.table th, .table td {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-main) !important;
}

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

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Inputs styling */
.form-control {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--color-primary) !important; /* Teal-green from palette */
    color: var(--text-main) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.form-control:focus {
    background-color: var(--bg-secondary) !important;
    border-color: var(--color-warning) !important; /* Lime green from palette on focus */
    box-shadow: 0 0 10px var(--color-warning-glow) !important;
    color: var(--text-main) !important;
}

/* Alerts Override */
.alert-danger {
    background-color: rgba(231, 74, 59, 0.15) !important;
    border: 1px solid rgba(231, 74, 59, 0.3) !important;
    color: hsl(0, 100%, 75%) !important;
    border-radius: 8px !important;
}

/* Scroll-to-Top Button */
.scroll-to-top {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 15px var(--color-primary-glow) !important;
}

/* Clean Footer */
.footer {
    background: rgba(20, 34, 42, 0.9) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-muted) !important;
}

.footer a {
    color: var(--text-muted) !important;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer a:hover {
    color: var(--color-primary) !important;
}
