/* Serenity Flow Yoga - Styles */

:root {
    --cream: #F7F5F0;
    --sage: #5E7C73;
    --sage-dark: #4A635C;
    --gold: #C9A66B;
    --terracotta: #8B5A3C;
    --charcoal: #2C2C2C;
    --white: #FFFFFF;
    --shadow: rgba(0,0,0,0.06);
    --radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    background: rgba(247, 245, 240, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(94,124,115,0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--sage);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.logo svg { stroke: var(--sage); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.nav-links a:hover { color: var(--sage); }

.btn-nav {
    background: var(--sage);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 24px;
    transition: background 0.2s, transform 0.2s;
}

.btn-nav:hover { background: var(--sage-dark) !important; transform: translateY(-1px); }

/* Hero */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8E4DB 0%, #D4CFC4 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235E7C73' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(94,124,115,0.15) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 400;
    color: var(--sage-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--charcoal);
    opacity: 0.85;
    max-width: 560px;
    margin: 0 auto 32px;
}

.btn-primary {
    display: inline-block;
    background: var(--sage);
    color: var(--white);
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 32px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(94,124,115,0.25);
}

.btn-primary:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(94,124,115,0.35);
}

.btn-block { width: 100%; text-align: center; }

/* Sections */
.section { padding: 80px 0; }
.light { background: var(--cream); }

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 48px;
    color: var(--sage-dark);
    font-weight: 400;
}

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

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px var(--shadow);
    transition: transform 0.2s;
}

.feature:hover { transform: translateY(-4px); }

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(94,124,115,0.08);
    border-radius: 50%;
    color: var(--sage);
}

.feature h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--sage-dark);
}

.feature p { color: var(--charcoal); opacity: 0.8; font-size: 0.95rem; }

/* Classes */
.classes-section { background: #EDEAE3; }

.class-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.class-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px var(--shadow);
    border-top: 3px solid var(--sage);
}

.class-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--sage-dark);
}

.class-card p { font-size: 0.92rem; opacity: 0.85; margin-bottom: 14px; }

.tag {
    display: inline-block;
    background: rgba(201,166,107,0.15);
    color: var(--terracotta);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    margin-bottom: 12px;
    font-weight: 400;
}

.cta-section p { opacity: 0.9; margin-bottom: 28px; }

.cta-section .btn-primary {
    background: var(--white);
    color: var(--sage-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cta-section .btn-primary:hover {
    background: var(--cream);
    color: var(--sage-dark);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #E8E4DB 0%, #D4CFC4 100%);
    padding: 60px 0 50px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    color: var(--sage-dark);
    margin-bottom: 8px;
}

.page-header p { color: var(--charcoal); opacity: 0.75; }

/* Forms */
.narrow { max-width: 560px; }

.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 24px var(--shadow);
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #E0DDD6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--charcoal);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(94,124,115,0.1);
}

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

/* Success */
.success-card {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 24px var(--shadow);
    margin-top: -30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(94,124,115,0.08);
    border-radius: 50%;
    color: var(--sage);
}

.success-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--sage-dark);
}

.success-card p { color: var(--charcoal); opacity: 0.8; margin-bottom: 28px; }

/* Flash */
.flash-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 200;
    max-width: 360px;
}

.flash {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.flash-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid #4CAF50; }
.flash-danger { background: #FFEBEE; color: #C62828; border-left: 4px solid #EF5350; }

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Admin */
.admin-login-section { padding-top: 120px; min-height: 60vh; }

.admin-header {
    background: var(--charcoal);
    color: var(--white);
    padding: 24px 0;
}

.admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-bar h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    padding: 8px 20px;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 24px;
    font-size: 0.9rem;
    transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 2px 12px var(--shadow);
    border-bottom: 3px solid var(--sage);
}

.stat-waiting { border-bottom-color: var(--gold); }
.stat-confirmed { border-bottom-color: #4CAF50; }
.stat-cancelled { border-bottom-color: #EF5350; }

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--sage-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--charcoal);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px var(--shadow);
    padding: 28px;
    overflow: hidden;
}

.table-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--sage-dark);
}

.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th {
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
    color: var(--sage-dark);
    border-bottom: 2px solid #E0DDD6;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #F0EDE6;
    vertical-align: middle;
}

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

.status-waiting { background: rgba(201,166,107,0.04); }
.status-confirmed { background: rgba(76,175,80,0.04); }
.status-cancelled { background: rgba(239,83,80,0.04); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-waiting { background: rgba(201,166,107,0.15); color: var(--terracotta); }
.badge-confirmed { background: rgba(76,175,80,0.15); color: #2E7D32; }
.badge-cancelled { background: rgba(239,83,80,0.1); color: #C62828; }

.cell-message {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.inline-form { display: inline; }

.inline-form select {
    padding: 6px 10px;
    border: 1.5px solid #E0DDD6;
    border-radius: 6px;
    font-size: 0.82rem;
    background: var(--white);
    cursor: pointer;
}

.btn-icon {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    transition: color 0.2s;
}

.btn-icon:hover { color: #C62828; }

/* Footer */
.footer {
    margin-top: auto;
    background: #EDEAE3;
    padding: 32px 0;
    text-align: center;
    font-size: 0.88rem;
    color: var(--charcoal);
    opacity: 0.7;
}

.footer-links { margin-top: 8px; }
.footer-links a { color: var(--sage-dark); text-decoration: none; margin: 0 6px; }
.footer-links a:hover { text-decoration: underline; }

/* Utilities */
.text-muted { opacity: 0.7; }

/* Responsive */
@media (max-width: 640px) {
    .hero h1 { font-size: 2.6rem; }
    .section { padding: 56px 0; }
    .form-card { padding: 28px; }
    .nav-links a:not(.btn-nav) { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
