/* css/custom.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --dark-bg: #222e3c;
    --light-bg: #f8f9fc;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* --- Login Page Styles --- */
.login-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, #224abe 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* --- Dashboard Layout Styles --- */
#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: var(--dark-bg);
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
}
#sidebar .sidebar-header {
    padding: 20px;
    background: #1a232f;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}
#sidebar ul.components {
    padding: 20px 0;
}
#sidebar ul li a {
    padding: 15px 20px;
    font-size: 1.1em;
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.2s;
}
#sidebar ul li a:hover, #sidebar ul li.active > a {
    color: #fff;
    background: var(--primary-color);
    border-left: 4px solid #fff;
}
#sidebar ul li a i {
    margin-right: 10px;
}

/* Main Content */
#content {
    width: 100%;
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Top Navbar */
.top-navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 10px 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
        position: fixed;
        z-index: 999;
    }
    #sidebar.active {
        margin-left: 0;
    }
    /* Dim background overlay when sidebar is open on mobile */
    .sidebar-overlay {
        display: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    .sidebar-overlay.active {
        display: block;
    }
}

/* Dashboard Cards */
.stat-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-5px);
}