@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
    /* CHA Brand – thechacompany.com yellow (primary) */
    --cha-yellow: #FFC107;
    --cha-yellow-light: #FFD54F;
    --cha-yellow-dark: #FFB300;

    /* CHA Pink – thechacompany.com (secondary accent, use sparingly) */
    --cha-pink: #D73189;
    --cha-pink-light: #E85CA6;
    --cha-pink-dark: #B02670;

    /* Teal – thechacompany style */
    --teal: #0d9488;
    --teal-light: #14b8a6;
    --teal-dark: #0f766e;

    /* Body & text – black, beige background */
    --text-dark: #000000;
    --text-light: #000000;
    --bg-beige: #F5F0E6;
    --bg-light: #FAF6F0;
    --white: #ffffff;

    /* Status (functional only) */
    --success: #51cf66;
    --warning: #ff9800;
    --danger: #f44336;

    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-beige);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Container */
.container {
    max-width: 700px;
    margin: 40px auto;
    background: var(--white);
    padding: 0;
    border-radius: 24px;
    box-shadow: 0 20px 60px var(--shadow-lg);
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.login-container {
    max-width: 450px;
}

/* Header – CHA yellow background, black text */
header {
    background: linear-gradient(135deg, var(--cha-yellow-dark) 0%, var(--cha-yellow) 50%, var(--cha-yellow-light) 100%);
    padding: 24px 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: pulse 4s infinite;
}

header .header-logo {
    display: block;
    margin: 0 auto 12px;
    max-width: 180px;
    height: auto;
    position: relative;
    z-index: 1;
}

header h1 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

header .header-tagline {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

header .header-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 2px;
}

header .header-menu-link:hover {
    opacity: 0.85;
}

/* Homepage header – tighter spacing (index only) */
.container:not(.login-container) header {
    padding: 18px 40px 14px;
}

.container:not(.login-container) header .header-logo {
    margin-bottom: 8px;
    max-width: 150px;
}

.container:not(.login-container) header h1 {
    margin-bottom: 6px;
}

.container:not(.login-container) header .header-tagline {
    margin-bottom: 6px;
}

/* Form Container */
form {
    padding: 40px;
}

/* Form Groups */
.form-group {
    margin-bottom: 28px;
    animation: slideInRight 0.5s ease;
}

/* Remove default blue focus outline site-wide; CHA yellow focus set per context */
input:focus,
select:focus {
    outline: none;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cha-yellow);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cha-yellow);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.25);
    transform: translateY(-2px);
}

/* Attendee Items */
.attendee-item {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 16px;
    border: 2px solid var(--cha-yellow);
    transition: all 0.3s ease;
    animation: slideInRight 0.4s ease;
}

.attendee-item:hover {
    border-color: var(--cha-yellow-dark);
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(-4px);
}

.attendee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cha-yellow);
}

.attendee-header span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
    letter-spacing: 0.5px;
}

.attendee-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.attendee-fields input,
.attendee-fields select {
    padding: 12px 14px;
    border: 2px solid var(--cha-yellow);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.attendee-fields input:focus,
.attendee-fields select:focus {
    outline: none;
    border-color: var(--cha-yellow);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
    background: var(--white);
}

/* Section headings – CHA yellow */
h3, h4 {
    color: var(--text-dark);
}

/* Buttons - teal primary */
.btn-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.4);
}

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

.btn-primary:disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secondary buttons – CHA pink accent (sparingly) */
.btn-secondary {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--cha-pink-light) 0%, var(--cha-pink) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(215, 49, 137, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(215, 49, 137, 0.35);
}

.btn-remove {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

/* Pricing Summary */
.pricing-summary {
    background: linear-gradient(135deg, #fffef8 0%, #fffbf5 100%);
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
    border: 2px solid var(--cha-yellow);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
    animation: fadeInUp 0.6s ease;
}

.pricing-summary h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-summary h3::before {
    content: '💰';
    font-size: 24px;
}

#pricingBreakdown {
    margin-bottom: 20px;
}

#pricingBreakdown div {
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 193, 7, 0.25);
}

.total-amount {
    padding-top: 20px;
    border-top: 3px solid var(--cha-yellow);
    font-size: 22px;
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
    animation: pulse 2s infinite;
}

/* Pricing Info – CHA yellow & pink */
.pricing-info {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 20%, #f0fdfa 100%);
    padding: 18px;
    border-radius: 16px;
    margin: 30px 40px 40px;
    border: 2px solid var(--cha-yellow);
    animation: fadeInUp 0.8s ease;
    text-align: center;
}

