/* 
 * Greetham Music Ale & Cider Festival - Main Stylesheet
 * Color Scheme: White background with green accents (#2d5016)
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #14320a; /* richer, deeper green */
    --light-green: #3f8c2b;
    --dark-green: #0d2406;
    --white: #ffffff;
    --light-gray: #f7faf6;
    --medium-gray: #d9e6d0;
    --dark-gray: #1f2a23;
    --accent-gold: #caa43a; /* warmer gold */
    --accent-gold-2: #e4bb53;
    --error-red: #dc3545;
    --success-green: #28a745;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Event heading style */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-green);
}

/* Header */
.site-header {
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 0;
    box-shadow: 0 6px 24px rgba(8,20,6,0.35);
    border-bottom: 4px solid var(--accent-gold);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.site-logo .logo-link {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.site-logo .header-logo {
    height: 64px;
    width: auto;
    display: block;
    padding: 0.5rem 0;
}

.site-logo h1 {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 0.6px;
    font-weight: 700;
    white-space: nowrap;
}

.header-title-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0;
}

.site-tagline { font-style: italic; opacity: 0.95; }

.site-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.main-nav a:hover {
    background: var(--light-green);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-icons a {
    display: inline-flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.social-icons a:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-2px);
}

.social-icons svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.header-right { display: flex; align-items: center; gap: 1rem; }

.festival-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.festival-mark-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(241,245,235,0.96) 100%);
    border: 1px solid rgba(202,164,58,0.45);
    box-shadow: 0 10px 28px rgba(5, 18, 5, 0.2), inset 0 1px 0 rgba(255,255,255,0.75);
}

.festival-mark-image {
    display: block;
    width: auto;
    height: 70px;
    border-radius: 10px;
    opacity: 0.94;
    object-fit: contain;
}

@media (max-width: 768px) {
    .festival-mark-image {
        height: 54px;
    }
}

/* Inline navigation under title */
.header-title-nav .main-nav { margin: 0; }
.header-title-nav .main-nav ul { display: flex; gap: 0.15rem; list-style: none; padding-left: 0; margin: 0; flex-wrap: wrap; }
.header-title-nav .main-nav a { color: rgba(255,255,255,0.92); padding: 0.25rem 0.45rem; font-weight: 500; font-size: 0.82rem; border-radius: 4px; transition: background 0.2s; }
.header-title-nav .main-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-divider { color: rgba(255,255,255,0.3); list-style: none; user-select: none; font-size: 0.8rem; }

@media (max-width: 768px) {
    .social-icons { display: none; }
    .header-content { flex-direction: column; align-items: flex-start; }
    .site-logo { flex-direction: column; align-items: flex-start; padding: 0.75rem 0; }
    .site-logo h1 { font-size: 1.1rem; white-space: normal; }
    .header-title-nav .main-nav ul { flex-direction: column; gap: 0.15rem; margin-top: 0.3rem; }
    .site-logo .header-logo { height: 44px; }
    .header-right {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.6rem;
    }
    .festival-mark-frame {
        padding: 0.3rem;
        border-radius: 14px;
    }
    .festival-mark-image { height: 78px; }
    .admin-shortcuts {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.content-wrapper {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image:
        linear-gradient(135deg, rgba(20,50,10,0.88) 0%, rgba(38,90,24,0.85) 100%),
        url('https://images.unsplash.com/photo-1436076863939-06870fe779c2?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-content h2 {
    color: var(--accent-gold-2);
    font-size: 2.8rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-date {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--white);
    opacity: 0.95;
}

.hero-location {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Big CTA */
.btn-primary {
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-gold-2) 100%);
    color: var(--dark-green);
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
    box-shadow: 0 8px 20px rgba(20,50,10,0.2);
    border-radius: 8px;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

/* Landing hero card */
.landing-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfff9 100%);
    padding: 2.2rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(8,20,6,0.12);
    border: 2px solid rgba(20,50,10,0.04);
}

/* Countdown wrapper with flanking schedule */
.countdown-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.92);
    width: 100%;
    max-width: 360px;
}

.schedule-list li {
    padding: 0.55rem 0.9rem;
    margin-bottom: 0.45rem;
    background: rgba(255,255,255,0.07);
    border-radius: 6px;
    white-space: normal;
}

.schedule-list--left li {
    text-align: right;
    border-right: 3px solid var(--accent-gold);
    border-left: none;
}

.schedule-list--right li {
    text-align: left;
    border-left: 3px solid var(--accent-gold);
    border-right: none;
}

.schedule-time {
    display: block;
    font-weight: 800;
    color: var(--accent-gold);
    font-size: 1rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.15rem;
}

.schedule-event {
    display: block;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.1rem;
}

/* Countdown — primary / hero element */
.countdown {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 0;
    flex-shrink: 0;
    background: rgba(0,0,0,0.25);
    border: 2px solid var(--accent-gold);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 0 28px rgba(212,175,55,0.18);
}

.countdown-item {
    background: rgba(255,255,255,0.07);
    padding: 0.75rem 1.1rem;
    border-radius: 10px;
    min-width: 90px;
    text-align: center;
    border-bottom: 2px solid rgba(212,175,55,0.45);
}

