html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

:root {
    --lb-primary: #0f6b5b;
    --lb-primary-dark: #0a5145;
    --lb-primary-soft: #e7f3f0;
    --lb-accent: #c8a96b;
    --lb-accent-soft: #f6efe3;
    --lb-bg: #f5f8f6;
    --lb-surface: #ffffff;
    --lb-surface-soft: #f9fbfa;
    --lb-text: #1f2937;
    --lb-text-muted: #6b7280;
    --lb-text-soft: #94a3b8;
    --lb-border: #e5ece8;
    --lb-shadow: 0 14px 34px rgba(16, 24, 40, 0.06);
    --lb-success: #198754;
    --lb-success-soft: #e9f7ef;
    --lb-warning: #b78103;
    --lb-warning-soft: #fff6df;
    --lb-danger: #b42318;
    --lb-danger-soft: #fdecec;
    --lb-sidebar-bg: linear-gradient(180deg, #00271d 0%, #001b14 100%);
    /* --lb-sidebar-bg: radial-gradient(...); */
}

body.lb-body {
    margin: 0;
    color: var(--lb-text);
    background: radial-gradient(1200px circle at 0% 0%, rgba(15,107,91,.08), transparent 40%), radial-gradient(900px circle at 100% 0%, rgba(200,169,107,.12), transparent 30%), var(--lb-bg);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(15, 107, 91, 0.15);
}

/* Shell */
.labbayk-shell {
    display: flex;
    min-height: 100vh;
    background: transparent;
}

/* Sidebar */
.labbayk-sidebar {
    width: 290px;
    min-width: 290px;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px;
    color: #fff;
    background: var(--lb-sidebar-bg);
    border-right: 1px solid rgba(255,255,255,.06);
    box-shadow: 8px 0 30px rgba(0,0,0,.16);
    overflow-y: auto;
    overflow-x: hidden;
}

.brand {
    display: flex;
    gap: 0px;
    align-items: center;
    justify-content: center;
    padding: 0px;
    border-radius: 0px;
    background: rgba(255,255,255,.07);
    border: 0px solid rgba(255,255,255,.09);
    backdrop-filter: blur(0px);
    color: #fff;
}

    .brand:hover {
        background: rgba(255,255,255,.10);
        color: #fff;
    }

    .brand img {
        max-height: 120px;
        width: auto;
        object-fit: contain;
    }

.brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--lb-accent), #e7c98b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b2b16;
    box-shadow: 0 10px 20px rgba(0,0,0,.18);
    font-size: 1.1rem;
}

.brand-title {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: .02em;
    color: #fff;
}

.brand-sub {
    color: rgba(255,255,255,.72);
    font-size: .8rem;
    margin-top: -2px;
}

.labbayk-sidebar .nav-link {
    display: flex;
    gap: 12px;
    align-items: center;
    color: rgba(255,255,255,.88);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 500;
    transition: all .2s ease;
}

    .labbayk-sidebar .nav-link:hover {
        background: rgba(255,255,255,.10);
        color: #fff;
        transform: translateX(4px);
    }

    .labbayk-sidebar .nav-link.active {
        background: linear-gradient(135deg, #0F6B5B 0%, #198754 100%);
        color: #fff;
        box-shadow: 0 10px 20px rgba(25,135,84,.25);
    }

    .labbayk-sidebar .nav-link i {
        font-size: 18px;
        width: 22px;
        text-align: center;
    }

/* Sidebar bottom artwork */



.dua-card {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    padding: 14px;
    color: #fff;
}

    .dua-card .text-muted,
    .dua-card small {
        color: rgba(255,255,255,.72) !important;
    }

/* Main content */
.labbayk-content {
    flex: 1;
    min-width: 0;
}

.labbayk-topbar {
    padding: 24px 32px 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.topbar-kicker {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--lb-accent);
    margin-bottom: .2rem;
}

.topbar-title {
    font-weight: 800;
    font-size: 2rem;
    margin: 0;
    color: var(--lb-text);
}

.topbar-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.page-title {
    font-weight: 800;
    font-size: 2.25rem;
    margin-bottom: 0;
    color: var(--lb-text);
}

.page-sub {
    color: var(--lb-text-muted);
    margin-top: 4px;
}

/* Cards */
.soft-card {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,251,250,.98));
    border: 1px solid var(--lb-border);
    border-radius: 20px;
    box-shadow: var(--lb-shadow);
}

.pill {
    border-radius: 999px;
    padding: .4rem .75rem;
    font-size: .8rem;
    font-weight: 600;
}

/* Buttons */
.btn-brand {
    background: linear-gradient(135deg, var(--lb-primary), var(--lb-primary-dark));
    border: none;
    color: #fff;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(15,107,91,.18);
    padding: .72rem 1.1rem;
}

    .btn-brand:hover {
        color: #fff;
        transform: translateY(-1px);
    }

