@font-face {
    font-family: 'Holiday';
    src: url('fonts/HolidayFree.otf') format('opentype');
}

:root {
    --bg-color: #FFF5EE;
    /* Seashell (Peach-ish White) */
    --card-bg: #FFFFFF;
    --text-color: #4A4A4A;
    --accent-color: #E9967A;
    /* DarkSalmon (Match couch tone) */
    --reserved-color: #A9A9A9;
    /* DarkGrey */
    --available-color: #FFDAB9;
    /* PeachPuff */
    --font-serif: 'Cormorant Garamond', serif;
    --font-script: 'Great Vibes', cursive;
    --font-holiday: 'Holiday', cursive;
}

.font-holiday {
    font-family: var(--font-holiday);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: var(--font-script);
    color: #4a4a4a;
    font-weight: 400;
}

h1 {
    font-size: 3.5rem;
}

.container {
    max-width: 1200px;
    width: 95%;
    margin: 2rem auto;
    text-align: center;
}

header {
    margin-bottom: 2rem;
}

header h1 {
    margin-bottom: 0.2rem;
}

header p {
    font-style: italic;
    letter-spacing: 1px;
    margin-top: 0;
}

/* --- Seat Grid --- */
.stage-container {
    margin: 0 auto 2rem;
    text-align: center;
}

.stage-image {
    max-width: 100%;
    width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(233, 150, 122, 0.2);
}

.seat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto 2rem;
    justify-content: center;
}

@media (min-width: 600px) {
    .seat-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

.seat {
    width: 32px;
    height: 32px;
    background-color: var(--available-color);
    border-radius: 50%;
    cursor: default;
    transition: all 0.3s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #4a4a4a;
    font-family: var(--font-serif);
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.seat.reserved {
    background-color: var(--reserved-color);
    color: white;
    border: none;
}

.seat.available {
    cursor: pointer;
}

.seat.available:hover {
    transform: scale(1.1);
    background-color: #f7c5a8;
    /* Slightly darker PeachPuff */
    box-shadow: 0 0 10px rgba(233, 150, 122, 0.5);
    /* Glowing effect */
}

.legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.btn {
    background-color: transparent;
    color: #4a4a4a;
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

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

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 1px;
}

.btn-approve {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-approve:hover {
    background-color: var(--accent-color);
    color: white;
}

.btn-decline {
    border-color: var(--reserved-color);
    color: var(--reserved-color);
}

.btn-decline:hover {
    background-color: var(--reserved-color);
    color: white;
}

.badge-primary {
    background-color: var(--accent-color);
    color: white;
}

.badge-secondary {
    background-color: var(--reserved-color);
    color: white;
}

.alert-message {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    margin: auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: left;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: bold;
    font-size: 0.9rem;
}

input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

/* --- Admin --- */
.login-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ccc;
}

.badge {
    background-color: var(--accent-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    vertical-align: super;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f8f8;
    font-weight: bold;
}

/* Fix Badge Cascade */
.badge-secondary {
    background-color: var(--reserved-color);
}
/* Slideshow Animation */
.fade {
  animation-name: fade;
  animation-duration: 2s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}
