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

:root {
    --bg: #ffffff;
    --text: #1a1a2e;
    --accent: #0077b6;
    --teal: #00b4d8;
    --green: #2ecc71;
    --red: #e74c3c;
    --gray: #e0e0e0;
    --light-bg: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.mobile-menu { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--accent), var(--teal));
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--accent);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* Sections */
section { padding: 5rem 2rem; }
section:nth-child(even) { background: var(--light-bg); }

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.service-card p { color: #666; font-size: 0.95rem; }

/* Booking */
.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Calendar */
.calendar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cal-header h3 { font-size: 1.1rem; }

.cal-nav {
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.2s;
}
.cal-nav:hover { background: var(--accent); color: white; }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day-label {
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #888;
    padding: 0.5rem 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s;
}

.cal-day.available {
    background: #e8f5e9;
    color: #2e7d32;
    cursor: pointer;
}
.cal-day.available:hover { background: var(--green); color: white; }

.cal-day.booked { background: #ffeaea; color: var(--red); }
.cal-day.past { color: #ccc; }
.cal-day.selected { background: var(--accent) !important; color: white !important; }
.cal-day.today { border: 2px solid var(--accent); }
.cal-day.empty { visibility: hidden; }

/* Form */
.booking-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.booking-form h3 { margin-bottom: 1.5rem; font-size: 1.3rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,119,182,0.3); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-msg {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}
.form-msg.success { display: block; background: #e8f5e9; color: #2e7d32; }
.form-msg.error { display: block; background: #ffeaea; color: var(--red); }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.contact-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.contact-card h3 { margin-bottom: 0.5rem; }
.contact-card p { color: #666; }
.contact-card a { color: var(--accent); text-decoration: none; }

/* Footer */
.footer {
    background: var(--text);
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}
.footer a { color: var(--teal); text-decoration: none; }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--gray);
        gap: 1rem;
    }
    .mobile-menu { display: block; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .booking-container { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    section { padding: 3rem 1rem; }
    .header { padding: 1rem; }
}

/* Admin Styles */
.admin-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.admin-login {
    max-width: 400px;
    margin: 4rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.admin-login h2 { margin-bottom: 1.5rem; text-align: center; }

.admin-login input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.admin-login button {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-error { color: var(--red); text-align: center; margin-bottom: 1rem; }

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h2 { font-size: 1.5rem; }

.btn-sm {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-sm:hover { opacity: 0.8; }
.btn-blue { background: var(--accent); color: white; }
.btn-green { background: var(--green); color: white; }
.btn-red { background: var(--red); color: white; }
.btn-gray { background: #aaa; color: white; }

.admin-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
}

.admin-section h3 { margin-bottom: 1rem; }

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.bookings-table th,
.bookings-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

.bookings-table th { font-weight: 600; color: #666; font-size: 0.8rem; text-transform: uppercase; }

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d4edda; color: #155724; }
.status-completed { background: #d1ecf1; color: #0c5460; }

.block-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.block-form input {
    padding: 0.5rem;
    border: 2px solid var(--gray);
    border-radius: 6px;
    font-size: 0.9rem;
}

.blocked-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.blocked-tag {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #ffeaea;
    color: var(--red);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}
.blocked-tag button {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .bookings-table { font-size: 0.8rem; }
    .bookings-table th, .bookings-table td { padding: 0.5rem 0.3rem; }
}
