/********** ChairBook - Customer CSS **********/
/* Extends existing style.css with Customer App specific styles */

/* ─── Variables (mirror from style.css) ─── */
:root {
    --primary:   #EB1616;
    --secondary: #191C24;
    --dark:      #000000;
    --light:     #6C7293;
    --success:   #25d366;
    --card-bg:   #1e2330;
    --border:    rgba(255,255,255,0.07);
}

body {
    font-family: 'Roboto', sans-serif;
    background: #0d0f14;
    color: #e0e0e0;
}

/* ─── Bottom Nav Bar (Mobile) ──────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--secondary);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--light);
    text-decoration: none;
    font-size: 0.68rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    background: transparent;
}
.bottom-nav-item i { font-size: 1.3rem; transition: color 0.3s; }
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--primary); }
.bottom-nav-item .nav-badge {
    position: absolute;
    top: 6px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ─── Page Container (account for bottom nav) ─ */
.page-content { padding-bottom: 80px; }

/* ─── Customer Navbar ───────────────────────── */
.customer-topbar {
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
}
.topbar-location {
    display: flex; align-items: center; gap: 6px;
    color: #fff; font-size: 0.9rem; cursor: pointer;
}
.topbar-location .city { font-weight: 600; }
.topbar-location i { color: var(--primary); font-size: 1rem; }
.topbar-location .chevron { color: var(--light); font-size: 0.75rem; }
.topbar-avatar {
    width: 36px; height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

/* ─── Search Bar ────────────────────────────── */
.search-bar-wrap {
    padding: 12px 16px;
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
}
.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-group i {
    position: absolute;
    left: 14px;
    color: var(--light);
    font-size: 1rem;
}
.search-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 0;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(235,22,22,0.05);
}
.search-input::placeholder { color: var(--light); }

/* ─── Home Hero Banner (Owl Carousel) ─────── */
.home-banner .carousel-caption {
    background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
    top: auto;
    bottom: 0;
    left: 0;
    right: 30%;
    padding: 20px;
    text-align: left;
}
.home-banner .carousel-caption h5 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #fff;
}
.home-banner .carousel-caption p {
    color: var(--primary);
    font-size: 0.85rem;
    margin: 0;
}

