:root {
    --brand-surface: #f4f1ea;
    --brand-panel: rgba(255, 255, 255, 0.78);
    --brand-ink: #132733;
    --brand-muted: #5f707b;
    --brand-line: #d8ddd8;
    --brand-accent: #1f7a72;
    --brand-accent-2: #d59b4d;
    --brand-sidebar: #14242f;
}

body {
    font-family: "IBM Plex Sans", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(213, 155, 77, 0.15), transparent 36%),
        radial-gradient(circle at top right, rgba(31, 122, 114, 0.16), transparent 30%),
        linear-gradient(180deg, #f8f6f1 0%, #eef2ef 100%);
    color: var(--brand-ink);
    margin: 0;
}

h1, h2, h3, h4, .brand-text, .page-title, .auth-title {
    font-family: "Manrope", sans-serif;
}

.theme-stay360 {
    --brand-accent: #2f6fed;
    --brand-accent-2: #15aabf;
    --brand-sidebar: #13203f;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.5rem 1.25rem 1.25rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo-mark,
.user-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-2));
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
}

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

.sidebar-shell {
    width: 18rem;
    background: linear-gradient(180deg, rgba(20, 36, 47, 0.98), rgba(14, 24, 31, 0.98));
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.2s ease;
}

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

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(19, 39, 51, 0.06);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-title {
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
}

.sidebar-section-label {
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 1.25rem 1.25rem 0.55rem;
    font-weight: 700;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0 0.75rem 1.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-link small {
    margin-left: auto;
    opacity: 0.65;
}

.sidebar-link.active,
.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}

.sidebar-link.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.sidebar-toggle {
    color: var(--brand-ink);
    font-size: 1.2rem;
}

.app-content {
    background: transparent;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-accent);
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0;
}

.hero-panel {
    padding: 2rem;
    border-radius: 1.4rem;
    background:
        linear-gradient(135deg, rgba(19, 39, 51, 0.95), rgba(31, 122, 114, 0.9)),
        var(--brand-sidebar);
    color: #fff;
    box-shadow: 0 18px 38px rgba(19, 39, 51, 0.18);
}

.theme-stay360 .hero-panel {
    background: linear-gradient(135deg, rgba(19, 32, 63, 0.96), rgba(47, 111, 237, 0.9));
}

.hero-panel h1 {
    font-size: 2rem;
    margin-bottom: 0.65rem;
}

.metric-card {
    background: var(--brand-panel);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 1.2rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 16px 32px rgba(15, 27, 34, 0.06);
}

.metric-card span {
    display: block;
    color: var(--brand-muted);
    margin-bottom: 0.5rem;
}

.metric-card strong {
    display: block;
    font-size: 1.65rem;
    line-height: 1.2;
}

.announcement-item + .announcement-item {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--brand-line);
}

.announcement-item h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.card {
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
}

.btn-gradient {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-2));
    box-shadow: 0 12px 24px rgba(31, 122, 114, 0.22);
}

.btn-gradient:hover {
    color: #fff;
    filter: brightness(1.05);
}

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

.guest-grid {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

.guest-hero {
    display: flex;
    align-items: center;
    padding: 4rem 6vw;
    background:
        radial-gradient(circle at top left, rgba(213, 155, 77, 0.26), transparent 35%),
        linear-gradient(135deg, rgba(19, 39, 51, 0.96), rgba(31, 122, 114, 0.92));
    color: #fff;
}

.theme-stay360 .guest-hero {
    background:
        radial-gradient(circle at top left, rgba(21, 170, 191, 0.25), transparent 35%),
        linear-gradient(135deg, rgba(19, 32, 63, 0.98), rgba(47, 111, 237, 0.88));
}

.guest-copy {
    max-width: 36rem;
}

.guest-copy h1 {
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.guest-copy p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
}

.hero-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-metric {
    min-width: 10rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.hero-metric strong,
.hero-metric span {
    display: block;
}

.guest-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: min(32rem, 100%);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.88);
}

.auth-hint {
    padding: 1rem;
    border-radius: 0.9rem;
    background: rgba(19, 39, 51, 0.05);
    font-size: 0.93rem;
    color: var(--brand-muted);
}

.dataTables_wrapper .row:first-child {
    margin-bottom: 1rem;
}

.table thead th {
    border-top: 0;
    color: var(--brand-muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 991.98px) {
    .sidebar-shell {
        position: fixed;
        left: 0;
        z-index: 40;
        transform: translateX(-100%);
        box-shadow: 0 18px 32px rgba(18, 29, 39, 0.24);
    }

    body.sidebar-open .sidebar-shell {
        transform: translateX(0);
    }

    body.sidebar-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(8, 15, 20, 0.38);
        z-index: 30;
    }

    .guest-grid {
        grid-template-columns: 1fr;
    }

    .guest-hero {
        padding: 3rem 1.5rem 2rem;
    }

    .guest-panel {
        padding: 1.5rem;
    }
}
