/* =============================================
   La Clave del Marketing - Booking System
   Design System & Styles
   ============================================= */

:root {
    /* Brand Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #0ea5e9;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #dbeafe 100%);
    min-height: 100vh;
    color: var(--gray-900);
    line-height: 1.5;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary);
}

.logo {
    display: flex;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.logo-la {
    color: var(--gray-900);
}

.logo-marketing {
    color: var(--primary);
}

.admin-btn {
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all var(--transition-base);
}

.admin-btn:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1.5rem;
}

/* Steps */
.step {
    display: none;
    width: 100%;
    max-width: 900px;
    animation: fadeIn var(--transition-slow);
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.step-header p {
    color: var(--gray-500);
    font-size: 1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Service Card */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(37, 99, 235, 0.05) 50%);
    pointer-events: none;
}

.service-duration {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.service-platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.service-platform svg {
    color: var(--primary);
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.service-price-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.service-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.service-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Booking Container */
.booking-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 280px 1fr 200px;
    overflow: hidden;
}

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

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--gray-500);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    transition: all var(--transition-base);
}

.back-btn:hover {
    color: var(--gray-700);
    background: var(--gray-100);
}

/* Service Summary */
.service-summary {
    padding: 1.5rem;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .service-summary {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
}

.summary-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.summary-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.meta-item svg {
    color: var(--gray-400);
}

.summary-price {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.price-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Calendar Section */
.calendar-section {
    padding: 1.5rem;
    border-right: 1px solid var(--gray-200);
}

@media (max-width: 900px) {
    .calendar-section {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
}

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

.calendar-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all var(--transition-base);
}

.nav-btn:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.5rem;
}

.weekdays span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    padding: 0.5rem;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.day:hover:not(.disabled):not(.selected) {
    background: var(--gray-100);
}

.day.today {
    font-weight: 600;
    color: var(--primary);
}

.day.selected {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.day.disabled {
    color: var(--gray-300);
    cursor: not-allowed;
}

.day.available {
    border-color: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

/* Time Section */
.time-section {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.time-header {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 1rem;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.time-slot {
    background: var(--white);
    border: 2px solid var(--gray-200);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.time-slot:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

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

.time-slot.unavailable {
    color: var(--gray-400);
    border-color: var(--gray-200);
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Form Container */
.form-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

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

.step-indicator {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.form-container>h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

/* Booking Summary */
.booking-summary {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.summary-label {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.summary-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.summary-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.summary-icon {
    background: rgba(37, 99, 235, 0.1);
    padding: 0.75rem;
    border-radius: var(--radius);
    color: var(--primary);
}

/* Form */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.required {
    color: var(--error);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    background: var(--gray-900);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Confirmation */
.confirmation-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--success);
}

.confirmation-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.confirmation-message {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.confirmation-details {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.detail-value {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
}

.new-booking-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.new-booking-btn:hover {
    background: var(--primary-dark);
}

/* Social Proof Toast */
.social-proof {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 350px;
    animation: slideIn var(--transition-slow);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: all var(--transition-slow);
}

.social-proof.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.proof-icon {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.proof-content {
    flex: 1;
}

.proof-text {
    font-size: 0.875rem;
    color: var(--gray-900);
    line-height: 1.4;
}

.proof-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.proof-close {
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer a {
    color: var(--gray-500);
    text-decoration: none;
    margin-left: 1rem;
    transition: color var(--transition-base);
}

.footer a:hover {
    color: var(--primary);
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   Admin Panel Styles
   ============================================= */

.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.admin-overlay.show {
    opacity: 1;
    visibility: visible;
}

.admin-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.admin-panel.show {
    transform: translateX(0);
}

.admin-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.admin-close {
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.admin-section {
    margin-bottom: 2rem;
}

.admin-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Service List in Admin */
.admin-service-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-service-item {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-service-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.admin-service-info p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.admin-service-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.admin-btn-edit {
    background: var(--gray-200);
    color: var(--gray-700);
}

.admin-btn-edit:hover {
    background: var(--gray-300);
}

.admin-btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.admin-btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

.admin-btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
}

.admin-btn-primary:hover {
    background: var(--primary-dark);
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.toggle.active {
    background: var(--success);
}

.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.toggle.active::after {
    left: 25px;
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Calendar Sync Status */
.calendar-status {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-400);
}

.status-indicator.connected {
    background: var(--success);
}

.status-indicator.disconnected {
    background: var(--error);
}

.calendar-status-info {
    flex: 1;
}

.calendar-status-info p {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
}

.calendar-status-info span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .step-header h1 {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 1.5rem;
    }
}

/* =============================================
   Admin Dashboard Styles
   ============================================= */

.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: fadeIn var(--transition-base);
}

.admin-dashboard {
    background: var(--gray-50);
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    overflow: hidden;
    position: relative;
    animation: slideUp var(--transition-base);
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 60px;
        padding: 1rem 0.5rem;
    }

    .admin-brand span,
    .admin-nav-item span {
        display: none;
    }

    .admin-brand {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .admin-nav-item {
        justify-content: center;
        padding: 0.75rem;
    }
}

.admin-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-600);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.admin-nav-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.admin-nav-item.active {
    background: var(--primary);
    color: var(--white);
}

.admin-logout {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* Content Area */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-topbar {
    background: var(--white);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0.5rem 0;
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Tables */
.admin-table-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--gray-50);
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 600;
    border-bottom: 1px solid var(--gray-200);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-size: 0.875rem;
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-confirmed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.status-completed {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Schedule Manager */
.schedule-grid {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
}

.schedule-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.schedule-day {
    width: 120px;
    font-weight: 600;
    font-size: 0.9rem;
}

.schedule-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
}

.time-input {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
}

/* Blocked Days Calendar */
.blocked-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.blocked-day {
    aspect-ratio: 1;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.blocked-day.is-blocked {
    background: var(--error);
    color: var(--white);
    border-color: var(--error);
}

.blocked-day:hover:not(.is-blocked) {
    background: var(--gray-50);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: var(--gray-50);
}

.modal-detail-row {
    display: flex;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.modal-detail-label {
    font-weight: 600;
    width: 140px;
    color: var(--gray-600);
    flex-shrink: 0;
}

.modal-detail-value {
    color: var(--gray-900);
    flex-grow: 1;
    word-break: break-word;
}

.meet-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #00796b;
    /* Teal specific for Meet */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
}

.meet-link-btn:hover {
    background: #00695c;
}