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

:root {
    /* Health-forward palette */
    --primary: #0f766e;
    --primary-dark: #134e4a;
    --primary-light: #ccfbf1;
    --accent: #f97316;
    --accent-glow: rgba(249, 115, 22, 0.35);

    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;

    /* Base Colors */
    --bg-dark: #f7fbfa;
    --bg-card: #ffffff;
    --surface-2: #eef6f4;
    --text-main: #0b1b1a;
    --text-muted: #4b5b59;
    --border: #d5e3df;
    --gray: #64706e;
    --light-gray: #e6efec;
    --dark: #0a1513;

    /* Effects */
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(15, 118, 110, 0.12);
    --shadow: 0 12px 30px rgba(8, 46, 43, 0.12);
    --shadow-glow: 0 18px 45px rgba(15, 118, 110, 0.25);

    --radius: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(20, 184, 166, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.18) 0%, transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(249, 115, 22, 0.12) 0%, transparent 40%);
}

/* --- Header --- */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tabs-wrapper {
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--surface-2);
    padding: 6px;
    border-radius: 14px;
    width: fit-content;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: rgba(15, 118, 110, 0.08);
}

.tab-btn.active {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(8, 46, 43, 0.12);
}

.tab-btn span {
    font-size: 16px;
}

/* Mobile friendly */
@media (max-width: 480px) {
    .tabs {
        width: 100%;
        justify-content: space-between;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 13px;
    }
}

.section-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.section-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0f766e);
    transform: translateY(-1px);
}

/* Tests grid */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* Mobile polish */
@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        width: 100%;
    }
}

/* Container */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Row */
.user-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--light-gray);

    /* 🔑 critical */
    width: 100%;
    box-sizing: border-box;
}

/* Left side */
.user-left {
    display: flex;
    flex-direction: column;
    gap: 4px;

    /* 🔑 allow shrinking */
    min-width: 0;
}

.user-left strong {
    font-size: 14px;
    color: #111;
}

.user-left span {
    font-size: 13px;
    color: #666;

    /* 🔑 break long emails */
    word-break: break-all;
}

/* Right side */
.user-right {
    font-size: 14px;
    font-weight: 600;
    color: #111;

    /* 🔑 prevent clipping */
    white-space: nowrap;
}

/* Mobile fix */
@media (max-width: 480px) {
    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .user-left {
        width: 100%;
    }

    .user-left span {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .user-right {
        margin-top: 0;
        width: 100%;
        white-space: normal;
        word-break: break-all;
    }
}

/* Table responsive fixes */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 100%;
        font-size: 14px;
    }

    th,
    td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }

    /* Make cards stack better on mobile */
    .section-card {
        padding: 16px;
        border-radius: 12px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    /* Prevent horizontal overflow */
    .container {
        padding: 0 1rem;
    }

    body {
        overflow-x: hidden;
    }
}

/* --- Booking Cards --- */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: box-shadow 0.2s ease;
}

.booking-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.booking-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.booking-email {
    margin: 4px 0 0;
    font-size: 13px;
    color: #666;
    word-break: break-word;
}

.booking-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.booking-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #111;
    font-weight: 600;
    word-break: break-word;
}

.booking-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.status-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.status-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.status-select:focus {
    outline: none;
    border-color: #4f46e5;
}

.status-select:hover {
    border-color: #d1d5db;
}

/* Mobile optimization for booking cards */
@media (max-width: 600px) {
    .booking-details {
        grid-template-columns: 1fr;
    }

    .booking-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Admin Sidebar Layout --- */
.admin-layout {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
    background: var(--bg-dark);
}

.admin-sidebar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.sidebar-header {
    padding: 0 20px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.sidebar-subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    color: #666;
}

.sidebar-nav {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar-nav::-webkit-scrollbar {
    height: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 100px;
    flex-shrink: 0;
}

.sidebar-item:hover {
    background: #f3f4f6;
}

.sidebar-item.active {
    background: #4f46e5;
    color: #ffffff;
}

.sidebar-item.active .sidebar-text {
    color: #ffffff;
    font-weight: 600;
}

.sidebar-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.sidebar-text {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
}

.sidebar-item.active .sidebar-text {
    color: #ffffff;
}

.admin-main {
    flex: 1;
    overflow-x: hidden;
}




.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    letter-spacing: -0.02em;
    font-family: 'Fraunces', serif;
}

.logo span {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    padding: 8rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    min-height: auto;
    background: radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.18), transparent 70%);
}

