/* ============================================================
   The 19 Studio — Global Design System
   Clean, professional, production-ready
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
    --primary: #3B82F6; /* Smooth Professional Blue */
    --primary-dark: #2563EB; 
    --primary-light: #EFF6FF;
    --accent: #60A5FA;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    --men-blue: #3B82F6;
    --women-pink: #EC4899;

    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    --white: #FFFFFF;
    --dark: #1E293B;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Legacy aliases kept for compatibility */
    --primary-color: #3B82F6;
    --secondary-color: #2563EB;
    --success-color: #22C55E;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --light-gray: #F1F5F9;
    --dark-gray: #0F172A;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: #F8FAFC;
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--gray-800);
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    background: transparent;
}

@media (min-width: 768px) {
    .container {
        max-width: 680px;
    }
}

/* ── Site Header ── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    margin-bottom: 8px;
}

.site-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.site-logo span {
    color: var(--gray-800);
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ── Cards ── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--gray-100);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card:active {
    transform: scale(0.995);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    min-height: 48px;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.2s;
}

.btn:hover::after {
    background: rgba(255, 255, 255, 0.1);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.82rem;
    min-height: 36px;
    border-radius: var(--radius-sm);
    width: auto;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

/* ── Booking Steps ── */
.booking-step {
    padding: 8px 0 24px;
}

/* ── Slot Grid ── */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

.slot-grid::-webkit-scrollbar {
    width: 4px;
}

.slot-grid::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

/* ── Badges & Tags ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-men {
    background: #DBEAFE;
    color: #1D4ED8;
}

.badge-women {
    background: #FCE7F3;
    color: #BE185D;
}

.badge-unisex {
    background: #F3E8FF;
    color: #7E22CE;
}

/* ── Status Colours ── */
.status-waiting {
    background: #FEF9C3;
    color: #854D0E;
}

.status-in-service {
    background: #DCFCE7;
    color: #166534;
}

.status-completed {
    background: #F0FDF4;
    color: #15803D;
}

.status-cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

/* ── Utilities ── */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-500);
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.mt-1 {
    margin-top: 6px;
}

.mt-2 {
    margin-top: 12px;
}

.mt-3 {
    margin-top: 20px;
}

.mt-4 {
    margin-top: 28px;
}

.mt-5 {
    margin-top: 40px;
}

.mb-1 {
    margin-bottom: 6px;
}

.mb-2 {
    margin-bottom: 12px;
}

.mb-3 {
    margin-bottom: 20px;
}

.mb-4 {
    margin-bottom: 28px;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.gap-2 {
    gap: 12px;
}

.gap-3 {
    gap: 16px;
}

/* ── Floating Action Buttons ── */
.floating-btns {
    position: fixed;
    bottom: 24px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.float-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.float-btn:active {
    transform: scale(0.93);
}

.bg-whatsapp {
    background-color: #25D366;
}

.bg-phone {
    background-color: var(--primary);
}

/* ── Contact Page ── */
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.map-container {
    width: 100%;
    height: 240px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Divider ── */
.divider {
    height: 1px;
    background: var(--gray-100);
    margin: 20px 0;
}

/* ── Error / Success inline ── */
.error-text {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.success-text {
    color: var(--success);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

/* ── Admin overrides ── */
.admin-container {
    max-width: 1200px !important;
}

/* ── Skeleton Loaders ── */
@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-text.short {
    width: 50%;
}

.skeleton-text.title {
    height: 20px;
    width: 70%;
    margin-bottom: 12px;
}

.skeleton-card {
    border: 2px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px;
    background: white;
    margin-bottom: 10px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.skeleton-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
}


/* ── Responsive tweaks ── */
@media (max-width: 480px) {
    .btn {
        font-size: 0.9rem;
        padding: 13px 18px;
    }

    .card {
        padding: 16px;
        border-radius: var(--radius-md);
    }
}

/* Make Bootstrap modal backdrop work better */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

/* ── Social Media Icons ── */
.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.social-icon.facebook { color: #1877F2; }
.social-icon.instagram { color: #E4405F; }
.social-icon.tiktok { color: #000000; }
.social-icon.youtube { color: #FF0000; }

@media (max-width: 480px) {
    .footer-social-links {
        gap: 16px;
    }
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }
}

/* ── Sliding Banner ── */
.sliding-banner-container {
    width: 100%;
    background: var(--gray-800);
    color: var(--white);
    overflow: hidden;
    position: relative;
    height: 40px;
    display: none; /* Hidden by default, shown via JS if messages exist */
    align-items: center;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    z-index: 5;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.1);
}

.sliding-message {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    font-size: 0.85rem;
    font-weight: 700;
    left: 100%;
    padding: 0 20px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FBBF24; /* Amber/Gold for premium feel */
}

.sliding-message i {
    color: var(--white);
    font-size: 0.75rem;
}