@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
    --ui-bg: #f1f8f7;
    --ui-bg-soft: #e3f2ef;
    --ui-surface: #ffffff;
    --ui-surface-soft: #f7fbfa;
    --ui-border: #d4e7e3;
    --ui-text: #153638;
    --ui-muted: #57797b;
    --ui-primary: #11766f;
    --ui-primary-2: #0f9a8f;
    --ui-accent: #f3a53d;
    --ui-shadow: 0 18px 40px rgba(20, 82, 95, 0.12);
}

body.app-body {
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ui-text);
    background-color: var(--ui-bg);
    background-image:
        radial-gradient(circle at 14% 0%, rgba(17, 118, 111, 0.13), transparent 36%),
        radial-gradient(circle at 88% 20%, rgba(243, 165, 61, 0.14), transparent 28%),
        linear-gradient(180deg, #f6fbfa 0%, #eef6f4 100%);
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .sidebar-brand-title, .guest-brand {
    font-family: "Fraunces", Georgia, serif;
    letter-spacing: 0.015em;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.app-main {
    min-width: 0;
}

.app-content {
    max-width: 1480px;
    margin-inline: auto;
    animation: pageEnter 320ms ease-out;
}

.topbar-glass {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid rgba(17, 118, 111, 0.16);
    backdrop-filter: blur(9px);
    background: rgba(248, 252, 251, 0.86);
    box-shadow: 0 8px 24px rgba(19, 62, 72, 0.08);
}

.topbar-glass .navbar-brand {
    color: #16434a;
    font-size: 1.02rem;
}

.app-sidebar {
    width: 284px;
    max-width: 100%;
    color: #d9f4f0;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.05), transparent 42%),
        linear-gradient(180deg, #0e4f59 0%, #123c48 48%, #172f3b 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08), 12px 0 34px rgba(7, 22, 34, 0.18);
    overflow: hidden;
}

.app-sidebar .offcanvas-body {
    min-height: 0;
}

.sidebar-nav-scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.3rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(142, 215, 212, 0.55) rgba(255, 255, 255, 0.08);
}

.sidebar-nav-scroll::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(127, 226, 205, 0.72), rgba(130, 209, 255, 0.72));
    border-radius: 999px;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(127, 226, 205, 0.9), rgba(130, 209, 255, 0.9));
}

.sidebar-brand {
    color: #effffc;
    gap: 0.7rem;
}

.sidebar-brand-mark {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.62rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #08373e;
    background: linear-gradient(135deg, #7be8cb, #8cd6ff);
    box-shadow: 0 8px 18px rgba(110, 214, 196, 0.3);
}

.sidebar-brand-title {
    font-size: 0.94rem;
    line-height: 1.15rem;
    letter-spacing: 0.05em;
}

.sidebar-divider {
    border-color: rgba(232, 255, 250, 0.2);
    margin: 0.8rem 0;
}

.app-sidebar .nav-link {
    color: #d2ebe7;
    border-radius: 0.8rem;
    padding: 0.52rem 0.75rem;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 160ms ease;
    border: 1px solid transparent;
}

.app-sidebar .nav-link:hover {
    color: #f4fffd;
    background: rgba(173, 231, 219, 0.11);
    border-color: rgba(173, 231, 219, 0.2);
    transform: translateX(1px);
}

.app-sidebar .nav-link.active {
    color: #093840;
    background: linear-gradient(130deg, #7ae9c9 0%, #80d9ff 100%);
    box-shadow: 0 8px 16px rgba(120, 224, 207, 0.3);
}

.nav-section-label {
    color: #89bac0;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.sidebar-meta {
    color: #91bcc1;
    line-height: 1.45;
}

.sidebar-meta-value {
    color: #f2fffd;
    font-weight: 600;
}

.container-fluid .card {
    border: 1px solid var(--ui-border);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--ui-surface) 0%, var(--ui-surface-soft) 100%);
    box-shadow: var(--ui-shadow);
}

.card .card-header {
    background: rgba(17, 118, 111, 0.04);
    border-bottom-color: var(--ui-border);
}

.btn {
    border-radius: 0.72rem;
    font-weight: 600;
}

.btn-primary {
    border: none;
    color: #f6fffd;
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
    box-shadow: 0 10px 22px rgba(16, 123, 114, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #f6fffd;
    background: linear-gradient(135deg, #0f6d68, #10857f);
    transform: translateY(-1px);
}

.btn-soft {
    color: #194d52;
    border: 1px solid #c4ddd9;
    background: rgba(255, 255, 255, 0.84);
}

.btn-soft:hover,
.btn-soft:focus {
    color: #133f43;
    background: #ffffff;
    border-color: #9dc7c1;
}

.btn-outline-primary {
    color: #106d68;
    border-color: #8ac6be;
}

.btn-outline-primary:hover {
    background: #0f7c74;
    border-color: #0f7c74;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 0.72rem;
    border-color: #c4ddd9;
    background-color: #fcfefd;
}

.form-control:focus,
.form-select:focus {
    border-color: #7db7b0;
    box-shadow: 0 0 0 0.2rem rgba(17, 118, 111, 0.15);
}

.table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
    padding: 0.72rem 0.8rem;
    border-bottom-color: #d6e7e4;
}

.table thead th {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: #557f7d;
    font-weight: 700;
    border-bottom-width: 1px;
}

.table-responsive {
    border-radius: 0.9rem;
}

.alert {
    border: none;
    border-radius: 0.84rem;
    box-shadow: 0 10px 20px rgba(15, 66, 74, 0.09);
}

.badge {
    border-radius: 0.58rem;
}

.dropdown-menu {
    border-radius: 0.9rem;
    border: 1px solid var(--ui-border);
    box-shadow: 0 16px 30px rgba(13, 46, 56, 0.16);
}

.guest-body .card {
    border: 1px solid var(--ui-border);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(14, 61, 69, 0.13);
}

.guest-brand {
    color: #175359;
}

.guest-brand:hover {
    color: #0f6d68;
}

.list-group-item {
    border-color: #d5e7e4;
}

@media (max-width: 991.98px) {
    .app-shell {
        display: block;
    }

    .app-sidebar {
        width: min(88vw, 320px);
        min-height: 100dvh;
        height: 100dvh;
    }

    .app-content {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .topbar-glass .navbar-brand {
        font-size: 0.94rem;
    }
}

@media (min-width: 992px) {
    .app-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

@media (max-width: 575.98px) {
    .app-content {
        padding-left: 0.12rem;
        padding-right: 0.12rem;
    }

    .card,
    .table-responsive,
    .alert {
        border-radius: 0.72rem;
    }

    .btn,
    .form-control,
    .form-select {
        font-size: 0.93rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-content {
        animation: none;
    }

    .btn-primary,
    .app-sidebar .nav-link {
        transition: none;
        transform: none;
    }
}

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