/* ============================================================
   88bookings — Main Stylesheet
   Elegant, understated, professional design
   ============================================================ */

:root {
    /* Brand Colors */
    --color-primary: #1a1a2e;
    --color-primary-light: #16213e;
    --color-accent: #c9a96e;
    --color-accent-light: #d4b87c;
    --color-accent-dark: #b8944f;

    /* Neutrals */
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-border: #e8e8e8;
    --color-text: #2d2d2d;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;

    /* Status */
    --color-success: #059669;
    --color-warning: #d97706;
    --color-danger: #dc2626;
    --color-info: #2563eb;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 5rem;
}

/* ---- Base ---- */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: 0.95rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

h1, .h1 { font-size: 2.75rem; }
h2, .h2 { font-size: 2.25rem; }
h3, .h3 { font-size: 1.75rem; }

a {
    color: var(--color-accent-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--color-primary);
}

/* ---- Brand ---- */
.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}
.brand-accent {
    color: var(--color-accent);
}

/* ---- Navbar ---- */
.navbar {
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}
.navbar .nav-link {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}
.navbar .nav-link:hover {
    color: var(--color-primary);
}

/* ---- Avatar Placeholder ---- */
.avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ---- Buttons ---- */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.btn-primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.15);
}

.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.btn-accent:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.btn-outline-primary {
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 500;
    border-radius: 6px;
}
.btn-outline-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ---- Cards ---- */
.card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--color-surface);
}
.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}
.card-body {
    padding: 1.5rem;
}

/* ---- Hero Section ---- */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}
.hero .lead {
    font-size: 1.2rem;
    opacity: 0.85;
    font-weight: 300;
    max-width: 600px;
}
.hero .accent-text {
    color: var(--color-accent);
}

/* ---- Section Styling ---- */
.section {
    padding: var(--section-padding) 0;
}
.section-title {
    margin-bottom: 0.75rem;
}
.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ---- Parlour Card ---- */
.parlour-card .card-img-top {
    height: 200px;
    object-fit: cover;
}
.parlour-card .parlour-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
}
.parlour-card .parlour-location {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

/* ---- Masseuse Card ---- */
.masseuse-card {
    text-align: center;
}
.masseuse-card .masseuse-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--color-border);
}
.masseuse-card .masseuse-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
    font-family: var(--font-heading);
}

/* ---- Rating Stars ---- */
.stars {
    color: var(--color-accent);
    font-size: 0.9rem;
}
.stars .bi-star-fill { color: var(--color-accent); }
.stars .bi-star { color: var(--color-border); }

