:root {
    --primary: #6366f1;
    /* Indigo */
    --primary-dark: #4f46e5;
    --accent: #ec4899;
    /* Pink */
    --dark: #0f172a;
    --light: #f8fafc;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--light);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Utilities */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-primary-subtle {
    background-color: rgba(99, 102, 241, 0.1) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-accent-subtle {
    background-color: rgba(236, 72, 153, 0.1) !important;
}

.bg-gradient-hero {
    background: radial-gradient(circle at top right, #e0e7ff 0%, #fff 40%, #fff 100%);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

/* Cards & Components */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    position: absolute;
    top: -1rem;
    left: 0;
    z-index: 0;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Admin/Dashboard Sidebar (if applicable) */
.sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-content {
    margin-left: 250px;
    padding: 2rem;
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/* Sidebar Specifics (Ported from user_sidebar.php) */
:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1e1b4b;
    /* Dark Indigo */
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: rgba(255, 255, 255, 0.15);
    --sidebar-primary: #7c3aed;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--sidebar-bg);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* User Avatar */
.sidebar .user-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sidebar-primary), #4c1d95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

/* Navigation Links */
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: var(--sidebar-hover);
    padding-left: 1.75rem;
    /* Slide effect */
}

.sidebar .nav-link.active {
    color: #fff;
    background: var(--sidebar-active);
    border-left-color: var(--sidebar-primary);
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    display: inline-block;
    font-size: 1.1rem;
    opacity: 0.9;
    transition: transform 0.2s;
}

.sidebar .nav-link:hover i {
    transform: scale(1.1);
}

/* Section Headers */
.small-label {
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Soft Buttons */
.btn-soft-light {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-soft-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Logout Button Special */
.sidebar .nav-link.text-danger:hover {
    background: #fecaca;
    color: #991b1b !important;
}

/* Scrollbar Styling */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Topbar (Admin/User Dashboard) */
.topbar {
    background: var(--primary);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-radius: 0;
}

.topbar h1,
.topbar h2 {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
}

.topbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.topbar .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.9);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Main Content Adjustment */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Mobile Responsive */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1030;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar.show~.sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}