:root {
    --bg-color: #0F172A; /* Slate 900 */
    --card-bg: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity */
    --text-primary: #F8FAFC; /* Slate 50 */
    --text-secondary: #94A3B8; /* Slate 400 */
    --accent-color: #6366F1; /* Indigo 500 */
    --accent-hover: #4F46E5; /* Indigo 600 */
    --accent-glow: rgba(99, 102, 241, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #3B82F6;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Outfit', 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Cards */
.bg-glass {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bg-glass:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Typography & Icons */
.text-accent {
    color: var(--accent-color) !important;
    text-shadow: 0 0 20px var(--accent-glow);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Custom Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.5);
    color: white;
}

/* Form Controls */
.form-control, .form-select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-glow);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Blobs for Background */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.blob-1 { top: -10%; left: -10%; width: 600px; height: 600px; background: #4C1D95; }
.blob-2 { bottom: -10%; right: -10%; width: 500px; height: 500px; background: #BE185D; animation-delay: -5s; }

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Navigation Tabs - Mobile Optimized */
.nav-tabs-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 5px; /* Hide scrollbar spacing */
    scrollbar-width: none; /* Firefox */
}
.nav-tabs-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: nowrap; /* Prevent wrapping on mobile */
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    opacity: 0.7;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    opacity: 1;
}

.nav-tabs .nav-link.active {
    color: var(--accent-color) !important;
    background: transparent !important;
    border-bottom: 3px solid var(--accent-color) !important;
    opacity: 1;
}

/* Tables */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,0.02);
}

.table td, .table th {
    border-color: rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    padding: 1rem;
}

/* Badges */
.badge {
    padding: 0.5em 1em;
    border-radius: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.bg-success { background-color: rgba(16, 185, 129, 0.2) !important; color: #34D399 !important; border: 1px solid rgba(16, 185, 129, 0.2); }
.bg-danger { background-color: rgba(239, 68, 68, 0.2) !important; color: #F87171 !important; border: 1px solid rgba(239, 68, 68, 0.2); }
.bg-warning { background-color: rgba(245, 158, 11, 0.2) !important; color: #FBBF24 !important; border: 1px solid rgba(245, 158, 11, 0.2); }
.bg-info { background-color: rgba(59, 130, 246, 0.2) !important; color: #60A5FA !important; border: 1px solid rgba(59, 130, 246, 0.2); }
.bg-secondary { background-color: rgba(148, 163, 184, 0.2) !important; color: #CBD5E1 !important; border: 1px solid rgba(148, 163, 184, 0.2); }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .container { padding-left: 15px; padding-right: 15px; }
    h2 { font-size: 1.75rem; }
    .card.bg-glass { padding: 1.5rem !important; }
    .profile-header-img { width: 100px !important; height: 100px !important; }
    .display-4 { font-size: 2.5rem; }
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(88, 28, 135, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.2) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Cards */
.bg-glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Typography & Icons */
.text-accent {
    color: var(--accent-color) !important;
    text-shadow: 0 0 15px var(--accent-glow);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Custom Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-color), #7c3aed);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    color: white;
}

/* Form Controls */
.form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 0.75rem;
    padding: 10px 15px;
}

.form-control:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Blobs for Background */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 { 
    top: -10%; left: -10%; 
    width: 500px; height: 500px; 
    background: #581c87; 
}
.blob-2 { 
    bottom: -10%; right: -10%; 
    width: 400px; height: 400px; 
    background: #7c3aed; 
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* Navigation Tabs */
.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    font-weight: 500;
    padding: 1rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-tabs .nav-link.active {
    color: var(--accent-color) !important;
    background: linear-gradient(to top, rgba(168, 85, 247, 0.1), transparent) !important;
    border-bottom: 2px solid var(--accent-color) !important;
}

/* Tables */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,0.03);
}

.table td, .table th {
    border-color: rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

/* Badges */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 0.5rem;
    font-weight: 600;
}

.bg-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary) !important;
}