.hero-split {
    padding: 2.8rem 2rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 85vh;
    text-align: left;
    background: none;
    max-width: 1400px;
    /* Wider container */
    margin: 0 auto;
}

.hero-content {
    order: 1;
}

.hero-image {
    order: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 800px;
    /* Allow bigger image */
    height: auto;
    border-radius: 24px;
    filter: drop-shadow(0 30px 50px rgba(8, 46, 43, 0.18));
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 4.6rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #0f766e 45%, #0ea5a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-split h1 {
    font-size: 5.1rem;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-split p {
    margin-left: 0;
    margin-right: 0;
    max-width: 540px;
}

.hero-cta {
    display: none;
    margin-bottom: 1.5rem;
}

.mobile-only {
    display: none !important;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-split .hero-buttons {
    justify-content: flex-start;
}

/* --- Page Hero --- */
.page-hero {
    padding: 4.5rem 0 3rem;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.08) 0%, rgba(247, 251, 250, 0) 100%);
}

.page-hero-content {
    max-width: 720px;
}

.page-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.page-hero p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about-hero {
    padding: 5rem 0 4rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.2), transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.18), transparent 40%),
        linear-gradient(180deg, rgba(15, 118, 110, 0.1) 0%, rgba(247, 251, 250, 0) 70%);
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.about-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 3.6rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.about-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.about-highlight {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 22px 40px rgba(8, 46, 43, 0.14);
}

.about-highlight h3 {
    margin-bottom: 0.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.about-stat {
    background: var(--surface-2);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    border: 1px solid var(--light-gray);
}

.about-stat strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.4rem;
}

.about-stat span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .about-hero-content {
        grid-template-columns: 1fr;
    }

    .about-hero h1 {
        font-size: 2.6rem;
    }
}

/* --- About Page --- */
.about-story {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.story-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(8, 46, 43, 0.12);
}

.story-card h2 {
    margin-bottom: 1rem;
}

.story-card p {
    margin-bottom: 1rem;
}

.story-accent {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(15, 118, 110, 0.15);
    border-radius: 24px;
    padding: 2rem;
    display: grid;
    gap: 1rem;
}

.accent-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.15);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2.5rem 0 4rem;
}

.trust-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 12px 24px rgba(8, 46, 43, 0.08);
}

.trust-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.trust-card span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.8rem;
    border: 1px solid var(--border);
    box-shadow: 0 12px 26px rgba(8, 46, 43, 0.08);
}

.value-card h3 {
    margin-bottom: 0.6rem;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
    margin: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), rgba(15, 118, 110, 0.1));
}

.timeline-item {
    position: relative;
    padding: 0.5rem 0 1.8rem 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.1rem;
    top: 0.75rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.15);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.team-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.6rem;
    text-align: center;
    box-shadow: 0 14px 26px rgba(8, 46, 43, 0.08);
}

.avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: radial-gradient(circle at 30% 30%, rgba(20, 184, 166, 0.2), rgba(15, 118, 110, 0.1));
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--primary-dark);
}

@media (max-width: 900px) {
    .about-story {
        grid-template-columns: 1fr;
    }

    .trust-strip,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(15, 118, 110, 0.2);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.metric {
    background: var(--surface-2);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--light-gray);
}

.metric strong {
    display: block;
    font-size: 1.3rem;
    color: var(--dark);
}

.metric span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.25);
}

.nav-links .btn {
    color: #ffffff !important;
    /* Specific fix for navbar */
    padding: 0.8rem 1.5rem;
    /* Ensure proper sizing */
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary-dark);
    border: 1px solid rgba(15, 118, 110, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: rgba(15, 118, 110, 0.3);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    color: white;
}

/* --- Cards --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading p {
    margin-bottom: 0;
    max-width: 680px;
}

.cta-panel {
    background: linear-gradient(135deg, #ffffff 0%, #e8f7f3 100%);
    border: 1px solid rgba(15, 118, 110, 0.12);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: 0 24px 45px rgba(8, 46, 43, 0.12);
}

.feature-icon {
    background: rgba(20, 184, 166, 0.12);
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2.2rem;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding-left: 3rem;
    border-radius: 999px;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    color: var(--gray);
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(15, 118, 110, 0.12);
    padding: 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: var(--shadow-glow);
}

h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- Stats & Grids --- */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* --- Stats Grid & Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 10px;
}

.stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(8, 46, 43, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(8, 46, 43, 0.16);
}

.stat-left p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-left h3 {
    margin: 6px 0 0;
    font-size: 30px;
    font-weight: 700;
    color: var(--text-main);
}

.stat-icon {
    font-size: 34px;
    opacity: 0.9;
}

/* Accent colors */
.stat-card.users {
    border-left: 5px solid var(--primary);
}

.stat-card.bookings {
    border-left: 5px solid #10b981;
}

.stat-card.pending {
    border-left: 5px solid #f59e0b;
}

.stat-card.reports {
    border-left: 5px solid #f97316;
}

/* --- Forms --- */
/* --- Forms --- */
input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16);
}

label {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Tables --- */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

th {
    background: var(--surface-2);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 1.5rem;
    text-align: left;
}

td {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-main);
}

tr:hover {
    background: rgba(15, 118, 110, 0.08);
}

/* --- Badges --- */
.badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-confirmed {
    background: rgba(14, 116, 144, 0.18);
    color: #0f766e;
    border: 1px solid rgba(14, 116, 144, 0.35);
}

.badge-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-cancelled {
    background: rgba(220, 38, 38, 0.18);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.35);
}

/* --- Animations --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    /* Add white background to separate footer */
    margin-top: 4rem;
}

/* --- Mobile --- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
        margin: 0 auto;
    }

    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 2.4rem;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
        text-align: center;
        padding: 3rem 1.5rem 4rem;
    }

    .hero-split .hero-buttons {
        justify-content: center;
    }

    .hero-split .hero-content {
        order: 2;
    }

    .hero-split .hero-image {
        order: 1;
    }

    .hero-split h1 {
        font-size: 3.1rem;
    }

    .hero-split p {
        margin-left: auto;
        margin-right: auto;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .nav-links span,
    .nav-links button {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1,
    .hero-split h1 {
        font-size: 2.5rem;
    }

    .hero-split {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem 3.5rem;
        gap: 3rem;
    }

    .hero-image {
        order: 1;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-image img {
        max-width: 260px;
    }

    .hero-content {
        order: 2;
        margin: 0 auto;
        text-align: center;
    }

    .hero-split .hero-buttons {
        justify-content: center;
    }

    .hero-cta {
        display: inline-flex !important;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 1.5rem;
    }

    .mobile-only {
        display: inline-flex !important;
    }

    .hero-split .hero-buttons {
        display: none;
    }

    .hero-cta {
        margin-top: 1.2rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .stat-left h3 {
        font-size: 26px;
    }
}

/* --- Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--border);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.close-modal {
    background: rgba(255, 255, 255, 0.966);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Tabs --- */
.tab-btn {
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0.25rem;
    cursor: pointer;
    transition: var(--transition);
}

/* --- Contact Page Styles --- */
.contact-row {
    display: flex;
    align-items: center;
    /* Ensure vertical centering */
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-card {
    border-radius: 22px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(8, 46, 43, 0.12);
}

.contact-meta {
    display: grid;
    gap: 1rem;
}

.contact-meta .card {
    box-shadow: none;
    border: 1px dashed rgba(15, 118, 110, 0.2);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pill {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
}

.service-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.highlight-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.6rem;
    border: 1px solid var(--border);
    box-shadow: 0 14px 28px rgba(8, 46, 43, 0.1);
}

.highlight-card h3 {
    margin-bottom: 0.6rem;
}

.login-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .service-highlights {
        grid-template-columns: 1fr;
    }
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(15, 118, 110, 0.12);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    /* Prevent squishing */
}

/* Ensure global flex utility aligns items */
.flex {
    display: flex;
    align-items: center;
}

.tab-btn.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
    background: rgba(15, 118, 110, 0.1);
    font-weight: 600;
}

/* Mobile adjustments for About Page text cards */
@media (max-width: 600px) {
    .stat-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .stat-card h3 {
        margin-bottom: 0;
    }
}

/* Optimize Mobile Padding */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 6rem 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    /* Hero Buttons Mobile Stack */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 14px 0;
        font-size: 1rem;
    }
}
