@import url('branding.css');

/* ======================================================
   BAUNDULE DASHBOARD (FINAL PRODUCTION)
   - Cinematic Hero
   - Glass UI
   - Proper Header Spacing
   - No Layout Shift
====================================================== */


/* ================= HERO SECTION ================= */
.kk-dashboard-hero {
    position: relative;
    overflow: hidden;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* BG IMAGE */
.kk-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: brightness(0.6);
    z-index: 0;
}

/* DARK OVERLAY */
.kk-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.9));
    z-index: 1;
}

.kk-hero {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 30px;
    border-radius: var(--radius-xl);

    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);

    margin-top: 60px; /* 🔥 ADD THIS */
}

/* TEXT */
.kk-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: 6px;
    color: #fff;
}

.kk-subtitle {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.75);
}

/* ACTION BUTTONS */
.kk-hero-actions {
    display: flex;
    gap: 12px;
}

/* ================= GLASS CARDS ================= */
.glass {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
}

/* ================= STATS ================= */
.kk-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-smooth);
}

.kk-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.kk-stat {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ICON */
.kk-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245,196,0,0.12);
    color: var(--bs-primary);
    font-size: 18px;
}

/* TEXT */
.kk-stat p {
    margin: 0;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
}

.kk-stat h3,
.kk-stat h6 {
    margin: 0;
    color: #fff;
    font-weight: 700;
}

/* ================= BUTTON FIX ================= */
.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: #000;
}

/* ================= TABLE CARD ================= */
.kk-table-card {
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

/* HEADER */
.kk-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-divider);
    background: var(--color-surface);
}

.kk-card-header h5 {
    margin: 0;
    font-weight: 600;
}

/* LINK */
.kk-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-primary);
}

.kk-link:hover {
    text-decoration: underline;
}

/* ================= TABLE ================= */
.kk-table thead th {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-faint);
    border-bottom: 1px solid var(--color-divider);
    padding: 14px 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kk-table tbody td {
    padding: 16px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--color-divider);
}

.kk-table tbody tr:hover {
    background: var(--color-surface-2);
}

/* ================= BADGES ================= */
.kk-badge {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.kk-badge.confirmed {
    background: rgba(0,179,12,0.1);
    color: var(--bs-success);
}

.kk-badge.pending {
    background: rgba(245,196,0,0.2);
    color: #b38f00;
}

.kk-badge.cancelled {
    background: rgba(0,0,0,0.08);
    color: #444;
}

/* ================= EMPTY ================= */
.kk-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.kk-empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--color-text-faint);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {

    .kk-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .kk-hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .kk-hero-actions .btn {
        width: 100%;
    }
}

/*======== Customer Profile ======*/
/* PROFILE AVATAR */
.kk-avatar-wrap {
    display:flex;
    justify-content:center;
}

.kk-avatar {
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid rgba(255,255,255,0.2);
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
}

/* ======================================================
   PREMIUM PROFILE UPGRADE (NON-BREAKING ENHANCEMENT)
   Works with your existing dashboard CSS
====================================================== */


/* ================= PROFILE CARD ================= */
.profile-card {
    border-radius: var(--radius-lg);
    padding: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #faf7ef 100%);
    border: 1px solid var(--color-border);

    box-shadow: 0 18px 50px rgba(22,18,8,0.08);

    transition: all var(--transition-smooth);
    text-align: center;
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(22,18,8,0.12);
}


/* ================= AVATAR ================= */
.profile-avatar-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: auto;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;

    border: 4px solid #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);

    transition: transform 0.3s ease;
}

.profile-avatar-wrap:hover .profile-avatar {
    transform: scale(1.06);
}

/* camera overlay */
.profile-avatar-edit {
    position: absolute;
    inset: 0;
    border-radius: 50%;

    background: rgba(0,0,0,0.55);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    opacity: 0;
    transition: var(--transition-fast);
    cursor: pointer;
}

.profile-avatar-wrap:hover .profile-avatar-edit {
    opacity: 1;
}


/* ================= STATUS BADGE (PREMIUM) ================= */

/* Avatar dot */
.avatar-status {
    position: absolute;
    bottom: 6px;
    right: 6px;

    width: 16px;
    height: 16px;

    border-radius: 50%;
    border: 2px solid #fff;

    background: rgba(0,0,0,0.25); /* soft neutral */
}

.avatar-status.verified {
    background: #2e7d32; /* softer green (not neon) */
}


