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

:root {
    --sidebar-width: 280px;
    --header-height: 80px;
    --primary-color: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --bg-light: #f9fafb;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --border-color: #f1f5f9;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: #1e293b;
    overflow-x: hidden;
}

/* Glassmorphism login Card */
.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #e0e7ff 0%, #ffffff 50%, #f3f4f6 100%);
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

.sidebar-nav {
    padding: 2rem 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-section-title {
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: #94a3b8;
    font-weight: 700;
    margin-top: 1.5rem;
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    padding: 0.875rem 2rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s;
    gap: 1rem;
    position: relative;
}

.sidebar-menu-item a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.sidebar-menu-item a.active {
    background-color: #eff6ff;
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-menu-item a.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.menu-icon {
    font-size: 1.4rem;
}

/* Header Styling */
.main-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-width));
}

.app-header {
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    position: sticky;
    top: 0;
    z-index: 900;
}

/* Header Right */
.user-dropdown {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.2s;
}

.user-dropdown:hover {
    background-color: #f1f5f9;
}

/* Main Content */
.main-content {
    padding: 3rem;
    flex-grow: 1;
}

/* Premium Card (Universal) */
.card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Utilities */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -var(--sidebar-width);
        height: 100vh;
    }
    .sidebar.active {
        left: 0;
    }
    .main-area {
        width: 100%;
    }
}
