/* ================================================================
   WillWill Dashboard Styles
   ================================================================ */

.wlb-dashboard-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1C1C4A;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    -webkit-font-smoothing: antialiased;
}

/* ---- Dashboard Header ---- */
.wlb-dash-header {
    background: linear-gradient(135deg, #1C1C4A 0%, #2A2A6A 100%);
    border-radius: 20px;
    padding: 32px 36px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(28, 28, 74, 0.2);
}

.wlb-dash-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.wlb-dash-welcome h1 {
    font-family: 'Figtree', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.wlb-dash-welcome p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

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

.wlb-dash-actions .wlb-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #FE9292 0%, #FF7B7B 100%);
    color: #1C1C4A;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Figtree', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(254, 146, 146, 0.3);
}

.wlb-dash-actions .wlb-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(254, 146, 146, 0.4);
    color: #1C1C4A;
}

.wlb-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.wlb-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ---- Stat Cards ---- */
.wlb-dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.wlb-stat-card {
    background: #ffffff;
    border: 1px solid #E8EBF0;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.wlb-stat-card:hover {
    border-color: #D0D5E0;
    box-shadow: 0 4px 16px rgba(28, 28, 74, 0.06);
    transform: translateY(-2px);
}

.wlb-stat-icon {
    font-size: 28px;
    line-height: 1;
}

.wlb-stat-info {
    display: flex;
    flex-direction: column;
}

.wlb-stat-number {
    font-family: 'Figtree', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1C1C4A;
    line-height: 1.2;
}

.wlb-stat-label {
    font-size: 12px;
    color: #8A91A8;
    font-weight: 500;
}

/* ---- Filter Buttons ---- */
.wlb-dash-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wlb-filter-btn {
    padding: 8px 18px;
    background: #FAFBFC;
    border: 1px solid #E8EBF0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #3A4268;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Inter', sans-serif;
}

.wlb-filter-btn:hover {
    border-color: #00ADEF;
    color: #00ADEF;
}

.wlb-filter-btn.active {
    background: #00ADEF;
    color: #ffffff;
    border-color: #00ADEF;
}

/* ---- Bookings Table ---- */
.wlb-dash-bookings {
    background: #ffffff;
    border: 1px solid #E8EBF0;
    border-radius: 16px;
    overflow: hidden;
}

.wlb-table-wrap {
    overflow-x: auto;
}

.wlb-bookings-table {
    width: 100%;
    border-collapse: collapse;
}

.wlb-bookings-table thead th {
    background: #F8F9FB;
    padding: 14px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #8A91A8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #E8EBF0;
}

.wlb-bookings-table tbody td {
    padding: 14px 18px;
    font-size: 13px;
    color: #3A4268;
    border-bottom: 1px solid #F0F2F5;
    vertical-align: middle;
}

.wlb-bookings-table tbody tr:hover {
    background: #FAFBFE;
}

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

.wlb-booking-num {
    color: #1C1C4A;
    font-weight: 700;
    font-size: 13px;
}

.wlb-text-muted {
    color: #8A91A8;
}

.wlb-td-total {
    color: #1C1C4A;
    font-size: 14px;
}

/* ---- Badges ---- */
.wlb-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wlb-status-pending, .wlb-payment-pending {
    background: #FFF3E0;
    color: #E65100;
}

.wlb-status-confirmed {
    background: #E3F2FD;
    color: #1565C0;
}

.wlb-status-in_progress {
    background: #F3E5F5;
    color: #7B1FA2;
}

.wlb-status-completed, .wlb-payment-paid {
    background: #E6F9EE;
    color: #0D8A3F;
}

.wlb-status-cancelled, .wlb-payment-refunded {
    background: #FFF0F0;
    color: #D63031;
}

/* ---- Invoice Button ---- */
.wlb-btn-icon {
    width: 36px;
    height: 36px;
    border: 1px solid #E8EBF0;
    border-radius: 8px;
    background: #FAFBFC;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.wlb-btn-icon:hover {
    border-color: #00ADEF;
    background: #F0FAFF;
}

/* ---- Empty State ---- */
.wlb-no-bookings {
    text-align: center;
    padding: 40px 20px !important;
}

.wlb-empty-state {
    padding: 20px;
}

.wlb-empty-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.wlb-empty-state p {
    color: #8A91A8;
    font-size: 14px;
    margin-bottom: 16px;
}

.wlb-btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

/* ---- Modal overlay reuse ---- */
.wlb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wlb-modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(28, 28, 74, 0.6);
    backdrop-filter: blur(4px);
}

.wlb-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: wlb-modal-in 0.3s ease;
}

.wlb-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #8A91A8;
    cursor: pointer;
}

.wlb-modal-close:hover {
    color: #1C1C4A;
}

.wlb-modal-actions {
    text-align: center;
    margin-top: 20px;
}

@keyframes wlb-modal-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .wlb-dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .wlb-dash-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .wlb-dash-welcome h1 {
        font-size: 22px;
    }

    .wlb-bookings-table {
        min-width: 700px;
    }
}

@media (max-width: 480px) {
    .wlb-dash-stats {
        grid-template-columns: 1fr;
    }

    .wlb-dash-header {
        padding: 24px 20px;
    }

    .wlb-dash-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}