.btn-soft {
    background: #fff;
    border: 1px solid var(--lb-border);
    color: var(--lb-text);
    border-radius: 14px;
    font-weight: 600;
    padding: .72rem 1.1rem;
}

    .btn-soft:hover {
        background: #f9fbfa;
        color: var(--lb-text);
    }

.btn-primary {
    background: linear-gradient(135deg, var(--lb-primary), var(--lb-primary-dark));
    border: none;
    border-radius: 14px;
    font-weight: 600;
}

.btn-outline-dark,
.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger,
.btn-light {
    border-radius: 12px;
    font-weight: 600;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 14px;
    border: 1px solid var(--lb-border);
    min-height: 46px;
    box-shadow: none;
    background-color: #fff;
}

textarea.form-control {
    min-height: 110px;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: .45rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15,107,91,.45);
    box-shadow: 0 0 0 0.2rem rgba(15,107,91,.12);
}

/* Premium Form UI */
.form-shell {
    border-radius: 24px;
    border: 1px solid var(--lb-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,251,250,.99));
    box-shadow: 0 14px 34px rgba(16,24,40,.05);
    overflow: hidden;
}

    .form-shell + .form-shell {
        margin-top: 1.25rem;
    }

.form-section {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(15,107,91,.06);
}

    .form-section:last-child {
        border-bottom: 0;
    }

.form-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: .2rem;
    color: var(--lb-text);
    letter-spacing: -.01em;
}

.form-section-subtitle {
    color: var(--lb-text-muted);
    font-size: .88rem;
    margin-bottom: 1.1rem;
}

.form-panel {
    border-radius: 18px;
    border: 1px solid rgba(15,107,91,.06);
    background: linear-gradient(180deg, #ffffff, #fbfcfb);
    padding: 1rem;
}

.field-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: .45rem;
    font-size: .92rem;
}

    .field-label .icon {
        width: 28px;
        height: 28px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--lb-primary-soft);
        color: var(--lb-primary);
        font-size: .8rem;
        border: 1px solid rgba(15,107,91,.08);
    }

.field-note {
    color: var(--lb-text-muted);
    font-size: .78rem;
    margin-top: .35rem;
}

.required-dot {
    color: #dc3545;
    font-weight: 800;
}

.form-check-card {
    border: 1px solid rgba(15,107,91,.08);
    background: linear-gradient(180deg, #ffffff, #fbfcfb);
    border-radius: 16px;
    padding: .9rem 1rem;
}

.form-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(15,107,91,.06);
    background: rgba(249,251,250,.8);
}

.form-toolbar-left,
.form-toolbar-right {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.form-summary-card {
    border-radius: 18px;
    border: 1px solid rgba(15,107,91,.06);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,251,250,.98));
    box-shadow: 0 12px 28px rgba(16,24,40,.04);
    padding: 1.15rem;
    height: 100%;
}

.form-summary-title {
    font-weight: 800;
    margin-bottom: .35rem;
}

.form-summary-text {
    color: var(--lb-text-muted);
    font-size: .86rem;
}

.upload-drop {
    border: 1.5px dashed rgba(15,107,91,.25);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(231,243,240,.35), rgba(255,255,255,.9));
    padding: 1.25rem;
    text-align: center;
}

    .upload-drop .upload-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        margin: 0 auto .75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--lb-primary-soft);
        color: var(--lb-primary);
        font-size: 1.15rem;
    }

.inline-stat {
    border-radius: 16px;
    border: 1px solid rgba(15,107,91,.08);
    background: linear-gradient(180deg, #fff, #fbfcfb);
    padding: .9rem 1rem;
}

    .inline-stat .label {
        color: var(--lb-text-muted);
        font-size: .8rem;
    }

    .inline-stat .value {
        font-size: 1.2rem;
        font-weight: 800;
        margin-top: .1rem;
    }

.validation-summary-errors {
    border-radius: 16px;
    border: 1px solid #efc4c2;
    background: #fdecec;
    color: #8f1d14;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 1.1rem;
    }

    .validation-summary-valid,
    .validation-summary-errors:empty,
    .alert:empty {
        display: none !important;
    }

.input-group-text {
    border-radius: 14px;
    border: 1px solid var(--lb-border);
    background: #fff;
}

/* Tables */
.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

    .table thead th {
        background: #f5f8f6;
        color: var(--lb-text-muted);
        font-size: .78rem;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 1px solid var(--lb-border);
        padding: .95rem 1rem;
    }

    .table tbody td {
        padding: 1rem;
        vertical-align: middle;
        border-bottom: 1px solid #eef2ef;
    }

    .table tbody tr:hover {
        background: #fbfcfb;
    }

/* Alerts */
.alert-success.soft-card {
    background: var(--lb-success-soft);
    color: #17633f;
    border: 1px solid #cfe9d8;
}

.alert-danger.soft-card {
    background: var(--lb-danger-soft);
    color: #8f1d14;
    border: 1px solid #efc4c2;
}

/* Responsive */

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 991.98px) {
    .labbayk-sidebar {
        width: 250px;
        min-width: 250px;
    }

    .brand img {
        max-height: 95px;
    }

    .labbayk-topbar {
        padding: 20px 20px 12px 20px;
    }
}

