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

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #10B981;
    --dark: #1E293B;
    --light: #F8FAFC;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0e7ff 100%);
    color: var(--dark);
    min-height: 100vh;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

/* Inputs & Buttons */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #CBD5E1;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    border-color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Sidebar for Dashboard */
.sidebar {
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    padding-top: 2rem;
    position: fixed;
    width: 250px;
    z-index: 1000;
}

.sidebar .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    margin: 0.25rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: var(--primary);
    color: white;
    transform: translateX(5px);
}

.main-content {
    margin-left: 250px;
    padding: 2rem;
    transition: all 0.3s ease;
}

/* Responsive Sidebar */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.mobile-active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 5rem; /* Space for top-nav */
    }
    .top-nav {
        display: flex !important;
    }
}

.top-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1050;
    align-items: center;
    padding: 0 1rem;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.top-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav-brand img {
    height: 35px;
}

.top-nav-brand h5 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.sidebar-toggle {
    background: transparent;
    color: var(--dark);
    border: none;
    border-radius: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-toggle:active {
    transform: scale(0.9);
}

/* Dynamic Cards */
.stat-card {
    transition: all 0.3s ease;
    cursor: pointer;
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
