:root {
    /* Colors */
    --c-white: #ffffff;
    --c-bg: #fafafa;
    --c-bg-subtle: #f4f5f7;
    --c-pink-primary: #ec4899; /* Vibrant web pink */
    --c-pink-light: #fdf2f8;
    --c-pink-hover: #db2777;
    --c-text-main: #111827;
    --c-text-muted: #6b7280;
    --c-border: #e5e7eb;
    --c-danger: #ef4444;
    --c-danger-bg: #fef2f2;
    --c-success: #10b981;
    --c-success-bg: #ecfdf5;

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-pink: 0 10px 25px -5px rgba(236, 72, 153, 0.3);
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--c-bg);
    color: var(--c-text-main);
    line-height: 1.5;
}

/* --- Layouts --- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.branding-side {
    flex: 1;
    background: linear-gradient(135deg, var(--c-pink-light) 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 4rem;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--c-border);
}

.decorative-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, rgba(255,255,255,0) 70%);
    top: -100px;
    left: -100px;
    border-radius: 50%;
    z-index: 0;
}

.brand-content {
    position: relative;
    z-index: 10;
    max-width: 480px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 4rem;
}

.logo span {
    color: var(--c-pink-primary);
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--c-text-main);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--c-text-muted);
    font-weight: 400;
}

.admin-link-wrapper {
    position: relative;
    z-index: 10;
}

.admin-link {
    color: var(--c-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.admin-link:hover {
    color: var(--c-pink-primary);
}

.booking-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--c-white);
}

.booking-container {
    width: 100%;
    max-width: 440px;
}

/* --- UI Elements --- */
.step-indicator {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 1rem;
}

.step {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text-muted);
    transition: var(--transition);
}

.step.active {
    color: var(--c-pink-primary);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text-main);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="tel"],
input[type="date"],
select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--c-text-main);
    background-color: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    appearance: none;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--c-pink-primary);
    box-shadow: 0 0 0 4px var(--c-pink-light);
}

.date-input-wrapper {
    position: relative;
}

.calendar-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-text-muted);
    pointer-events: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: "▼";
    font-size: 0.7rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-text-muted);
    pointer-events: none;
}

/* Time Grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.time-slot {
    padding: 0.875rem 0;
    text-align: center;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--c-white);
}

.time-slot:hover:not(.disabled) {
    border-color: var(--c-pink-primary);
    color: var(--c-pink-primary);
}

.time-slot.selected {
    background: var(--c-pink-primary);
    border-color: var(--c-pink-primary);
    color: var(--c-white);
    box-shadow: var(--shadow-pink);
}

.time-slot.disabled {
    background: var(--c-bg-subtle);
    color: var(--c-text-muted);
    text-decoration: line-through;
    cursor: not-allowed;
    border-color: transparent;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: var(--c-pink-primary);
    color: var(--c-white);
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-primary:not(:disabled):hover {
    background: var(--c-pink-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-pink);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--c-text-muted);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 2rem;
    padding: 0;
    transition: var(--transition);
}

.btn-ghost:hover {
    color: var(--c-text-main);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text-main);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn-outline:hover {
    border-color: var(--c-pink-primary);
    color: var(--c-pink-primary);
}

/* Utilities */
.hidden { display: none !important; }

/* --- Custom Calendar --- */
.calendar-wrapper {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.calendar-header button {
    background: none;
    border: 1px solid var(--c-border);
    cursor: pointer;
    font-size: 1rem;
    color: var(--c-text-muted);
    transition: var(--transition);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}
.calendar-header button:hover {
    background: var(--c-bg-subtle);
    color: var(--c-text-main);
    border-color: var(--c-text-muted);
}
#current-month-year, #admin-month-year {
    font-weight: 600;
    color: var(--c-text-main);
    text-transform: capitalize;
}
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c-text-muted);
    margin-bottom: 0.5rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}
