:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --success: #10b981;
    --error: #ef4444;
    --white: #ffffff;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --border-color: rgba(0, 0, 0, 0.12);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    background-image: radial-gradient(at 0% 0%, hsla(253,16%,7%,0.03) 0, transparent 50%), 
                      radial-gradient(at 50% 0%, hsla(225,39%,30%,0.03) 0, transparent 50%), 
                      radial-gradient(at 100% 0%, hsla(339,49%,30%,0.03) 0, transparent 50%);
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Auth Layout */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    background: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}


.form-control:focus {
    border-color: var(--primary-light);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Toast/Alert */
.alert {
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

.alert-error {
    background: #fee2e2;
    color: var(--error);
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

/* Main Wrapper Layout */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: auto; /* Changed from 100vh to fit SPA area */
    transition: margin-left 0.3s ease;
}

.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid rgba(0,0,0,0.05);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 40px;
    padding: 0 12px;
}

.brand svg {
    width: 32px;
    height: 32px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.nav-link.active {
    background: #EEF2FF;
    color: var(--primary);
}

.nav-link svg {
    width: 22px;
    height: 22px;
    stroke: none;
    fill: currentColor;
}

.logout-container {
    margin-top: auto;
}

.logout-btn {
    color: var(--error) !important;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.05) !important;
}

/* Page Components */
.main-content {
    padding: 32px 40px; /* Reduced from 5% to standard padding */
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    margin-bottom: 40px;
}

.welcome-text h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