.pricing-info h4 {
    margin-bottom: 14px;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pricing-info h4::before {
    content: none;
}

.pricing-info ul.pricing-lines {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    text-align: center;
}

.pricing-info ul.pricing-lines li {
    padding: 6px 0;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.pricing-info ul.pricing-lines li::before {
    content: none;
}

.pricing-info .pricing-contact {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.pricing-info .ramadan-greeting {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--cha-yellow);
    margin: 0;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: baseline;
    gap: 0.35em;
}

.pricing-info .ramadan-moon {
    font-size: 1em;
    line-height: 1;
    color: var(--cha-yellow);
    transform: rotate(-27deg) scale(1.07, 0.93);
}

/* Success/Error Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 60px 40px;
    animation: fadeInUp 0.6s ease;
}

.success-message h1 {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 1s ease;
}

.error-message h1 {
    font-size: 80px;
    margin-bottom: 20px;
    color: var(--cha-yellow);
}

.success-message h2,
.error-message h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.success-message p,
.error-message p {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.8;
}

#reservationDetails {
    margin-top: 40px;
    text-align: left;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    border: 2px solid var(--teal);
}

#reservationDetails h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 22px;
}

/* Admin Styles – CHA yellow header, black text, beige page */
.admin-header {
    background: linear-gradient(135deg, var(--cha-yellow-dark) 0%, var(--cha-yellow) 50%, var(--cha-yellow-light) 100%);
    padding: 20px 40px;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 24px 0;
    border-radius: 0;
}

.admin-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.admin-header h2 {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 2px;
}

.admin-header p {
    margin-top: 10px;
    color: var(--text-dark);
    opacity: 0.95;
}

.btn-logout {
    padding: 12px 24px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4);
}

.dashboard-container {
    max-width: 1400px;
}

.filters {
    margin: 30px 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filters select,
.filters input[type="text"] {
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid var(--cha-yellow);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.filters select:focus,
.filters input[type="text"]:focus {
    outline: none;
    border-color: var(--cha-yellow);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.25);
}

.table-wrapper {
    overflow-x: auto;
    margin: 0 40px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
}

.reservations-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    overflow: hidden;
}

.reservations-table th {
    background: linear-gradient(135deg, var(--cha-yellow-dark) 0%, var(--cha-yellow) 100%);
    color: var(--text-dark);
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reservations-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
    color: var(--text-dark);
}

.reservations-table tr {
    transition: all 0.3s ease;
}

.reservations-table tr:hover {
    background: var(--bg-light);
    transform: scale(1.01);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(55, 178, 77, 0.3);
}

.status-pending {
    background: linear-gradient(135deg, var(--cha-yellow-light) 0%, var(--cha-yellow) 100%);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--cha-yellow);
}

.attendees-cell {
    font-size: 13px;
    max-width: 250px;
}

.attendees-list {
    margin: 8px 0;
}

.attendees-list div {
    padding: 4px 0;
    color: var(--text-dark);
}

/* Override inline styles on other pages – CHA yellow/pink, black headings */
.dashboard-container h3,
#settingsModal h2,
#blockDateModal h2 {
    color: var(--text-dark) !important;
}

#settingsModal label,
#blockDateModal label {
    color: var(--text-dark) !important;
}

#maxGuestsInput,
#blockSingleDate {
    border: 2px solid var(--cha-yellow) !important;
}

#maxGuestsInput:focus,
#blockSingleDate:focus {
    border-color: var(--cha-yellow) !important;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.25) !important;
}

/* Error Message */
#errorMessage {
    background: linear-gradient(135deg, #ffe0e0 0%, #ffeded 100%);
    color: #c92a2a;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #ffa8a8;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        margin: 20px;
        border-radius: 20px;
    }

    header {
        padding: 20px 24px 18px;
    }

    .container:not(.login-container) header {
        padding: 16px 24px 12px;
    }

    header .header-logo {
        max-width: 140px;
        margin-bottom: 10px;
    }

    .container:not(.login-container) header .header-logo {
        margin-bottom: 8px;
        max-width: 115px;
    }

    header h1 {
        font-size: 22px;
    }

    header .header-tagline {
        font-size: 14px;
    }

    form {
        padding: 30px 20px;
    }

    .attendee-fields {
        grid-template-columns: 1fr;
    }

    .pricing-info {
        margin: 20px 20px 30px;
    }

    .admin-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .filters {
        margin: 20px;
        flex-direction: column;
    }

    .filters select {
        width: 100%;
    }

    .table-wrapper {
        margin: 0 20px 30px;
    }

    .reservations-table {
        font-size: 12px;
    }

    .reservations-table th,
    .reservations-table td {
        padding: 12px 8px;
    }

    .btn-primary {
        font-size: 16px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    header .header-logo {
        max-width: 120px;
    }

    .container:not(.login-container) header .header-logo {
        max-width: 100px;
    }

    header h1 {
        font-size: 20px;
    }

    header .header-tagline {
        font-size: 13px;
    }

    .container {
        margin: 10px;
    }

    form {
        padding: 20px 15px;
    }

    .total-amount {
        font-size: 20px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

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