/*
 * Pirayesh — LatePoint Customer Dashboard Redesign
 * Targets LatePoint 5.2.4 classes only. Non-destructive override.
 * Font: Rokh (already loaded site-wide)
 */

/* ── Base wrapper ────────────────────────────────────────────────────────── */
.latepoint-w {
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
    direction: rtl;
}

.latepoint-w h4 {
    font-family: 'Rokh', 'Vazirmatn', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin: 0 0 4px;
    text-align: center;
}

/* Logout link */
.latepoint-w > a:first-child {
    display: inline-block;
    font-size: 12px;
    color: #aaa;
    text-decoration: none;
    text-align: center;
    width: 100%;
    margin-bottom: 4px;
    font-family: 'Rokh', 'Vazirmatn', sans-serif;
}
.latepoint-w > a:first-child:hover { color: #555; }

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.latepoint .customer-dashboard-tabs,
.latepoint-w .customer-dashboard-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    border-bottom: none !important;
    margin: 24px 0 32px !important;
    padding: 0 12px;
    flex-wrap: wrap;
    overflow-x: visible !important;
}

.latepoint .customer-dashboard-tabs a,
.latepoint-w .customer-dashboard-tabs a {
    display: inline-flex !important;
    align-items: center;
    padding: 8px 18px 9px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
    color: #555 !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    border: 1.5px solid #e5e5e5 !important;
    background: #fafafa !important;
    margin: 0 !important;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.latepoint .customer-dashboard-tabs a::after,
.latepoint-w .customer-dashboard-tabs a::after {
    display: none !important;
}

.latepoint .customer-dashboard-tabs a:hover,
.latepoint-w .customer-dashboard-tabs a:hover {
    border-color: #bbb !important;
    background: #f0f0f0 !important;
    color: #111 !important;
}

.latepoint .customer-dashboard-tabs a.active,
.latepoint-w .customer-dashboard-tabs a.active {
    background: #1c1c1e !important;
    border-color: #1c1c1e !important;
    color: #fff !important;
}

/* ── Section headings ────────────────────────────────────────────────────── */
.latepoint-w .latepoint-section-heading-w {
    border-bottom: none !important;
    margin: 8px 0 16px !important;
    padding: 0 !important;
}

.latepoint-w .latepoint-section-heading-w .latepoint-section-heading {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #aaa !important;
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
}

.latepoint-w .latepoint-section-heading-w .heading-extra {
    font-size: 12px !important;
    color: #bbb !important;
}

/* ── Booking tiles grid ──────────────────────────────────────────────────── */
.customer-bookings-tiles,
.customer-orders-tiles {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
}

/* ── Single booking card ─────────────────────────────────────────────────── */
.customer-bookings-tiles .customer-booking {
    background: #fff !important;
    border: 1px solid #ebebeb !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.customer-bookings-tiles .customer-booking:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09) !important;
    transform: translateY(-2px);
}

/* Accent bar at top based on status */
.customer-bookings-tiles .customer-booking::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #e0e0e0;
    border-radius: 16px 16px 0 0;
}
.customer-bookings-tiles .customer-booking.status-approved::before {
    background: linear-gradient(90deg, #34d399, #10b981);
}
.customer-bookings-tiles .customer-booking.status-pending::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.customer-bookings-tiles .customer-booking.status-cancelled::before {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

/* Service name */
.customer-bookings-tiles h6.customer-booking-service-name {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #111 !important;
    margin: 8px 0 6px !important;
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
    text-align: right !important;
}

/* Date/time */
.customer-bookings-tiles .customer-booking-datetime {
    font-size: 13px !important;
    color: #777 !important;
    margin-bottom: 16px !important;
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
}
.customer-bookings-tiles .customer-booking-datetime span { color: #aaa !important; }

/* Divider line */
.customer-bookings-tiles .customer-booking-service-color {
    height: 1px !important;
    background: #f0f0f0 !important;
    margin-bottom: 0 !important;
}

/* Info rows */
.customer-bookings-tiles .customer-booking-info {
    margin: 14px 0 !important;
    font-size: 14px !important;
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
}

.customer-bookings-tiles .customer-booking-info .customer-booking-info-row {
    display: flex !important;
    align-items: center !important;
    margin: 8px 0 !important;
    gap: 8px;
}

.customer-bookings-tiles .customer-booking-info .booking-info-label {
    flex: 0 0 auto !important;
    font-size: 12px !important;
    color: #aaa !important;
    min-width: 60px;
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
}

.customer-bookings-tiles .customer-booking-info .booking-info-value {
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #222 !important;
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
}

/* Status badges */
.customer-bookings-tiles .customer-booking-info .booking-info-value.status-approved,
.customer-bookings-tiles .customer-booking-info .booking-info-value.status-pending,
.customer-bookings-tiles .customer-booking-info .booking-info-value.status-cancelled {
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 10px 4px !important;
    border-radius: 999px !important;
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
}

.customer-bookings-tiles .customer-booking-info .booking-info-value.status-approved {
    background: #d1fae5 !important;
    color: #065f46 !important;
}
.customer-bookings-tiles .customer-booking-info .booking-info-value.status-pending {
    background: #fef3c7 !important;
    color: #78350f !important;
}
.customer-bookings-tiles .customer-booking-info .booking-info-value.status-cancelled {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

/* Action buttons row */
.customer-booking-buttons {
    display: flex !important;
    gap: 8px !important;
    padding-bottom: 12px !important;
    flex-wrap: wrap;
}

/* Bottom action bar */
.customer-booking-bottom-actions {
    border-top: 1px solid #f0f0f0 !important;
    padding-top: 14px !important;
    margin-top: 4px !important;
    gap: 10px !important;
}

/* Override LatePoint buttons */
.latepoint-w .latepoint-btn {
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 7px 14px 8px !important;
}

.latepoint-w .latepoint-btn-outline {
    border: 1.5px solid #e0e0e0 !important;
    background: transparent !important;
    color: #444 !important;
}
.latepoint-w .latepoint-btn-outline:hover {
    border-color: #bbb !important;
    background: #f5f5f5 !important;
    color: #111 !important;
}

/* New booking tile */
.customer-bookings-tiles .new-booking-tile {
    border-radius: 16px !important;
    border: 2px dashed #ddd !important;
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
}

/* ── Profile / password form ─────────────────────────────────────────────── */
.latepoint-w .os-form-group label {
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
    font-size: 13px !important;
    color: #555 !important;
    font-weight: 600 !important;
}

.latepoint-w .os-form-group input[type="text"],
.latepoint-w .os-form-group input[type="email"],
.latepoint-w .os-form-group input[type="password"],
.latepoint-w .os-form-group input[type="tel"] {
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
    border-radius: 10px !important;
    border: 1.5px solid #e5e5e5 !important;
    font-size: 14px !important;
    padding: 10px 13px !important;
    transition: border-color 0.15s;
}

.latepoint-w .os-form-group input:focus {
    border-color: #f59e0b !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.12) !important;
}

.latepoint-w .latepoint-btn[type="submit"],
.latepoint-w button.latepoint-btn {
    background: #1c1c1e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 11px 28px 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
    cursor: pointer !important;
    transition: opacity 0.15s !important;
}
.latepoint-w .latepoint-btn[type="submit"]:hover,
.latepoint-w button.latepoint-btn:hover {
    opacity: 0.85 !important;
}

.latepoint-w .customer-password-form-w {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.latepoint-w .customer-password-form-w h5 {
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: 'Rokh', 'Vazirmatn', sans-serif !important;
    color: #333 !important;
    margin-bottom: 16px !important;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Tabs — pill row, centered, wrapping */
    .latepoint .customer-dashboard-tabs,
    .latepoint-w .customer-dashboard-tabs {
        gap: 6px !important;
        margin: 16px 0 24px !important;
        padding: 0 8px !important;
        justify-content: center !important;
        overflow-x: visible !important;
        flex-wrap: wrap !important;
    }

    .latepoint .customer-dashboard-tabs a,
    .latepoint-w .customer-dashboard-tabs a {
        font-size: 13px !important;
        padding: 7px 14px 8px !important;
        margin: 0 !important;
    }

    /* Cards — single column */
    .customer-bookings-tiles,
    .customer-orders-tiles {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .customer-bookings-tiles .customer-booking {
        border-radius: 14px !important;
        padding: 18px !important;
    }

    .customer-bookings-tiles h6.customer-booking-service-name {
        font-size: 16px !important;
    }

    /* Welcome heading smaller */
    .latepoint-w h4 {
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    .customer-bookings-tiles,
    .customer-orders-tiles {
        gap: 10px !important;
    }

    .latepoint .customer-dashboard-tabs a,
    .latepoint-w .customer-dashboard-tabs a {
        font-size: 12px !important;
        padding: 6px 12px 7px !important;
    }
}
