@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);
}

/* ================= SCROLL FIX ================= */
html {
    overflow-y: scroll;
}

body,
body.modal-open,
body.swal2-shown,
html.swal2-shown {
    padding-right: 0 !important;
    margin-right: 0 !important;
}

body.modal-open {
    overflow-y: scroll !important;
}

.swal2-container {
    padding: 1rem !important;
}

.swal2-popup {
    box-sizing: border-box;
}