.mobile-menu-btn {
    display: none;
}

.mobile-sidebar-close {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-menu-btn {
        display: flex;
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 1300;
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 14px;
        align-items: center;
        justify-content: center;
        background: #00271d;
        color: #ffffff;
        font-size: 1.5rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    }

    .mobile-sidebar-close {
        display: flex;
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 1401;
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 12px;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.14);
        color: #ffffff;
        font-size: 1rem;
    }

    .labbayk-shell {
        display: block;
        min-height: 100vh;
    }

    .labbayk-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        min-width: 280px;
        height: 100vh;
        z-index: 1400;
        padding: 20px 16px;
        background: #00271d !important;
        border-right: none;
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.25);
        overflow-y: auto;
        overflow-x: hidden;
        transition: left 0.25s ease-in-out;
    }

    body.sidebar-open .labbayk-sidebar {
        left: 0;
    }

    body.sidebar-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1350;
    }

    .labbayk-content {
        margin-left: 0 !important;
        width: 100%;
        padding-top: 70px;
    }

    .labbayk-topbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 20px 12px 20px;
    }

    .topbar-title {
        font-size: 1.6rem;
    }

    .form-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .form-toolbar-left,
    .form-toolbar-right {
        width: 100%;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .sidebar-bottom-art {
        display: none;
    }

    .labbayk-sidebar .brand {
        background-color: #00271d !important;
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

        .labbayk-sidebar .brand img {
            max-width: 100% !important;
            height: auto !important;
            display: block;
            margin: 0 auto !important;
            padding: 0 !important;
            border: none !important;
            box-shadow: none !important;
        }

    .booking-pilgrim-photo,
    .booking-pilgrim-photo-placeholder {
        width: 86px;
        height: 86px;
        border-radius: 22px;
        border: 4px solid #fff;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
        background: #f1f5f9;
    }

    .booking-pilgrim-photo {
        object-fit: cover;
    }

    .booking-pilgrim-photo-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .booking-pilgrim-photo-placeholder i {
            font-size: 3rem;
            color: #94a3b8;
 
         }

    :root {
        --labbayk-main: #18b99a;
        --labbayk-main-dark: #0f8f78;
        --labbayk-main-soft: #e9fff8;
        --labbayk-text: #0b1f3a;
    }

    .login-page {
        min-height: 100vh;
        background: linear-gradient(135deg, #e9fff8 0%, #ffffff 45%, #f4fffb 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px 15px;
    }

    .login-card {
        max-width: 430px;
        width: 100%;
        border: 1px solid rgba(24, 185, 154, 0.15);
        border-radius: 24px;
        overflow: hidden;
    }

    .login-header {
        background: linear-gradient(135deg, var(--labbayk-main), var(--labbayk-main-dark));
        color: white;
    }

    .btn-labbayk {
        background: var(--labbayk-main);
        border-color: var(--labbayk-main);
        color: #fff;
    }

        .btn-labbayk:hover {
            background: var(--labbayk-main-dark);
            border-color: var(--labbayk-main-dark);
            color: #fff;
        }

    .login-icon-box {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.18);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 12px auto;
        font-size: 28px;
    }

    .labbayk-login-header {
        background: linear-gradient(135deg, #16b89e, #0f8f78) !important;
    }

    .sidebar-group {
        width: 100%;
    }

    .sidebar-sub-link {
        font-size: 0.92rem;
        padding-left: 1rem;
    }

    .sidebar-link .bi-chevron-down {
        font-size: 0.8rem;
    }




    .login-bg {
        min-height: 75vh;
        position: relative;
        overflow: hidden;
        background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 28%), radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.12), transparent 30%), linear-gradient(135deg, #003300 0%, #064d2f 45%, #002b1a 100%);
        border-radius: 24px;
    }

        /* Soft decorative circles */
        .login-bg::before,
        .login-bg::after {
            content: "";
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            z-index: 0;
        }

        .login-bg::before {
            width: 220px;
            height: 220px;
            top: -70px;
            right: -60px;
        }

        .login-bg::after {
            width: 170px;
            height: 170px;
            bottom: -50px;
            left: -40px;
        }

        /* Make sure the login card stays above the background design */
        .login-bg .card {
            position: relative;
            z-index: 1;
        }
}
/* Keep Super Admin agency-application field labels readable with the Morph theme. */
.agency-application-summary dt {
    color: #4b5c6f !important;
}

.subscription-alert {
    border-radius: 14px;
}
