/* =====================================================
   Kareri Group – Booking System Stylesheet
   ===================================================== */

/* ---- Root Variables ---- */
:root {
    --kg-primary:   #0d789f;
    --kg-secondary: #6e84a3;
    --kg-success:   #00b894;
    --kg-warning:   #fdcb6e;
    --kg-danger:    #d63031;
    --kg-dark:      #112d58;
    --kg-accent:    #85cac8;
    --kg-light:     #f0f8fa;
    --kg-border:    #cce4ec;
    --kg-radius:    8px;
    --kg-shadow:    0 2px 12px rgba(13, 120, 159, 0.10);
}

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.login-left {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    min-height: 100vh;
}

.login-right {
    background: linear-gradient(135deg, #112d58 0%, #0d789f 60%, #85cac8 100%);
    position: relative;
    overflow: hidden;
}

.login-right::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 350px;
    height: 350px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.login-right::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 450px;
    height: 450px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.login-logo img {
    max-width: 160px;
    margin-bottom: 0.5rem;
}

.login-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--kg-dark);
    margin-bottom: 0.25rem;
}

.login-card p.subtitle {
    color: var(--kg-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.login-card .form-control {
    border: 1.5px solid var(--kg-border);
    border-radius: var(--kg-radius);
    height: 46px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.login-card .form-control:focus {
    border-color: var(--kg-primary);
    box-shadow: 0 0 0 3px rgba(13, 120, 159, 0.12);
}

.btn-login {
    background: var(--kg-primary);
    border: none;
    border-radius: var(--kg-radius);
    height: 46px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.1s;
}

.btn-login:hover {
    background: #0a5c78;
    transform: translateY(-1px);
}

/* =====================================================
   ADMIN LAYOUT
   ===================================================== */
.topbar { background: var(--kg-dark); }
.topbar .navbar-custom { background: var(--kg-dark); }

.topbar-left .logo-lg1 { max-height: 38px; }

.left-sidenav {
    background: var(--kg-dark);
}

.left-sidenav-menu > li > a {
    color: rgba(255,255,255,0.72) !important;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    margin: 2px 10px;
    padding: 9px 14px !important;
    transition: background 0.15s, color 0.15s;
}

.left-sidenav-menu > li > a:hover,
.left-sidenav-menu > li.active > a {
    background: rgba(13, 120, 159, 0.18) !important;
    color: #fff !important;
}

.left-sidenav-menu > li > a i,
.left-sidenav-menu > li > a .fas,
.left-sidenav-menu > li > a .mdi {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

.left-sidenav-menu > li.active > a i,
.left-sidenav-menu > li.active > a .fas {
    color: var(--kg-primary);
}

.menu-title {
    color: rgba(255,255,255,0.35) !important;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 18px 22px 6px !important;
}

.nav-second-level {
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
    margin: 0 10px 4px;
}

.nav-second-level li a {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.83rem;
    padding: 8px 14px 8px 40px !important;
}

.nav-second-level li.active a,
.nav-second-level li a:hover {
    color: #fff !important;
}

/* =====================================================
   DASHBOARD STATS CARDS
   ===================================================== */
.stat-card {
    border: none;
    border-radius: 12px;
    padding: 1.4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--kg-shadow);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(13, 120, 159, 0.14);
}

.stat-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--kg-dark);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--kg-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.stat-card .stat-bg-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 5rem;
    opacity: 0.06;
    color: var(--kg-dark);
}

.card-primary   { background: linear-gradient(135deg, #d8eef5 0%, #b8dde8 100%); }
.card-success   { background: linear-gradient(135deg, #e0f7f1 0%, #c3eedf 100%); }
.card-warning   { background: linear-gradient(135deg, #fef8e7 0%, #fdedb7 100%); }
.card-danger    { background: linear-gradient(135deg, #fde8e8 0%, #fbc7c7 100%); }
.card-purple    { background: linear-gradient(135deg, #ede8fd 0%, #d9ccfb 100%); }
.card-teal      { background: linear-gradient(135deg, #e0f4f4 0%, #b8e8e8 100%); }

.icon-primary   { background: rgba(13, 120, 159, 0.15); color: var(--kg-primary); }
.icon-success   { background: rgba(0, 184, 148, 0.15); color: var(--kg-success); }
.icon-warning   { background: rgba(253, 203, 110, 0.25); color: #e0a000; }
.icon-danger    { background: rgba(214, 48, 49, 0.12); color: var(--kg-danger); }
.icon-purple    { background: rgba(108, 92, 231, 0.15); color: #6c5ce7; }
.icon-teal      { background: rgba(0, 184, 148, 0.15); color: #00cec9; }

/* =====================================================
   PAGE CARD / CONTENT WRAPPER
   ===================================================== */
.page-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--kg-shadow);
    border: 1px solid var(--kg-border);
    overflow: hidden;
}

.page-card .card-header {
    background: #fff;
    border-bottom: 1px solid var(--kg-border);
    padding: 1.1rem 1.5rem;
}

.page-card .card-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--kg-dark);
    margin: 0;
}

.page-card .card-body {
    padding: 1.5rem;
}

/* =====================================================
   DATA TABLES
   ===================================================== */
.kg-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.kg-table thead th {
    background: var(--kg-light);
    color: var(--kg-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 14px;
    border-bottom: 2px solid var(--kg-border);
    white-space: nowrap;
}

.kg-table tbody tr {
    transition: background 0.1s;
}

.kg-table tbody tr:hover {
    background: var(--kg-light);
}

.kg-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--kg-border);
    font-size: 0.875rem;
    color: #444;
    vertical-align: middle;
}

.kg-table tbody tr:last-child td {
    border-bottom: none;
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-pending   { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #d1f8ef; color: #0a6e5e; }
.badge-rejected  { background: #fde8e8; color: #a00; }
.badge-cancelled { background: #e9ecef; color: #555; }
.badge-paid      { background: #d1f8ef; color: #0a6e5e; }
.badge-unpaid    { background: #fff3cd; color: #856404; }
.badge-active    { background: #d1f8ef; color: #0a6e5e; }
.badge-inactive  { background: #fde8e8; color: #a00; }

/* =====================================================
   FORM CONTROLS
   ===================================================== */
.form-control, .form-select {
    border: 1.5px solid var(--kg-border);
    border-radius: var(--kg-radius);
    font-size: 0.9rem;
    height: 42px;
    transition: border-color 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--kg-primary);
    box-shadow: 0 0 0 3px rgba(13, 120, 159, 0.10);
}

textarea.form-control {
    height: auto;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--kg-dark);
    margin-bottom: 5px;
}

.input-group-text {
    background: var(--kg-light);
    border: 1.5px solid var(--kg-border);
    color: var(--kg-secondary);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn { border-radius: var(--kg-radius); font-weight: 600; font-size: 0.875rem; }
.btn-primary   { background: var(--kg-primary); border-color: var(--kg-primary); }
.btn-success   { background: var(--kg-success); border-color: var(--kg-success); }
.btn-sm        { font-size: 0.78rem; padding: 5px 12px; }
.btn-xs        { font-size: 0.72rem; padding: 3px 10px; border-radius: 5px; }

/* =====================================================
   PUBLIC SITE HEADER
   ===================================================== */
.public-header {
    background: #ffffff;
    border-bottom: 1px solid #cce4ec;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 15px;
}

.public-logo img {
    height: 52px;
    width: auto;
}

.public-nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.public-nav-links li { position: relative; }

.public-nav-links > li > a {
    color: #112d58;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 0;
    transition: color 0.18s;
}

.public-nav-links > li > a:hover { color: var(--kg-primary); }

.public-nav-links .fas.fa-chevron-down {
    font-size: 0.65rem;
    opacity: 0.6;
}

.public-nav-links .has-dropdown:hover .dropdown-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid var(--kg-border);
    border-radius: 8px;
    min-width: 180px;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.18s ease;
    z-index: 200;
}

.dropdown-nav li a {
    display: block;
    padding: 9px 18px;
    color: #112d58;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}

.dropdown-nav li a:hover {
    background: var(--kg-light);
    color: var(--kg-primary);
}

.public-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.public-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #112d58;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .public-nav-toggle { display: flex; }
    .public-nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f0f8fa;
        border-top: 1px solid #cce4ec;
        padding: 1rem 1.25rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .public-nav-links.open { display: flex; }
    .public-nav-links > li { width: 100%; border-bottom: 1px solid #cce4ec; }
    .public-nav-links > li:last-child { border-bottom: none; }
    .public-nav-links > li > a { padding: 10px 0; }
    .dropdown-nav {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 1rem;
        background: transparent;
    }
    .public-header { position: relative; }
}

/* =====================================================
   PUBLIC SITE FOOTER
   ===================================================== */
.public-footer {
    background: #f0f8fa;
    border-top: 1px solid #cce4ec;
    margin-top: 0;
}

.pf-main { padding: 3.5rem 0 2rem; }

.pf-logo img { height: 58px; width: auto; margin-bottom: 1rem; }

.pf-tagline {
    color: #6b6b6b;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.pf-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: #112d58;
    margin-bottom: 1.1rem;
}

.pf-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pf-links li { margin-bottom: 0.65rem; }

.pf-links a {
    color: #555;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s;
}

.pf-links a:hover { color: var(--kg-primary); }

.pf-address {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.8;
    font-style: normal;
    margin: 0;
}

.pf-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 0.88rem;
    text-decoration: none;
    margin-bottom: 1.1rem;
    transition: color 0.15s;
}

.pf-email:hover { color: var(--kg-primary); }

.pf-email .fas { color: #888; font-size: 0.85rem; }

.pf-socials { display: flex; gap: 10px; }

.pf-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.85rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.pf-social-btn:hover {
    border-color: var(--kg-primary);
    color: var(--kg-primary);
    background: rgba(13, 120, 159, 0.06);
}

.pf-bottom {
    border-top: 1px solid #cce4ec;
    padding: 1rem 0;
    font-size: 0.82rem;
    color: #777;
}

.pf-bottom .container { gap: 1rem; }

.pf-legal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pf-legal a { color: #666; text-decoration: none; transition: color 0.15s; }
.pf-legal a:hover { color: var(--kg-primary); }
.pf-sep { color: #bbb; }

@media (max-width: 768px) {
    .pf-main { padding: 2rem 0 1rem; }
    .pf-bottom .container { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* =====================================================
   PUBLIC BOOKING PAGE
   ===================================================== */
.booking-page { background: var(--kg-light); min-height: 100vh; }

.booking-hero {
    background: linear-gradient(135deg, #112d58 0%, #0d789f 55%, #85cac8 100%);
    padding: 3.5rem 0;
    text-align: center;
    color: #fff;
}

.booking-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.booking-hero p  { font-size: 1rem; opacity: 0.85; margin: 0; }

/* Step Indicator */
.booking-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0 1rem;
    gap: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 180px;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: var(--kg-border);
    z-index: 0;
}

.step-item.done:not(:last-child)::after { background: var(--kg-primary); }

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e3ebf6;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 1;
    position: relative;
    transition: background 0.2s, color 0.2s;
}

.step-item.active .step-circle { background: var(--kg-primary); color: #fff; }
.step-item.done   .step-circle { background: var(--kg-success); color: #fff; }
.step-circle .step-check { display: none; }
.step-item.done .step-circle .step-num { display: none; }
.step-item.done .step-circle .step-check { display: block; }

.step-label {
    font-size: 0.75rem;
    color: var(--kg-secondary);
    margin-top: 6px;
    font-weight: 500;
    text-align: center;
}

.step-item.active .step-label { color: var(--kg-primary); font-weight: 700; }
.step-item.done   .step-label { color: var(--kg-success); }

/* Booking Form Panel */
.booking-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(13,120,159,0.08);
    border: 1px solid var(--kg-border);
    overflow: hidden;
    margin-bottom: 2rem;
}

.booking-card .bc-header {
    background: var(--kg-light);
    border-bottom: 1px solid var(--kg-border);
    padding: 1.1rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-card .bc-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--kg-dark);
    margin: 0;
}

.booking-card .bc-body { padding: 1.75rem; }

/* Service Cards */
.service-option {
    border: 2px solid var(--kg-border);
    border-radius: 10px;
    padding: 1.2rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.service-option:hover { border-color: var(--kg-primary); background: #e5f5f7; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,120,159,0.12); }
.service-option.selected { border-color: var(--kg-primary); background: #d5eff5; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13,120,159,0.15); }

.service-option .svc-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border: 2px solid var(--kg-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.2s;
}

.service-option.selected .svc-check {
    background: var(--kg-primary);
    border-color: var(--kg-primary);
}

.service-option.selected .svc-check::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.svc-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(13,120,159,0.1);
    color: var(--kg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.svc-name { font-size: 1rem; font-weight: 700; color: var(--kg-dark); margin-bottom: 4px; }
.svc-desc { font-size: 0.82rem; color: var(--kg-secondary); line-height: 1.5; margin-bottom: 10px; }
.svc-price { font-size: 1.1rem; font-weight: 800; color: var(--kg-primary); }
.svc-duration { font-size: 0.78rem; color: var(--kg-secondary); margin-left: 8px; }

/* Calendar & Slot Picker */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.slot-btn {
    border: 2px solid var(--kg-border);
    background: #fff;
    border-radius: var(--kg-radius);
    padding: 10px 8px;
    text-align: center;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--kg-dark);
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.slot-btn:hover:not(.booked):not(.disabled) {
    border-color: var(--kg-primary);
    background: #e0f4f7;
    color: var(--kg-primary);
    transform: translateY(-1px);
}

.slot-btn.selected {
    background: var(--kg-primary);
    border-color: var(--kg-primary);
    color: #fff;
}

.slot-btn.booked {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #aaa;
    cursor: not-allowed;
    text-decoration: line-through;
}

.slot-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Booking Summary */
.booking-summary {
    background: var(--kg-light);
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid var(--kg-border);
}

.booking-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.87rem;
}

.booking-summary .summary-row .label { color: var(--kg-secondary); }
.booking-summary .summary-row .value { font-weight: 600; color: var(--kg-dark); }
.booking-summary .summary-total {
    border-top: 1.5px solid var(--kg-border);
    margin-top: 8px;
    padding-top: 10px;
    font-size: 1.05rem;
    font-weight: 700;
}

.booking-summary .summary-total .value { color: var(--kg-primary); font-size: 1.2rem; }

/* Progress Nav Buttons */
.booking-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--kg-border);
}

.btn-booking-next {
    background: var(--kg-primary);
    color: #fff;
    border: none;
    border-radius: var(--kg-radius);
    padding: 11px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-booking-next:hover { background: #0a5c78; color: #fff; }
.btn-booking-back {
    background: transparent;
    border: 1.5px solid var(--kg-border);
    border-radius: var(--kg-radius);
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--kg-secondary);
    transition: all 0.15s;
}

.btn-booking-back:hover { border-color: var(--kg-primary); color: var(--kg-primary); }

/* Payment block */
.payment-block {
    border: 2px solid var(--kg-border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    background: #fff;
}

.payment-block .pay-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--kg-primary);
    line-height: 1;
}

.payment-block .pay-label {
    font-size: 0.85rem;
    color: var(--kg-secondary);
    margin-top: 4px;
}

.btn-pay {
    background: linear-gradient(90deg, #85cac8 0%, var(--kg-primary) 50%, #112d58 100%);
    background-size: 200% 100%;
    background-position: right center;
    border: none;
    border-radius: var(--kg-radius);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 13px 36px;
    margin-top: 16px;
    transition: background-position 0.5s ease, transform 0.2s, box-shadow 0.2s;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-pay:hover {
    background-position: left center;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13,120,159,0.40);
    color: #fff;
}

.razorpay-logo { height: 22px; }

/* Success Page */
.success-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kg-light);
}

.success-card {
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(13,120,159,0.12);
    border: 1px solid var(--kg-border);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d789f, #85cac8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(13,120,159,0.40);
}

.success-card h2 { font-weight: 800; color: var(--kg-dark); margin-bottom: 0.5rem; }
.success-card .ref-box {
    background: var(--kg-light);
    border: 1px solid var(--kg-border);
    border-radius: var(--kg-radius);
    padding: 12px 20px;
    margin: 1.25rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--kg-primary);
}

/* =====================================================
   BOOKING VIEW / DETAIL
   ===================================================== */
.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--kg-border);
    font-size: 0.88rem;
}

.detail-row:last-child { border-bottom: none; }
.detail-label { width: 160px; flex-shrink: 0; color: var(--kg-secondary); font-weight: 600; }
.detail-value { flex: 1; color: var(--kg-dark); }

/* =====================================================
   REPORTS / CHARTS
   ===================================================== */
.chart-wrap { position: relative; height: 280px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .booking-hero h1 { font-size: 1.6rem; }
    .slot-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .login-left { padding: 2rem 1.25rem; }
    .booking-card .bc-body { padding: 1.25rem; }
    .stat-card .stat-number { font-size: 1.6rem; }
    .step-label { display: none; }
}

/* =====================================================
   UTILITY
   ===================================================== */
.text-primary { color: var(--kg-primary) !important; }
.bg-kg-light  { background: var(--kg-light); }
.rounded-xl   { border-radius: 14px !important; }
.font-w600    { font-weight: 600; }
.font-w700    { font-weight: 700; }
.fs-13        { font-size: 13px; }
.fs-12        { font-size: 12px; }

.page-header-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--kg-dark);
    margin: 0;
}

.page-header-breadcrumb {
    font-size: 0.78rem;
    color: var(--kg-secondary);
}

.page-header-breadcrumb a { color: var(--kg-primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--kg-light); }
::-webkit-scrollbar-thumb { background: #c0cfe0; border-radius: 10px; }

/* =====================================================
   ADMIN LAYOUT FIX – sidebar beside content, below topbar
   ===================================================== */

/* ---- Layout used by dashboard.php & admin/*.php ---- */

/* Push all page content below the 70px fixed topbar */
.content-page {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background: #f2f5f7;
}

/* Make sidebar + main content sit side-by-side */
.content {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 70px);
}

/* Sidebar: fixed width, sticky so it stays visible when page scrolls */
.content .left-sidenav {
    margin-top: 0;          /* cancel the -70px from style.css */
    flex-shrink: 0;
    width: 270px;
    min-height: calc(100vh - 70px);
    height: calc(100vh - 70px);
    overflow-y: auto;
    position: sticky;
    top: 70px;
    align-self: flex-start;
    border-radius: 0;
}

/* Main content area: fill remaining width */
.content > .container-fluid {
    flex: 1;
    min-width: 0;           /* prevent flex overflow on small viewports */
    padding: 20px 20px 70px;
    background: #f2f5f7;
}

/* ---- Layout used by profile.php & recover-password.php ---- */

/* Push page-wrapper below the fixed 70px topbar */
.page-wrapper {
    margin-top: 70px;
}

/* Remove the 80px side-padding that clips the sidebar, enable flex */
.page-wrapper-inner {
    display: flex;
    align-items: stretch;
    padding: 0;
    min-height: calc(100vh - 70px);
}

/* Sidebar inside page-wrapper-inner: reset the -70px pull-up */
.page-wrapper-inner .left-sidenav {
    margin-top: 0;
    flex-shrink: 0;
    width: 270px;
    min-height: calc(100vh - 70px);
    height: calc(100vh - 70px);
    overflow-y: auto;
    position: sticky;
    top: 70px;
    align-self: flex-start;
    border-radius: 0;
}

/* page-content inside page-wrapper-inner: fill remaining width, reset pull-up */
.page-wrapper-inner .page-content {
    flex: 1;
    min-width: 0;
    margin-top: 0;          /* cancel -70px from style.css */
    padding: 20px 20px 70px;
    background: #f2f5f7;
    min-height: calc(100vh - 70px);
}

/* ---- Footer ---- */
.footer {
    background: #fff;
    border-top: 1px solid #cce4ec;
    padding: 14px 20px;
    font-size: 0.8rem;
    color: #6e84a3;
    position: relative;
    z-index: 1;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

/* Keyframes */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0%   { transform: scale(0.3); opacity: 0; }
    55%  { transform: scale(1.1); opacity: 1; }
    75%  { transform: scale(0.93); }
    100% { transform: scale(1); }
}

@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(13, 120, 159, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(13, 120, 159, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 120, 159, 0); }
}

@keyframes slotPop {
    0%   { transform: scale(0.9); }
    60%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

/* Apply animations */
.public-header {
    animation: fadeInDown 0.4s ease both;
}

.booking-hero h1 {
    animation: fadeInUp 0.6s ease both;
}
.booking-hero p {
    animation: fadeInUp 0.6s 0.1s ease both;
}
.booking-hero .mt-2 {
    animation: fadeInUp 0.6s 0.2s ease both;
}

.booking-steps {
    animation: fadeInUp 0.5s 0.15s ease both;
}

.booking-card {
    animation: fadeInUp 0.4s ease both;
}

.step-item.active .step-circle {
    animation: pulseRing 2s infinite;
}

.slot-btn.selected {
    animation: slotPop 0.22s ease both;
}

.success-card {
    animation: scaleIn 0.5s ease both;
}

.success-icon {
    animation: bounceIn 0.7s 0.25s ease both;
}

/* Booking-next button hover lift */
.btn-booking-next {
    transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
}
.btn-booking-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 120, 159, 0.28);
}

/* Social icon hover spin */
.pf-social-btn i {
    transition: transform 0.25s ease;
}
.pf-social-btn:hover i {
    transform: scale(1.25) rotate(8deg);
}

/* Footer logo subtle float */
.pf-logo img {
    animation: heroFloat 4s ease-in-out infinite;
}

/* Booking hero icon float */
.booking-hero .fas.fa-calendar-check {
    animation: heroFloat 3s ease-in-out infinite;
    display: inline-block;
}

/* Step done circle scale pop */
.step-item.done .step-circle {
    transition: background 0.3s, color 0.3s, transform 0.3s;
    transform: scale(1.08);
}

/* Flatpickr calendar accent */
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #0d789f !important;
    border-color: #0d789f !important;
}
.flatpickr-day:hover {
    background: #d5eff5 !important;
}
.flatpickr-month,
.flatpickr-weekdays {
    background: #112d58 !important;
}
.flatpickr-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #fff !important;
}
.flatpickr-weekday {
    color: #85cac8 !important;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: #85cac8 !important;
}
