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

:root {
    --bg-color: #F8FAFC; /* Cool off-white */
    --surface-color: rgba(255, 255, 255, 0.9);
    --surface-solid: #ffffff;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --primary: #00BFFF; /* Deep Sky Blue matching logo */
    --primary-hover: #0099CC;
    --secondary: #1E293B; /* Dark slate */
    --secondary-hover: #334155;
    --border-color: rgba(0, 0, 0, 0.06);
    
    --shadow-sm: 0 4px 15px rgba(0, 191, 255, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 191, 255, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 191, 255, 0.12); /* Cool blue shadow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    /* Very subtle cool gradient blobs in background */
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 191, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(0, 191, 255, 0.04) 0%, transparent 40%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header & Nav */
header {
    background-color: transparent;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }
    .nav-links {
        gap: 1rem;
        width: 100%;
        justify-content: center;
    }
    h1 { font-size: 2.5rem; }
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    width: 100%;
}

.container-sm {
    max-width: 500px;
    margin: 0 auto;
    padding: 6rem 2rem;
    width: 100%;
}

/* Cards & Surfaces */
.card {
    background: var(--surface-solid);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(0, 191, 255, 0.3);
}

.card-sm {
    padding: 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}

h1 { font-size: 4rem; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

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

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

p.lead {
    font-size: 1.125rem;
    max-width: 500px;
    line-height: 1.7;
    border-left: 2px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    font-family: inherit;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white !important;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-block {
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    background-color: #F8FAFC;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--surface-solid);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

/* Checkbox specific */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Utilities */
.grid { display: grid; gap: 2rem; }
.grid-cols-2, .grid-cols-3, .footer-grid { grid-template-columns: 1fr; }

/* Hero Section */
.hero-section {
    padding: 10rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-title {
    font-size: 5.5rem;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 1.35rem;
    color: #475569;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 1.5rem 3rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (min-width: 768px) {
    .grid-cols-2 { grid-template-columns: 1fr 1fr; align-items: center; }
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.overflow-x-auto {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}
.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}
.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Slot grid */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.75rem;
}

.slot-btn {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 0.5rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.slot-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: #F0F9FF;
}

.slot-btn.selected {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.3);
}

/* Dashboard specific */
.dashboard-code-box {
    background: #F0F9FF;
    border: 1px dashed rgba(0, 191, 255, 0.3);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

.dashboard-code {
    font-size: 4rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), #00F0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    z-index: -1;
    font-size: 2.5rem;
    opacity: 0.8;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
    user-select: none;
    pointer-events: none;
}

/* Custom Calendar */
.custom-calendar-container {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.cal-nav {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}
.cal-nav:hover {
    background: #F8FAFC;
    color: var(--text-main);
}
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--text-main);
}
.cal-day:hover:not(.disabled) {
    background: #F0F9FF;
    color: var(--primary);
}
.cal-day.selected {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 191, 255, 0.3);
}
.cal-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    background: transparent;
}
.cal-day.empty {
    cursor: default;
    background: transparent;
}

/* Availability Indicators */
.cal-day.has-slots {
    position: relative;
    font-weight: 700;
}
.cal-day.has-slots::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
}
.cal-day.has-slots.selected::after {
    background-color: #fff;
}

/* Weekly Calendar (Dashboard Setup) */
.weekly-calendar {
    display: grid;
    grid-template-columns: 70px repeat(7, 1fr);
    background: #fff;
    gap: 8px;
    padding: 1rem 0;
}
.wc-header {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: 1px;
}
.wc-header.time-col {
    background: #fff;
}
.wc-time-label {
    text-align: right;
    padding-right: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transform: translateY(-50%); /* Align with the top of the row conceptually */
}
.wc-cell {
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #F1F5F9;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wc-cell:hover {
    background: #E2E8F0;
    transform: scale(0.97);
}
.wc-cell.selected {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.25);
    transform: scale(1.02);
}

/* Premium Time Selector for Guests */
.time-slot-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.time-slot-list::-webkit-scrollbar {
    width: 6px;
}
.time-slot-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 99px;
}

.time-slot-btn {
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.time-slot-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--primary);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 0;
}

.time-slot-btn span {
    position: relative;
    z-index: 1;
}

.time-slot-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.time-slot-btn.selected {
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 191, 255, 0.3);
}

.time-slot-btn.selected::before {
    opacity: 1;
    transform: scaleX(1);
}