@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0A285E;
    --secondary: #7049AC;
    --accent: #39DC70;
    --dark: #051430;
    --light: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    margin: 0;
    overflow-x: hidden;
    font-size: 15px; /* Reduced from 16px */
    line-height: 1.5;
}

@media (max-width: 768px) {
    body { font-size: 13px; }
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    .display-1 { font-size: 2.5rem !important; }
}

h1, .display-1, .display-2 { font-weight: 800; letter-spacing: -0.01em; font-size: 2.1rem; }
h2, .display-3, .display-4 { font-weight: 700; letter-spacing: -0.01em; font-size: 1.6rem; }
h3, .display-5 { font-weight: 700; font-size: 1.35rem; }
h4, .display-6 { font-weight: 700; font-size: 1.15rem; }
h5 { font-weight: 700; font-size: 1rem; }
h6 { font-weight: 700; font-size: 0.85rem; }

.display-1 { font-size: 2.1rem !important; }
.display-2 { font-size: 1.9rem !important; }
.display-3 { font-size: 1.7rem !important; }
.display-4 { font-size: 1.5rem !important; }

.lead {
    font-size: 1.05rem;
    font-weight: 400;
}

.small, small {
    font-size: 0.8rem;
}

/* Gradients */

.bg-gradient-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-shadow-sm {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.text-shadow-md {
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

h1, h2, h3, .fw-800 {
    font-weight: 800 !important;
}

.opacity-75 { opacity: 0.85 !important; } /* Bring up opacity for visibility */
.opacity-50 { opacity: 0.65 !important; }
/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* Sidebar Premium */
.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--dark);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 30px 20px;
    color: var(--white);
    transition: var(--transition);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.sidebar-logo i {
    font-size: 24px;
    color: var(--accent);
}

.sidebar-logo span {
    font-size: 20px; /* Reduced from 22px */
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    color: var(--gray-400);
    text-decoration: none;
    padding: 12px 16px; /* Reduced from 14x18 */
    border-radius: 12px;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-link i {
    font-size: 18px;
    width: 25px;
    margin-right: 12px;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
}

.sidebar-link.active {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(57, 220, 112, 0.3);
}

.sidebar-link.active i {
    color: var(--dark);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
}

/* Top Navbar */
.top-navbar {
    margin-left: 280px;
    padding: 20px 40px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
}

/* Cards Premium */
.card {
    border: none;
    border-radius: 12px; /* Reduced from 16px */
    background: var(--white);
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    padding: 10px 20px; /* Reduced from 12x24 */
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
    border: none;
}

.btn-accent:hover {
    background: #2cb85d;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(57, 220, 112, 0.4);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
}

/* Stats Widgets */
.stat-widget {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 48px; /* Reduced from 56px */
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px; /* Reduced from 22px */
}

/* Mobile Bottom Nav Premium */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    border-radius: 0;
    padding: 10px 0;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
    z-index: 2000;
}

.mobile-bottom-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-bottom-nav a {
    color: var(--gray-400);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
}

.mobile-bottom-nav a.active-nav {
    color: var(--accent);
    background: rgba(255,255,255,0.05);
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table tr {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
}

.table td, .table th {
    padding: 16px;
    border: none !important;
}

.table tr td:first-child { border-radius: 12px 0 0 12px; }
.table tr td:last-child { border-radius: 0 12px 12px 0; }

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .sidebar { left: -280px; }
    .sidebar.show-sidebar { left: 0; }
    .top-navbar { margin-left: 0; padding: 12px 16px; position: relative; }
    .main-content { margin-left: 0; padding: 16px; padding-bottom: 100px; }
    .mobile-bottom-nav { display: block; }
    
    /* Mobile Data Card view */
    .mobile-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        border: 1px solid rgba(0,0,0,0.05);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        backdrop-filter: blur(2px);
    }
    .sidebar-overlay.show { display: block; }
}

.mobile-public-menu {
    position: fixed;
    top: -110%;
    left: 0;
    width: 100%;
    visibility: hidden;
    z-index: 1100;
    transition: var(--transition);
}

.mobile-public-menu.show {
    top: 0;
    visibility: visible;
}




/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Navbar Solid Utility */
.navbar-solid {
    background: var(--dark) !important;
    position: relative !important;
}