/* ─── Section Headings ──────────────────────── */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px;
}
.section-heading h5 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
    margin: 0;
    font-size: 1rem;
}
.section-heading a {
    color: var(--primary);
    font-size: 0.82rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Category Pills ────────────────────────── */
.categories-scroll {
    overflow-x: auto;
    display: flex;
    gap: 10px;
    padding: 10px 16px 14px;
    scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.category-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    cursor: pointer;
    text-decoration: none;
}
.category-pill .pill-icon {
    width: 56px; height: 56px;
    background: var(--secondary);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    transition: all 0.3s;
    border-radius: 0;
}
.category-pill:hover .pill-icon,
.category-pill.active .pill-icon {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.category-pill .pill-label {
    font-size: 0.7rem;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}
.category-pill:hover .pill-label,
.category-pill.active .pill-label { color: var(--primary); }

/* ─── Shop / Barber Card ────────────────────── */
.shop-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    min-width: 220px;
}
.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(235,22,22,0.12);
    border-color: rgba(235,22,22,0.3);
}
.shop-card-img {
    position: relative;
    height: 130px;
    overflow: hidden;
}
.shop-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.shop-card:hover .shop-card-img img { transform: scale(1.05); }
.shop-card-img .badge-status {
    position: absolute; top: 8px; left: 8px;
    background: var(--success);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 8px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.shop-card-img .badge-status.closed { background: #555; }
.shop-card-img .badge-offer {
    position: absolute; top: 8px; right: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 8px;
    font-family: 'Oswald', sans-serif;
}
.shop-card-fav {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.6);
    border: none;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
    border-radius: 0;
}
.shop-card-fav.active { color: var(--primary); }
.shop-card-body { padding: 12px; }
.shop-card-name {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-card-category { font-size: 0.75rem; color: var(--primary); text-transform: uppercase; }
.shop-card-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.75rem; color: var(--light);
    margin-top: 6px;
}
.shop-card-meta .rating i { color: var(--primary); font-size: 0.7rem; }
.shop-card-meta .distance { margin-left: auto; }

/* Horizontal scroll row of cards */
.cards-scroll {
    display: flex;
    gap: 12px;
    padding: 4px 16px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.cards-scroll::-webkit-scrollbar { display: none; }

/* Grid layout for search results */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 16px;
}
@media (min-width: 576px) {
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
    .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Offer Card ────────────────────────────── */
.offer-card {
    background: linear-gradient(135deg, var(--primary), #8b0000);
    border-radius: 0;
    padding: 16px;
    min-width: 240px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}
.offer-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.offer-card .offer-percent {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    color: #fff;
    line-height: 1;
}
.offer-card .offer-label { font-size: 0.8rem; color: rgba(255,255,255,0.85); }
.offer-card .offer-shop  { font-size: 0.75rem; color: rgba(255,255,255,0.65); }
.offer-card .coupon-code {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 2px 10px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-top: 6px;
}

/* ─── Booking Flow ──────────────────────────── */
.booking-step-bar {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 4px;
}
.step-dot {
    flex: 1;
    height: 3px;
    background: var(--border);
    transition: background 0.4s;
}
.step-dot.done { background: var(--primary); }
.step-indicator {
    width: 28px; height: 28px;
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: var(--light);
    flex-shrink: 0;
    transition: all 0.4s;
}
.step-indicator.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(235,22,22,0.1);
}
.step-indicator.done {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ─── Service Select Cards ──────────────────── */
.service-select-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 8px;
}
.service-select-card:hover { border-color: var(--primary); }
.service-select-card.selected {
    border-color: var(--primary);
    background: rgba(235,22,22,0.07);
}
.service-check {
    width: 22px; height: 22px;
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}
.service-select-card.selected .service-check {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ─── Slot Picker ───────────────────────────── */
.slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
}
.slot-pill {
    padding: 8px 16px;
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--light);
    font-size: 0.85rem;
    font-family: 'Oswald', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0;
}
.slot-pill:hover { border-color: var(--primary); color: var(--primary); }
.slot-pill.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.slot-pill.booked { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

/* ─── Staff Cards ───────────────────────────── */
.staff-select-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.3s;
    margin-bottom: 8px;
}
.staff-select-card.selected { border-color: var(--primary); }
.staff-select-card img {
    width: 52px; height: 52px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}
.staff-select-card.selected img { border-color: var(--primary); }
.staff-name { font-family: 'Oswald', sans-serif; text-transform: uppercase; color: #fff; }
.staff-exp  { font-size: 0.75rem; color: var(--light); }

/* ─── Booking Summary ───────────────────────── */
.booking-summary-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    margin: 16px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--light); }
.summary-row .value { color: #fff; font-weight: 500; }
.summary-row.total .label,
.summary-row.total .value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--primary);
}

/* ─── My Bookings ───────────────────────────── */
.booking-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    margin: 8px 16px;
    padding: 16px;
    transition: border-color 0.3s;
}
.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.booking-id { font-size: 0.75rem; color: var(--light); font-family: monospace; }
.booking-shop-name {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: #fff;
    font-size: 1rem;
}
.booking-services { font-size: 0.82rem; color: var(--light); }
.booking-date-time {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.85rem; color: #ccc;
    margin: 8px 0;
}
.booking-date-time i { color: var(--primary); }
.booking-amount {
    font-family: 'Oswald', sans-serif;
    color: var(--primary);
    font-size: 1.1rem;
}
.booking-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-action {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 0;
}
.btn-action:hover, .btn-action.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-action.danger:hover {
    background: #8b0000;
    border-color: #8b0000;
    color: #fff;
}

/* ─── Rating Widget ─────────────────────────── */
.star-rating { display: flex; gap: 6px; }
.star-rating i {
    font-size: 1.6rem;
    color: var(--border);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.star-rating i.active, .star-rating i:hover { color: var(--primary); transform: scale(1.15); }

/* ─── AI Preview ────────────────────────────── */
.ai-preview-container {
    position: relative;
    background: #000;
    overflow: hidden;
    border: 1px solid var(--border);
}
.ai-preview-slider {
    cursor: ew-resize;
}
.ai-preview-label {
    position: absolute;
    top: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ai-preview-label.original { left: 12px; }
.ai-preview-label.result   { right: 12px; }

/* ─── Empty State ───────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}
.empty-state i { font-size: 3rem; color: var(--border); margin-bottom: 16px; }
.empty-state p { color: var(--light); margin: 0; }

/* ─── Animations ────────────────────────────── */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}
.shake { animation: shake 0.4s ease; }

/* ─── Utilities ─────────────────────────────── */
.text-primary { color: var(--primary) !important; }
.bg-card      { background: var(--card-bg); }
.border-red   { border-color: var(--primary) !important; }
.fw-500       { font-weight: 500; }
.font-oswald  { font-family: 'Oswald', sans-serif; }
