/* Professional Premium SaaS Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors - Premium Dark Palette */
    --primary-bg: #F8F9FC;
    --card-bg: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;

    /* Modern Accent Colors */
    --accent-color: #0F172A;
    /* Slate 900 */
    --accent-hover: #1E293B;
    /* Slate 800 */
    --accent-light: #F1F5F9;
    /* Slate 100 */

    /* Sidebar Specific */
    --sidebar-bg: #0F172A;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: #3B82F6;
    /* Vibrant Blue for active state pop */
    --sidebar-text: #94A3B8;
    --sidebar-text-active: #FFFFFF;

    --border-color: #E2E8F0;

    /* Status Colors */
    --status-success: #10B981;
    --status-warning: #F59E0B;
    --status-danger: #EF4444;

    /* Spacing & Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Shadows - Soft & Modern */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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 {
    background-color: var(--primary-bg);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.015em;
}

/* Sidebar Redesign */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem 1.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.sidebar-brand i {
    color: var(--sidebar-active);
}

.sidebar-nav {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Section Labels */
.nav-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: #64748B;
    font-weight: 600;
    padding: 1rem 0.75rem 0.5rem;
}

/* Nav Items */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem !important;
    /* Increased padding */
    color: var(--sidebar-text) !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 1rem;
    /* Increased from 0.925rem */
    border-left: none;
    /* Removed border structure for cleaner look */
}

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

.nav-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    /* Subtle gradient */
    color: #FFFFFF !important;
    font-weight: 600;
    box-shadow: inset 3px 0 0 0 #3B82F6;
    /* Inset border instead of layout border */
}

.nav-link i {
    width: 20px;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-link:hover i,
.nav-link.active i {
    opacity: 1;
    color: var(--sidebar-active);
}

/* User Profile - Bottom Card */
.sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Main Content Area */
.main-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    background-color: var(--primary-bg);
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Utilities */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.rounded-3 {
    border-radius: var(--radius-lg) !important;
}

/* Custom Badge Pill */
.badge {
    padding: 0.4em 0.8em;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}