.calendar-cell {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
    color: var(--c-text-main);
    font-weight: 500;
}
.calendar-cell:hover:not(.empty):not(.disabled) {
    background: var(--c-pink-light);
    color: var(--c-pink-primary);
}
.calendar-cell.selected {
    background: var(--c-pink-primary);
    color: var(--c-white);
    box-shadow: var(--shadow-pink);
    font-weight: 600;
}
.calendar-cell.empty {
    cursor: default;
}
.calendar-cell.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

/* Success */
.success-view {
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--c-success-bg);
    color: var(--c-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.success-view h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.success-view p {
    color: var(--c-text-muted);
    margin-bottom: 2rem;
}


/* ==================================
   Admin Dashboard Layout
   ================================== */

.admin-body {
    background-color: var(--c-bg-subtle);
}

.admin-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.admin-sidebar {
    width: 260px;
    background: var(--c-white);
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 1.5rem 1.5rem 2.5rem;
}
.sidebar-brand .logo {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.sidebar-nav {
    flex: 1;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--c-text-muted);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    background: var(--c-pink-light);
    color: var(--c-pink-primary);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--c-border);
}
.back-link {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    text-decoration: none;
}
.back-link:hover { color: var(--c-text-main); }

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.admin-header {
    background: var(--c-white);
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.date-picker-clean {
    border: 1px solid var(--c-border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    background: var(--c-bg-subtle);
}

.admin-content {
    padding: 2.5rem;
    max-width: 1200px;
}

/* Cards */
.card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--c-border);
}
.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--c-text-muted); }
.text-dark { color: var(--c-text-main); }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.mt-2 { margin-top: 1rem; }
.w-full { width: 100%; }

/* Tables */
.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    background: #fafafa;
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-muted);
    border-bottom: 1px solid var(--c-border);
}

.modern-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
}

.modern-table tr:last-child td { border-bottom: none; }

.modern-table tbody tr {
    transition: var(--transition);
}
.modern-table tbody tr:hover {
    background: #fdfdfd;
}

.time-cell {
    color: var(--c-pink-primary);
}

.row-blocked {
    background-color: #fcfcfc;
}
.row-blocked td {
    opacity: 0.8;
}

.flex-align {
    display: flex;
    align-items: center;
}
.mr-2 { margin-right: 0.5rem; }

/* Badges */
.badge {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-success {
    background: var(--c-success-bg);
    color: var(--c-success);
}

.badge-blocked {
    background: var(--c-bg-subtle);
    color: var(--c-text-muted);
    border: 1px solid var(--c-border);
}

/* Buttons admin */
.btn-icon {
    background: none;
    border: none;
    color: var(--c-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.btn-icon:hover {
    background: var(--c-bg-subtle);
    color: var(--c-text-main);
}
.btn-icon.danger:hover {
    background: var(--c-danger-bg);
    color: var(--c-danger);
}

.btn-danger {
    background: var(--c-danger);
    color: var(--c-white);
    padding: 0.875rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-danger:hover {
    background: #dc2626;
}

.btn-ghost-danger {
    background: none;
    border: none;
    color: var(--c-danger);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-ghost-danger:hover { text-decoration: underline; }

/* Complex layouts */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modern-form.compact {
    padding: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}
.w-50 { width: 50%; }

.blocked-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blocked-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: var(--c-white);
    box-shadow: var(--shadow-sm);
}

.blocked-info .time {
    font-weight: 600;
    color: var(--c-text-main);
}
.blocked-info .note {
    font-size: 0.875rem;
    color: var(--c-text-muted);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--c-text-muted);
    font-style: italic;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .app-layout { flex-direction: column; }
    .branding-side { padding: 3rem 2rem; border-right: none; border-bottom: 1px solid var(--c-border); }
    .booking-side { padding: 2rem; }
    .hero-title { font-size: 3rem; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--c-border); }
    .sidebar-nav { flex-direction: row; overflow-x: auto; padding-bottom: 1rem; }
    .grid-2-cols { grid-template-columns: 1fr; }
}
