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

:root {
    --primary: #10b981;
    --primary-deep: #059669;
    --primary-soft: #d1fae5;
    --accent: #0f172a;
    --bg-body: #f5f7fb;
    --bg-surface: rgba(255, 255, 255, 0.92);
    --bg-surface-strong: #ffffff;
    --bg-sidebar: linear-gradient(180deg, #08131f 0%, #0b0f1a 100%);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.14);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

[data-bs-theme="dark"],
.dark-mode {
    --bg-body: #070b12;
    --bg-surface: rgba(17, 24, 39, 0.92);
    --bg-surface-strong: #111827;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.45);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.10), transparent 35%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 30%),
        linear-gradient(180deg, var(--bg-body) 0%, var(--bg-body) 100%);
}

* {
    box-sizing: border-box;
}

img,
svg {
    max-width: 100%;
}

::selection {
    background: var(--primary-soft);
    color: #064e3b;
}

.glass,
.surface,
.admin-card,
.card,
.modal-content,
.dropdown-menu,
.offcanvas {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.card,
.modal-content,
.dropdown-menu,
.offcanvas {
    border-radius: var(--radius-xl);
}

.card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-2px);
}

.btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.78rem 1.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    border: none;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.24);
}

.btn-primary:hover,
.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 16px 28px rgba(16, 185, 129, 0.3);
}

.btn-outline-success {
    color: var(--primary);
    border-color: var(--primary-soft);
}

.btn-outline-success:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.navbar {
    backdrop-filter: blur(14px);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.navbar .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--primary);
}

#sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
    border-radius: var(--radius-md);
    margin-bottom: 0.35rem;
    transition: all 0.2s ease;
}

#sidebar .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

#sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(4px);
}

#sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.22);
}

.form-control,
.form-select {
    background-color: var(--bg-surface-strong);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: 14px;
    min-height: 3.2rem;
    padding: 0.78rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.dropdown-item {
    border-radius: 10px;
}

.dropdown-item:hover {
    background-color: rgba(16, 185, 129, 0.08);
}

.text-gradient {
    color: var(--primary);
}

.hover-grow {
    transition: transform 0.25s ease;
}

.hover-grow:hover {
    transform: scale(1.03);
}

.hover-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.tracking-wider {
    letter-spacing: 0.08em;
}

.page-shell {
    padding: 2rem 0;
}

.page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: clamp(1.8rem, 2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--text-muted);
    margin-bottom: 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-card {
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.empty-state {
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.55);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.10), transparent 30%),
        linear-gradient(180deg, #f5f7fb 0%, #eef3f9 100%);
}

.auth-sidebar {
    position: relative;
    width: 45%;
    padding: 5rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(180deg, #064e3b 0%, #0b0f1a 100%);
}

.auth-sidebar-pattern {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.10));
    opacity: 0.75;
}

.auth-content {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem;
    background: var(--bg-surface-strong);
}

.hero-section {
    padding: 7rem 0;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.feature-card {
    height: 100%;
    padding: 2rem;
    border-radius: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.pricing-card {
    height: 100%;
    border-radius: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.final-cta,
.cta-box {
    border-radius: 32px;
}

.footer-dark .nav-link:hover,
.hover-white:hover {
    color: #fff !important;
}

@media (max-width: 992px) {
    .auth-sidebar {
        display: none;
    }

    .auth-content {
        width: 100%;
        padding: 2rem;
    }

    .page-header {
        flex-direction: column;
        align-items: start;
    }

    .hero-section {
        padding: 5.5rem 0;
    }
}
