:root {
    --primary-color: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --bg-light: #f3f4f6;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius-lg: 1rem;
    --border-radius-md: 0.75rem;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px;
    /* Space for bottom nav on mobile */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease-in-out;
    background: #fff;
    margin-bottom: 1rem;
}

.card:active {
    transform: scale(0.98);
}

.btn {
    border-radius: var(--border-radius-md);
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
}

.badge-count {
    font-size: 0.75rem;
    padding: 0.25em 0.6em;
    border-radius: 9999px;
}

/* Utilities */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

/* Desktop overrides */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
        padding-left: 250px;
        /* Sidebar space */
    }

    .bottom-nav {
        display: none !important;
    }

    /* Sidebar Styles */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 250px;
        background-color: #fff;
        border-right: 1px solid #e5e7eb;
        z-index: 1020;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
    }

    .sidebar .brand {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 2rem;
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .sidebar .nav-link {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        color: var(--text-muted);
        text-decoration: none;
        border-radius: var(--border-radius-md);
        margin-bottom: 0.5rem;
        font-weight: 500;
        transition: all 0.2s;
    }

    .sidebar .nav-link:hover,
    .sidebar .nav-link.active {
        background-color: #eef2ff;
        /* Light primary */
        color: var(--primary-color);
    }

    .sidebar .nav-link i {
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }
}

/* Hide sidebar on mobile */
@media (max-width: 767.98px) {
    .sidebar {
        display: none;
    }
}