:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #1abc9c;
    --background-color: #f4f7f6;
    --text-color: #334155;
    --sidebar-width: 260px;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
}

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;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.05);
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    margin: 4px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    color: white;
    background-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.sidebar-brand {
    padding: 25px 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

/* Main Content */
.main-wrapper {
    margin-left: var(--sidebar-width);
    padding: 30px;
    transition: all 0.3s ease;
    min-height: 100vh;
}

/* Glassmorphism Cards */
.card-custom {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header-custom {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 25px;
    font-weight: 600;
    color: var(--primary-color);
}

.card-body-custom {
    padding: 25px;
}

/* Dashboard Stats Cards */
.stat-card {
    border-radius: 16px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.stat-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .icon-bg {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 8rem;
    opacity: 0.15;
    transform: rotate(-15deg);
}

.bg-gradient-primary { background: linear-gradient(135deg, #2980b9, #2c3e50); }
.bg-gradient-success { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.bg-gradient-warning { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.bg-gradient-info { background: linear-gradient(135deg, #3498db, #2980b9); }

/* Login Page Only */
.login-body {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.login-input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s;
}

.login-input:focus {
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    border-color: #3498db;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0;
    }
}
