:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-soft: #ccfbf1;
    --secondary: #f59e0b;
    --danger: #ef4444;
    --success: #22c55e;
    --info: #0ea5e9;
    --dark: #0f172a;
    --muted: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --sidebar-width: 280px;
    --sidebar-collapsed: 86px;
    --radius: 16px;
    --shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f7fb;
    color: var(--dark);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

a {
    text-decoration: none;
}

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

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f766e, #0f172a);
    color: #fff;
    position: fixed;
    inset: 0 auto 0 0;
    transition: .25s ease;
    z-index: 1000;
    box-shadow: 10px 0 35px rgba(15, 23, 42, .12);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.brand {
    height: 78px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    font-size: 22px;
}

.brand-text strong {
    display: block;
    font-size: 18px;
    line-height: 1;
}

.brand-text span {
    font-size: 12px;
    opacity: .8;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-section-title {
    display: none;
}

.sidebar-nav {
    padding: 18px 14px;
    height: calc(100vh - 78px);
    overflow-y: auto;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .55;
    margin: 16px 12px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    color: rgba(255,255,255,.84);
    margin-bottom: 6px;
    transition: .2s ease;
    cursor: pointer;
}

.nav-item i {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255,255,255,.14);
    color: #fff;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0;
}

/* MAIN */
.main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: .25s ease;
}

.main.expanded {
    margin-left: var(--sidebar-collapsed);
    width: calc(100% - var(--sidebar-collapsed));
}

/* TOPBAR */
.topbar {
    height: 78px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.btn-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #ecfeff;
    color: var(--primary-dark);
    font-size: 20px;
}

.page-title h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 800;
}

.page-title p {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
    width: 310px;
}

.search-box i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-box input {
    border: 1px solid var(--border);
    border-radius: 14px;
    height: 44px;
    padding-left: 42px;
    background: #fff;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 999px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
}

/* CONTENT */
.content {
    padding: 28px;
}

.hero-panel {
    border-radius: 24px;
    padding: 30px;
    color: #fff;
    background:
            radial-gradient(circle at top right, rgba(245,158,11,.45), transparent 35%),
            linear-gradient(135deg, #0f766e, #0f172a);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
    overflow: hidden;
    position: relative;
}

.hero-panel h2 {
    font-size: 30px;
    font-weight: 850;
    margin: 0 0 10px;
}

.hero-panel p {
    max-width: 720px;
    opacity: .88;
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

/* CARDS */
.metric-card,
.module-card,
.panel-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 35px rgba(15, 23, 42, .05);
}

.metric-card {
    padding: 22px;
    height: 100%;
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 23px;
    margin-bottom: 14px;
}

.metric-card h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 850;
}

.metric-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.icon-primary { background: #ccfbf1; color: #0f766e; }
.icon-warning { background: #fef3c7; color: #b45309; }
.icon-info { background: #dbeafe; color: #2563eb; }
.icon-success { background: #dcfce7; color: #15803d; }
.icon-danger { background: #fee2e2; color: #b91c1c; }

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 30px 0 16px;
}

.section-header h2 {
    font-size: 22px;
    margin: 0;
    font-weight: 850;
}

.section-header p {
    margin: 4px 0 0;
    color: var(--muted);
}

.module-card {
    padding: 22px;
    height: 100%;
    transition: .2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.module-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    background: var(--primary-soft);
    border-radius: 50%;
    right: -40px;
    bottom: -45px;
    opacity: .65;
}

.module-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.module-card h4 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.module-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    position: relative;
    z-index: 1;
}

.module-actions {
    margin-top: 18px;
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.badge-soft {
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
}

.badge-live {
    background: #dcfce7;
    color: #15803d;
}

.badge-dev {
    background: #fef3c7;
    color: #b45309;
}

.badge-soon {
    background: #e0f2fe;
    color: #0369a1;
}

/* TABLE */
.panel-card {
    padding: 22px;
}

.table {
    vertical-align: middle;
}

.table thead th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--border);
}

.table td {
    font-size: 14px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.status.confirmed {
    background: #dcfce7;
    color: #166534;
}

.status.pending {
    background: #fef3c7;
    color: #92400e;
}

.status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status.checkin {
    background: #dbeafe;
    color: #1d4ed8;
}

/* BUTTONS */
.btn {
    border-radius: 12px;
    font-weight: 700;
}

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

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

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

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

.btn-light-soft {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
}

.btn-light-soft:hover {
    background: rgba(255,255,255,.28);
    color: #fff;
}

/* FORMS / MODALS */
.modal-content {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15,23,42,.22);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 22px 24px;
}

.modal-title {
    font-weight: 850;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 18px 24px;
}

.form-label {
    font-weight: 700;
    font-size: 13px;
    color: #334155;
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: var(--border);
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(15,118,110,.12);
}

.form-help {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

/* STEPS */
.stepper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.step-item {
    flex: 1;
    min-width: 150px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: grid;
    place-items: center;
    font-weight: 850;
    margin-bottom: 8px;
}

.step-item strong {
    display: block;
    font-size: 14px;
}

.step-item span {
    color: var(--muted);
    font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .main,
    .main.expanded {
        margin-left: 0;
        width: 100%;
    }

    .search-box {
        display: none;
    }

    .topbar {
        padding: 0 16px;
    }

    .content {
        padding: 18px;
    }

    .hero-panel {
        padding: 24px;
    }

    .hero-panel h2 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .page-title p {
        display: none;
    }

    .user-chip span {
        display: none;
    }

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

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

    .hero-actions .btn {
        width: 100%;
    }
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}