@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --background-color: #f8f9fa;
    --sidebar-width: 260px;
    --text-color: #2b2d42;
    --sidebar-bg: #fff;
    --sidebar-color: #6c757d;
    --sidebar-active-color: #4361ee;
    --sidebar-active-bg: #eef2ff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background-color: var(--sidebar-bg);
    box-shadow: 0 0 20px rgba(0,0,0,0.03);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 0 1rem 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f1f4;
}

.sidebar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--sidebar-color);
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link i {
    width: 24px;
    margin-right: 10px;
    font-size: 1.1rem;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--sidebar-active-bg);
    color: var(--sidebar-active-color);
}

.logout-btn {
    margin-top: auto;
    background-color: #fee2e2;
    color: #ef4444 !important;
}

.logout-btn:hover {
    background-color: #fecaca;
    color: #dc2626 !important;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    transition: all 0.3s ease;
}

/* Navbar (Mobile) */
.mobile-nav {
    display: none;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Card Improvements */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
    background: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #f1f1f4;
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Login Page Only */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); /* Example gradient */
    background: #eef2ff; /* Cleaner background */
    margin: 0;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    border-radius: 20px;
}

/* Tables */
.table {
    vertical-align: middle;
}
.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #edf2f7;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}
.table td {
    padding: 1rem;
    border-bottom: 1px solid #edf2f7;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    .mobile-nav {
        display: flex;
    }
}