.countdown-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.countdown-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-top: 0.35rem;
}

.countdown-ended {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* Directions Map & Panel */
.map-and-directions {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1rem;
    align-items: start;
}

.directions-map {
    width: 100%;
    height: 480px;
    border-radius: 8px;
    overflow: hidden;
}

.directions-panel {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.directions-panel h3 { margin-top: 0; color: var(--primary-green); }

.directions-panel .step { margin-bottom: 0.5rem; font-size: 0.95rem; }

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-nav {
    flex: 1;
    min-width: 180px;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-nav:hover {
    transform: translateY(-2px);
}

.directions-note { margin-top: 0.5rem; font-size: 0.9rem; color: #666; }

@media (max-width: 900px) {
    .map-and-directions { grid-template-columns: 1fr; }
    .directions-map { height: 360px; }
}

/* Directions error and geo button */
.error-msg {
    margin-top: 0.6rem;
    color: var(--error-red);
    font-weight: 600;
}

.btn-geo {
    min-width: 44px;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    background: var(--primary-green);
    color: #fff;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-geo:hover {
    background: var(--light-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.btn-geo:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.muted { color: #666; font-size: 0.9rem; }



/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--dark-green);
}

.btn-primary:hover {
    background: #c5a028;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
}

.btn-success {
    background: var(--success-green);
    color: var(--white);
}

.btn-danger {
    background: var(--error-red);
    color: var(--white);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* Banner Adverts */
.banner-section {
    margin: 2rem 0;
    padding: 2rem 0;
    background: var(--light-gray);
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.banner-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.banner-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.banner-item a {
    display: block;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-error {
    color: var(--error-red);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.form-success {
    color: var(--success-green);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Ticket Info Box */
.info-box {
    background: var(--light-gray);
    border-left: 4px solid var(--primary-green);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.info-box h3 {
    margin-top: 0;
}

.ticket-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.detail-card h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.detail-card .value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-gray);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.data-table th {
    background: var(--primary-green);
    color: var(--white);
    font-weight: 600;
}

.data-table tr:hover {
    background: var(--light-gray);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: #ffc107;
    color: #000;
}

.status-completed {
    background: var(--success-green);
    color: var(--white);
}

.status-failed {
    background: var(--error-red);
    color: var(--white);
}

.status-used {
    background: var(--medium-gray);
    color: var(--dark-gray);
}

.status-active {
    background: var(--success-green);
    color: var(--white);
}

/* QR Code Display */
.qr-display {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-display img {
    max-width: 300px;
    border: 3px solid var(--primary-green);
    border-radius: 8px;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.alert-success {
    background: #d4edda;
    border-left: 4px solid var(--success-green);
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-left: 4px solid var(--error-red);
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, var(--dark-green) 0%, rgba(7,30,10,0.95) 100%);
    color: var(--white);
    padding: 3rem 0 2rem 0;
    margin-top: 3rem;
    border-top: 6px solid var(--accent-gold);
}

/* Gallery Styles */
.subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(20, 50, 10, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(20, 50, 10, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1.25rem;
}

.gallery-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.gallery-caption p {
    color: var(--dark-gray);
    opacity: 0.8;
    margin: 0;
}

/* Festival Images Section */
.festival-images {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(20, 50, 10, 0.1);
}

.festival-images h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(20, 50, 10, 0.1);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: scale(1.05);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(20, 50, 10, 0.9), transparent);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-item:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.footer-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.footer-left h4, .footer-right h4 { color: var(--accent-gold-2); margin-bottom: 0.5rem; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.footer-links li { margin: 0; }
.footer-links a { color: rgba(255,255,255,0.95); }
.footer-links a:hover { color: var(--accent-gold); }

.footer-right { text-align: right; }
.footer-right .btn { display: inline-block; }

.footer-email {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-email:hover {
    color: #f5d06a !important;
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 1.5rem; padding-top: 1rem; text-align: center; opacity: 0.9; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-right { text-align: left; }
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-date {
        font-size: 1.2rem;
    }

    .countdown-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .countdown {
        padding: 1rem 1rem;
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 68px;
        padding: 0.6rem 0.75rem;
    }

    .countdown-value {
        font-size: 2.2rem;
    }

    .schedule-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        justify-content: center;
        min-width: unset;
        max-width: unset;
    }

    .schedule-list li {
        margin-bottom: 0;
        text-align: center !important;
    }

    .schedule-list--left li {
        border-right: none;
        border-bottom: 2px solid var(--accent-gold);
    }

    .schedule-list--right li {
        border-left: none;
        border-bottom: 2px solid var(--accent-gold);
    }

    .banner-grid {
        grid-template-columns: 1fr;
    }

    .ticket-details {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .container {
        padding: 1rem 15px;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .hero-section {
        min-height: 90vh; /* Slightly less on mobile for better UX */
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-green);
}

.modal-close {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-gray);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--error-red);
}

.modal-body {
    padding: 1.5rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden { display: none; }
.visible { display: block; }
