:root {
    --sidebar-width: 280px;
    --topbar-height: 75px;
    --color-primary: #10b981;
    --color-primary-light: rgba(16, 185, 129, 0.12);
    --color-primary-dark: #059669;
    --color-primary-darker: #047857;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;
    --color-purple: #8b5cf6;
    --sidebar-bg: #0a1929;
    --sidebar-header-bg: #050d16;
    --sidebar-text: #94a3b8;
    --sidebar-text-hover: #f1f5f9;
    --sidebar-section-title: #475569;
    --sidebar-active-bg: rgba(16, 185, 129, 0.18);
    --content-bg: #f8fdfb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --note-yellow: #f59e0b;
    --note-pink: #ec4899;
    --note-mint: #10b981;
    --note-blue: #3b82f6;
    --note-bg-yellow: #fffbeb;
    --note-bg-pink: #fef2f2;
    --note-bg-mint: #f0fdf4;
    --note-bg-blue: #eff6ff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 8px 24px rgba(16, 185, 129, 0.15);
    --radius: 12px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--content-bg) 0%, #f0fdf4 50%, #ecfdf5 100%);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
}

body.sidebar-collapsed .sidebar-toggle-btn {
    box-shadow: 6px 0 16px rgba(0, 0, 0, 0.25);
}

body.sidebar-collapsed .content-wrapper {
    margin-left: 0;
}

body.sidebar-collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
}

.content-wrapper {
    margin-left: var(--sidebar-width);
    height: 100vh;
    overflow-y: auto;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 4px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-primary-dark), var(--color-primary-darker));
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }

.w-100 { width: 100%; }

.me-2 { margin-right: 0.5rem; }

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* ── GRADIENT TEXT ── */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── GAP UTILITIES (complement Bootstrap 5) ── */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* ── FLEX UTILITIES ── */
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.ms-auto { margin-left: auto; }
.me-auto { margin-right: auto; }

/* ── SIZING ── */
.min-w-0 { min-width: 0; }

/* ── BORDER RADIUS ── */
.rounded-xl  { border-radius: var(--radius-lg, 16px) !important; }
.rounded-2xl { border-radius: 24px !important; }

/* ── OPACITY ── */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* ── CURSOR ── */
.cursor-pointer { cursor: pointer; }

/* ── TRANSITIONS ── */
.transition-all { transition: all 0.25s ease; }

/* ── OVERFLOW ── */
.overflow-hidden { overflow: hidden; }

/* ── ANIMATE FADE UP (shared with landing page) ── */
.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

