:root {
    --bg: #f3fafb;
    --bg-alt: #ffffff;
    --primary: #0c7b80;
    --primary-soft: #d6f1f3;
    --accent: #0f555a;
    --text-main: #102a2c;
    --text-soft: #5f7476;
    --border-soft: #c9e1e4;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, .12);
    --sb2-primary: #0c7b80;
    --sb2-primary-dark: #095155;
    --sb2-success: #1cc88a;
    --sb2-info: #36b9cc;
    --sb2-warning: #f6c23e;
    --sb2-danger: #e74a3b;
    --sb2-gray-100: #f8f9fc;
    --sb2-gray-200: #eaecf4;
    --sb2-gray-400: #b7b9cc;
    --sb2-gray-600: #858796;
    --sb2-gray-800: #5a5c69;
}

body {
    min-height: 100vh;
    font-family: "Nunito", sans-serif;
    background: var(--sb2-gray-100);
    color: var(--sb2-gray-800);
}

.page-shell {
    min-height: 100vh;
}

.sb-sidebar {
    width: 14rem;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--sb2-primary) 12%, #224abe 100%);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.2);
}

.sb-sidebar .nav-link,
.sb-sidebar .sidebar-heading,
.sb-sidebar .brand-text {
    color: rgba(255, 255, 255, 0.85);
}

.sb-sidebar .nav-link:hover,
.sb-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-collapse-toggle {
    background: transparent;
    text-align: left;
}

.nav-collapse-toggle::after {
    flex-shrink: 0;
    width: 0.75rem;
    margin-left: 0.75rem;
    content: "";
    border: solid currentColor;
    border-width: 0 0.125rem 0.125rem 0;
    display: inline-block;
    padding: 0.2rem;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.nav-collapse-toggle.collapsed::after {
    transform: rotate(-45deg);
}

.sidebar-submenu .nav-link {
    font-size: 0.95rem;
}

.brand-badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.brand-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    display: block;
}

.content-shell {
    min-width: 0;
}

.topbar {
    height: 4.375rem;
    background: #fff;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.topbar-title {
    color: var(--sb2-gray-800);
    font-weight: 700;
}

.section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sb2-gray-800);
}

.text-sb-muted {
    color: var(--sb2-gray-600);
}

.btn-primary {
    background-color: var(--sb2-primary);
    border-color: var(--sb2-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--sb2-primary-dark);
    border-color: var(--sb2-primary-dark);
}

.card-sb {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.border-left-primary {
    border-left: 0.35rem solid var(--sb2-primary) !important;
}

.border-left-success {
    border-left: 0.35rem solid var(--sb2-success) !important;
}

.border-left-info {
    border-left: 0.35rem solid var(--sb2-info) !important;
}

.border-left-warning {
    border-left: 0.35rem solid var(--sb2-warning) !important;
}

.icon-circle {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(78, 115, 223, 0.12);
    color: var(--sb2-primary);
}

.user-card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.user-card-toggle::after {
    margin-left: 0.5rem;
    color: var(--sb2-gray-600);
}

.user-card-toggle:hover,
.user-card-toggle:focus {
    color: inherit;
}

.user-card-toggle:focus {
    box-shadow: none;
    outline: none;
}

.user-card-menu {
    min-width: 14rem;
    border: 0;
    border-radius: 0.75rem;
}

.user-card-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
}

.auth-screen {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--sb2-primary) 12%, var(--sb2-primary-dark) 100%);
}

.auth-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
}

.auth-hero {
    background: linear-gradient(180deg, var(--sb2-primary) 12%, var(--sb2-primary-dark) 100%);
    color: #fff;
}

.btn-user {
    border-radius: 10rem;
    padding: 0.75rem 1rem;
    font-weight: 700;
}

.alert {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1rem rgba(58, 59, 69, 0.08);
}

@media (max-width: 991.98px) {
    .sb-sidebar {
        width: 100%;
        min-height: auto;
    }

    .page-shell {
        display: block !important;
    }
}