/* ================= TEXT BADGES ================= */
.profile-meta .badge {
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ACTIVE (soft charcoal, not black) */
.profile-meta .badge.bg-dark {
    background: #2b2b2b !important;
    color: #f5f5f5 !important;
}

/* VERIFIED (muted premium green) */
.profile-meta .badge.bg-success {
    background: rgba(31, 143, 67, 0.12) !important;
    color: #1f8f43 !important;
    border: 1px solid rgba(31, 143, 67, 0.25);
}

/* ================= META ================= */
.profile-meta {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.profile-meta .badge {
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 12px;
}


/* ================= PROFILE TABS ================= */
.profile-tabs {
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #faf7ef 100%);
    border: 1px solid var(--color-border);

    box-shadow: 0 18px 50px rgba(22,18,8,0.08);
    padding: 28px;
}


/* ================= NAV PILLS ================= */
.nav-pills .nav-link {
    border-radius: 999px;
    padding: 8px 16px;

    font-size: 14px;
    font-weight: 600;

    color: var(--color-text-muted);
    background: rgba(0,0,0,0.04);

    transition: all var(--transition-fast);
}

.nav-pills .nav-link:hover {
    background: var(--color-primary-soft);
    color: var(--color-text);
}

.nav-pills .nav-link.active {
    background: var(--color-brand-gradient);
    color: #111;

    box-shadow: 0 8px 20px rgba(245,196,0,0.3);
}


/* ================= INPUT ================= */
.modern-input {
    height: 52px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-strong);

    background: var(--color-surface);
    transition: all var(--transition-fast);
}

.modern-input:focus {
    border-color: var(--color-primary);
    background: #fffdf7;
    box-shadow: var(--shadow-focus);
}


/* ================= READONLY INPUT ================= */
/* ================= READONLY INPUT (RIGHT ICON) ================= */
.readonly-input {
    position: relative;
    width: 100%;
}

/* INPUT */
.readonly-input input {
    width: 100%;
    height: 56px;

    padding: 0 48px 0 16px; /* space for right icon */

    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);

    background: linear-gradient(180deg, #f7f3ea, #f1eadf);

    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;

    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);

    cursor: not-allowed;
}

/* ICON RIGHT */
.readonly-input i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);

    color: var(--color-text-faint);
    font-size: 14px;
    opacity: 0.7;
}

/* CLEAN FOCUS */
.readonly-input input:focus {
    outline: none;
    box-shadow: none;
}

/* ================= BUTTON ================= */
.premium-save {
    height: 56px;
    border-radius: 999px;

    font-weight: 700;
    font-size: 14px;

    background: var(--color-brand-gradient);
    border: none;
    color: #111;

    box-shadow: 0 12px 30px rgba(245,196,0,0.3);

    transition: all var(--transition-smooth);
}

.premium-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(245,196,0,0.4);
}


/* ================= DARK BUTTON FIX ================= */
.btn-dark.premium-save {
    background: #111 !important;
    color: #fff !important;
}


/* ================= FORM SPACING ================= */
.profile-tabs .form-label {
    font-weight: 600;
    color: var(--color-text);
}

.profile-tabs .form-control {
    font-size: 14px;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {

    .profile-card,
    .profile-tabs {
        padding: 22px;
    }

}

@media (max-width: 576px) {

    .profile-avatar-wrap {
        width: 90px;
        height: 90px;
    }

    .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
    }
}
/* ======================================================
   TERMS MODAL (FINAL PRODUCTION READY - FORCED)
====================================================== */

/* 1. BACKDROP - Hidden by default, forced to flex when .show is added */
.terms-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75) !important; /* Slightly darker for better focus */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999 !important; /* Sit above navbar and all content */
    
    display: none; 
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}

/* 2. THE FIX: Forced Visibility */
.terms-backdrop.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 3. MODAL BOX */
.terms-modal {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 28px; /* Slightly rounder for modern feel */
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    animation: kkFadeScale 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium Entrance Animation */
@keyframes kkFadeScale {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* 4. HEADER */
.terms-header {
    padding: 28px 32px;
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
}

.terms-header h5 {
    margin: 0;
    font-weight: 800;
    font-size: 1.3rem;
    color: #111;
    letter-spacing: -0.5px;
}

.terms-header p {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 0;
}

/* 5. BODY & SCROLL */
.terms-body {
    padding: 28px 32px;
}

.terms-scroll {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 15px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #444;
    scroll-behavior: smooth;
}

/* Custom Premium Scrollbar */
.terms-scroll::-webkit-scrollbar {
    width: 5px;
}
.terms-scroll::-webkit-scrollbar-track {
    background: #f9f9f9;
}
.terms-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.terms-scroll::-webkit-scrollbar-thumb:hover {
    background: #111;
}

.terms-scroll h6 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #000;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.terms-scroll h6::before {
    content: '';
    width: 4px;
    height: 14px;
    background: #111;
    display: inline-block;
    margin-right: 10px;
    border-radius: 2px;
}

/* 6. CHECKBOX AREA */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 24px;
    padding: 18px;
    background: #f9f9f9;
    border-radius: 16px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terms-check:hover {
    background: #f1f1f1;
    border-color: #ddd;
}

.terms-check input {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #111;
}

.terms-check span {
    font-size: 14px;
    line-height: 1.5;
    color: #222;
    font-weight: 500;
}

/* 7. FOOTER */
.terms-footer {
    padding: 24px 32px;
    background: #fff;
    border-top: 1px solid #f1f1f1;
}

.terms-footer .btn {
    width: 100%;
    height: 54px;
    font-weight: 700;
    border-radius: 14px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.terms-footer .btn-dark {
    background: #111;
    border: none;
    color: #fff;
}

.terms-footer .btn:disabled {
    background: #ccc !important;
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.terms-footer .btn:not(:disabled):hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* ================= PREVENT SCROLL SHIFT ================= */

/* Ensure page doesn't shift when modal locks the body */
html {
    overflow-y: scroll; 
}

body.modal-locked {
    overflow: hidden !important;
    height: 100vh !important;
    padding-right: 0px; 
}

/* SweetAlert Overlays */
.swal2-container {
    z-index: 100001 !important;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .terms-modal {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        position: absolute;
        bottom: 0;
        animation: kkSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    @keyframes kkSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .terms-header, .terms-body, .terms-footer {
        padding: 20px 24px;
    }
    
    .terms-scroll {
        max-height: 40vh;
    }
}

.swal2-popup {
    box-sizing: border-box;
}