:root {
    --brand-900: #0f172a;
    --brand-700: #1d3557;
    --brand-500: #457b9d;
    --accent: #f4a261;
    --surface: #f8fafc;
    --ink: #132238;
    --line: rgba(19, 34, 56, 0.1);
}

body {
    background:
        radial-gradient(circle at top left, rgba(244, 162, 97, 0.18), transparent 35%),
        linear-gradient(135deg, #eff6ff 0%, #f8fafc 40%, #fef3c7 100%);
    color: var(--ink);
    font-family: "Segoe UI", sans-serif;
    line-height: 1.5;
    margin: 0;
}

a {
    color: inherit;
}

.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

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

.container-fluid {
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row > [class^="col-"],
.row > [class*=" col-"] {
    box-sizing: border-box;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    width: 100%;
}

.col-12 {
    width: 100%;
}

.d-flex {
    display: flex;
}

.nav {
    display: flex;
    flex-direction: column;
}

.nav-link {
    display: block;
    text-decoration: none;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-end,
.text-end {
    justify-content: flex-end;
    text-align: right;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3,
.g-3 {
    gap: 1rem;
}

.g-4 {
    gap: 1.5rem;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.small {
    font-size: 0.875rem;
}

.text-center {
    text-align: center;
}

.text-decoration-none {
    text-decoration: none;
}

.text-uppercase {
    text-transform: uppercase;
}

.fw-semibold {
    font-weight: 600;
}

.text-muted {
    color: #64748b !important;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.px-0 {
    padding-left: 0;
    padding-right: 0;
}

.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.border-0 {
    border: 0;
}

.border {
    border: 1px solid var(--line);
}

.border-bottom {
    border-bottom: 1px solid var(--line);
}

.rounded {
    border-radius: 0.75rem;
}

.shadow-sm {
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);
}

.card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
}

.card-body {
    padding: 1.5rem;
}

.btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 0.35rem;
    justify-content: center;
    line-height: 1.2;
    padding: 0.8rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-sm {
    border-radius: 0.75rem;
    font-size: 0.875rem;
    padding: 0.55rem 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #17365a, #396b88);
    color: #fff;
}

.btn-success {
    background: #047857;
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    border-color: rgba(69, 123, 157, 0.35);
    color: var(--brand-700);
}

.btn-outline-secondary {
    background: transparent;
    border-color: rgba(100, 116, 139, 0.35);
    color: #475569;
}

.btn-outline-danger {
    background: transparent;
    border-color: rgba(185, 28, 28, 0.28);
    color: #b91c1c;
}

.btn-outline-success {
    background: transparent;
    border-color: rgba(4, 120, 87, 0.28);
    color: #047857;
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.85rem;
    color: var(--ink);
    display: block;
    line-height: 1.5;
    padding: 0.8rem 0.95rem;
    width: 100%;
}

.form-check {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
}

.form-label {
    color: #334155;
    display: block;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.form-text {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.35rem;
}

.alert {
    border-radius: 0.9rem;
    border: 1px solid transparent;
    padding: 0.95rem 1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.2);
    color: #047857;
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.22);
    color: #b45309;
}

.alert-error,
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table {
    border-collapse: collapse;
    width: 100%;
}

.table th,
.table td {
    text-align: left;
}

.table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.45);
}

.align-middle td,
.align-middle th {
    vertical-align: middle;
}

.list-group {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-group-item {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    padding: 1rem 1.1rem;
}

.list-group-flush .list-group-item + .list-group-item {
    border-top: 0;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.page-link {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.8rem;
    color: var(--brand-700);
    display: inline-flex;
    padding: 0.65rem 0.9rem;
    text-decoration: none;
}

.page-item.disabled .page-link {
    color: #64748b;
    cursor: default;
    opacity: 0.8;
}

.sidebar {
    background: linear-gradient(180deg, var(--brand-900), var(--brand-700));
    color: #fff;
    display: flex;
    flex-direction: column;
    flex: 0 0 340px;
    position: sticky;
    top: 0;
    min-height: 100vh;
    width: 340px;
}

.sidebar .nav-link,
.sidebar .brand {
    color: rgba(255, 255, 255, 0.88);
}

.sidebar .text-muted {
    color: rgba(226, 232, 240, 0.65) !important;
}

.sidebar-kicker {
    color: rgba(226, 232, 240, 0.45);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sidebar .nav-link {
    border-radius: 1rem;
    font-weight: 600;
    padding: 0.8rem 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

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

.sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.22), rgba(69, 123, 157, 0.28));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: #fff;
}

.brand {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    max-width: 7rem;
    line-height: 1.15;
}

.metric-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);
}

.metric-card span {
    color: #64748b;
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    font-size: 1.9rem;
}

.metric-card-accent {
    background: linear-gradient(135deg, var(--brand-700), var(--accent));
    color: #fff;
}

.metric-card-accent span {
    color: rgba(255, 255, 255, 0.75);
}

.report-chip,
.shop-chip {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1rem;
}

.content-shell {
    margin: 0 auto;
    max-width: 1440px;
}

.page-header {
    animation: rise-in 0.4s ease-out;
}

.page-header .eyebrow {
    color: #64748b;
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.page-header h1 {
    font-size: clamp(2rem, 3vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.section-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1.4rem;
    box-shadow: 0 1.2rem 3rem rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.filter-toolbar {
    align-items: end;
}

.filter-label {
    color: #475569;
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table-shell .table {
    margin-bottom: 0;
}

.table-shell thead th {
    background: rgba(255, 255, 255, 0.68);
    border-bottom-color: var(--line);
    color: #0f172a;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    padding: 1.1rem 1rem;
    text-transform: uppercase;
}

.table-shell tbody td {
    border-bottom-color: var(--line);
    padding: 1.15rem 1rem;
    vertical-align: middle;
}

.table-shell tbody tr:last-child td {
    border-bottom: 0;
}

.entity-name {
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 700;
}

.entity-meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.status-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
}

.status-pill.active {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.status-pill.inactive {
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
}

.action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.sidebar-user {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user-name {
    color: #fff;
    font-weight: 700;
}

.login-card {
    max-width: 480px;
    margin: 10vh auto;
}

.booking-shell {
    display: flex;
    justify-content: center;
    width: 100%;
}

.booking-card {
    max-width: 720px;
    margin: 4rem auto;
    width: 100%;
}

.status-pill.requested {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.status-pill.confirmed {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.status-pill.completed {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.status-pill.cancelled,
.status-pill.no_show {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        flex-basis: auto;
        min-height: auto;
        position: static;
        width: 100%;
    }

    .brand {
        font-size: 1.9rem;
        max-width: none;
    }
}

@media (min-width: 576px) {
    .col-sm-6 {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .col-md-1 {
        width: 8.333333%;
    }

    .col-md-2 {
        width: 16.666667%;
    }

    .col-md-3 {
        width: 25%;
    }

    .col-md-4 {
        width: 33.333333%;
    }

    .col-md-6 {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-2 {
        width: 16.666667%;
    }

    .col-lg-3 {
        width: 25%;
    }

    .col-lg-5 {
        width: 41.666667%;
    }

    .col-lg-6 {
        width: 50%;
    }

    .px-lg-5 {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .py-lg-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .p-lg-4 {
        padding: 1.5rem;
    }

    .p-lg-5 {
        padding: 3rem;
    }
}

@media (min-width: 1200px) {
    .col-xl-3 {
        width: 25%;
    }
}

@media (max-width: 767.98px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .table-shell thead th,
    .table-shell tbody td {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .action-stack {
        justify-content: flex-start;
    }
}