/* ---- Badge ---- */
.badge-verified {
    background-color: var(--color-success);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
.badge-featured {
    background-color: var(--color-accent);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
.badge-pending {
    background-color: var(--color-warning);
    color: white;
}

/* ---- Status Badges ---- */
.status-pending { background-color: #fef3c7; color: #92400e; }
.status-approved { background-color: #d1fae5; color: #065f46; }
.status-confirmed { background-color: #dbeafe; color: #1e40af; }
.status-denied { background-color: #fee2e2; color: #991b1b; }
.status-completed { background-color: #e0e7ff; color: #3730a3; }
.status-cancelled_customer,
.status-cancelled_parlour { background-color: #f3f4f6; color: #4b5563; }

/* ---- Search Bar ---- */
.search-bar {
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    max-width: 700px;
}
.search-bar input {
    border: none;
    outline: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    flex: 1;
    background: transparent;
}
.search-bar .btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
}

/* ---- Dashboard ---- */
.dashboard-card {
    border-left: 4px solid var(--color-accent);
}
.stat-card {
    text-align: center;
    padding: 1.5rem;
}
.stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}
.stat-card .stat-label {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Body Map ---- */
.body-map-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    user-select: none;
}
.body-map-container img.body-map-svg {
    width: 100%;
    height: auto;
    cursor: crosshair;
    pointer-events: all;
}
.body-map-pin {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    border: 2.5px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 10;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.body-map-pin:hover {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 20;
}
.body-map-pin.focus { background-color: #22c55e; }
.body-map-pin.tender { background-color: #3b82f6; }
.body-map-pin.old_injury { background-color: #eab308; }
.body-map-pin.pain { background-color: #7c3aed; }
.body-map-pin.injury { background-color: #f97316; }
.body-map-pin.avoid { background-color: #ef4444; }
.body-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    font-size: 0.8rem;
}
.body-map-legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    vertical-align: middle;
    margin-right: 4px;
}
.body-map-side-btn.active {
    background-color: var(--color-primary) !important;
    color: white !important;
    border-color: var(--color-primary) !important;
}

/* ---- Visibility Toggle ---- */
.visibility-toggle {
    display: flex;
    align-items: center;
}
.visibility-toggle-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    padding: 0;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.visibility-toggle-btn:hover {
    transform: scale(1.1);
}
.visibility-toggle-btn.btn-primary {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.visibility-toggle-btn.btn-outline-secondary {
    opacity: 0.5;
}
.visibility-toggle-btn.btn-outline-secondary:hover {
    opacity: 1;
}

/* ---- SU Banner ---- */
.su-banner {
    background: var(--color-warning);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---- Form Styling ---- */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 110, 0.15);
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text);
}

/* ---- Favourite Heart ---- */
.favourite-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}
.favourite-btn:hover,
.favourite-btn.active {
    color: #ef4444;
    transform: scale(1.1);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .hero { padding: 4rem 0; }
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    .section { padding: 3rem 0; }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* ---- Superadmin Dashboard ---- */
.superadmin-sidebar {
    background: var(--color-primary);
    min-height: 100vh;
    padding: 2rem 1rem;
}
.superadmin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.superadmin-sidebar .nav-link:hover,
.superadmin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ---- Loyalty Cards ---- */
.loyalty-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.loyalty-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.loyalty-card--reward {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}
.loyalty-card--completed {
    opacity: 0.65;
}
.loyalty-card-reward-banner {
    background: #22c55e;
    color: white;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 0;
    margin: -1rem -1rem 0.75rem -1rem;
    animation: loyalty-flash 1.5s ease-in-out infinite;
}
.loyalty-card-expired-banner {
    background: #f59e0b;
    color: white;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 0;
    margin: -1rem -1rem 0.75rem -1rem;
}
@keyframes loyalty-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.loyalty-card-info {
    flex: 0 0 45%;
    padding-right: 0.75rem;
    border-right: 1px dashed #ced4da;
}
.loyalty-card-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}
.loyalty-card-logo-placeholder {
    width: 40px;
    height: 40px;
    background: #dee2e6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
.loyalty-card-shop-name {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.loyalty-card-detail {
    font-size: 0.65rem;
    color: #6c757d;
    line-height: 1.3;
}
.loyalty-card-detail i {
    width: 12px;
    display: inline-block;
    text-align: center;
}
.loyalty-card-program-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
}
.loyalty-card-circles {
    flex: 1;
    padding-left: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.loyalty-card-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.loyalty-card-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #adb5bd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: transparent;
    transition: all 0.2s ease;
    overflow: hidden;
}
.loyalty-card-circle.filled {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}
.loyalty-card-circle.reward-circle {
    border-color: #f59e0b;
    color: #f59e0b;
}
.loyalty-card-circle.reward-circle.filled {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}
.loyalty-card-progress-text {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 4px;
    text-align: center;
}
.loyalty-card-reward-desc {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #ced4da;
    text-align: center;
}
.loyalty-badge-flash {
    animation: loyalty-flash 1.5s ease-in-out infinite;
}

/* ---- Therapist Profile Card ---- */
.therapist-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.therapist-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.therapist-card-photo {
    width: 160px;
    min-height: 180px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.therapist-card-img {
    width: 160px;
    height: 100%;
    object-fit: cover;
}
.therapist-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
    font-size: 3.5rem;
}
.therapist-card-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.therapist-card-row {
    display: flex;
    align-items: flex-start;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.therapist-card-row:last-child {
    border-bottom: none;
}
.therapist-card-label {
    width: 130px;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.therapist-card-value {
    flex: 1;
    font-size: 0.9rem;
    color: var(--color-text);
}
.therapist-card-hidden {
    opacity: 0.45;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(0,0,0,0.02) 4px,
        rgba(0,0,0,0.02) 8px
    );
    border-radius: 4px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.therapist-card-hidden .therapist-card-label {
    color: #94a3b8;
}
@media (max-width: 575.98px) {
    .therapist-card-photo {
        width: 100%;
        height: 200px;
        min-height: auto;
    }
    .therapist-card-img {
        width: 100%;
        height: 200px;
    }
}
