:root {
    --bg-dark: #0f111a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-1: #ec4899; /* Pink */
    --accent-2: #8b5cf6; /* Purple */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --card-hover: rgba(255, 255, 255, 0.05);
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Background animated blobs */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
    animation-direction: alternate-reverse;
}

.admin-blob {
    background: radial-gradient(circle, var(--success) 0%, transparent 70%);
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10%, 15%) scale(1.1); }
    66% { transform: translate(-10%, 5%) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
}

.admin-container {
    max-width: 1000px;
}

/* Typography styles */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

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

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.fancy-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--accent-1);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(236, 72, 153, 0.3);
}

.studio-address {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
}

.contact-info {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.contact-info a {
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--text-main);
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-panel:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

/* Date Selector */
.date-selector {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
}

.date-selector::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.date-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.date-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.date-btn.active {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.short-day {
    display: none;
}

@media (max-width: 600px) {
    .date-selector {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        overflow-x: visible;
        padding-bottom: 0.5rem;
    }
    .short-day {
        display: inline;
    }
    .long-day {
        display: none;
    }
    .date-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* Schedule Container */
.schedule-container {
    margin-top: 2rem;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.time-slot {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.time-slot.available {
    border-color: rgba(16, 185, 129, 0.3);
}

.time-slot.available:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    transform: scale(1.05);
}

.time-slot.booked {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.01);
    border-color: transparent;
}

.time-slot .time {
    font-size: 1.25rem;
    font-weight: 600;
}

.time-slot .status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.time-slot.available .status {
    color: var(--success);
}

.time-slot.booked .status {
    color: var(--danger);
}

.time-slot.selected {
    border: 2px solid #fbbf24; /* Yellow border */
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.1);
}
.time-slot.selected span {
    color: #fbbf24;
    font-weight: 700;
}

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

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

.form-group input, .form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: #57657a;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--accent-1);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}

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

/* Buttons */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

.submit-btn:active {
    transform: translateY(1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
    width: auto;
}

.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: var(--danger);
    color: white;
}

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

.text-center {
    text-align: center;
}

/* Booking specific */
.booking-panel {
    animation: slideUp 0.4s ease-out;
}

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

.selected-slot-info {
    font-size: 1.125rem;
    color: var(--accent-1);
    font-weight: 500;
}

/* Admin Table */
.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.schedule-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.schedule-table th, .schedule-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.schedule-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: white;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Loading */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-1);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

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

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.confirmed-datetime {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
}
.success-panel {
    text-align: center;
}

.reminders-list {
    margin-top: 2.5rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.reminders-list h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 600;
}

.reminders-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reminders-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.reminders-list li:last-child {
    margin-bottom: 0;
}

.reminders-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-1);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.error-msg {
    color: var(--danger);
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

/* =====================
   Photo Carousel
   ===================== */
.photo-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 2.5rem;
    border-radius: 20px;
    position: relative;

    /* Left & right fade-out edge masks */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

.carousel-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: carousel-scroll 45s linear infinite;
}

/* Pause on hover for a premium feel */
.photo-carousel-wrapper:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes carousel-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Move by exactly half (original set) */
}

.carousel-slide {
    flex-shrink: 0;
    width: 220px;
    height: 300px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .carousel-slide {
        width: 160px;
        height: 220px;
    }
}

/* Responsive */
@media (max-width: 640px) {
    h1 { font-size: 2.25rem; }
    .glass-panel { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
}
