:root {
    --primary: #00f2ff;
    --bg: #111;
    --seat-free: #444451;
    --seat-sold: #faf6f6;
}

body { background: var(--bg); color: white; font-family: 'Segoe UI', sans-serif; text-align: center; margin: 0; }
.container { padding: 40px; }
.hidden { display: none !important; }

/* Lobby */
.movie-list { display: flex; gap: 20px; justify-content: center; margin-top: 50px; }
.card { background: #222; padding: 25px; border: 2px solid #444; border-radius: 12px; cursor: pointer; transition: 0.3s; }
.card:hover { border-color: var(--primary); transform: translateY(-5px); }

/* Theater Layout - Centered */
#theater {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 80vh;
}

.screen-bar {
    background: white; height: 50px; width: 100%; max-width: 500px;
    margin: 10px auto 40px auto; transform: rotateX(-45deg);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.4);
    color: #333; line-height: 50px; font-weight: bold;
}

/* Seats */
.grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; max-width: 450px; margin: 0 auto; }
.seat { height: 25px; width: 32px; background: var(--seat-free); border-radius: 6px 6px 0 0; cursor: pointer; transition: 0.2s; font-size: 9px; line-height: 25px; }
.seat.selected { background-color: var(--primary); box-shadow: 0 0 10px var(--primary); }
.seat.occupied { background-color: var(--seat-sold); cursor: not-allowed; opacity: 0.3; }

/* Horizontal Legend Fix */
.legend {
    display: flex; flex-direction: row; justify-content: center; gap: 25px;
    margin: 30px auto; padding: 10px 20px; list-style: none;
    background: rgba(255,255,255,0.05); border-radius: 50px;
}
.legend .item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #888; }
.legend .seat { width: 20px; height: 18px; cursor: default; }

/* Admin & Buttons */
.admin-controls { position: absolute; top: 30px; right: 30px; }

.confirm-btn { background: var(--primary); border: none; padding: 18px 50px; border-radius: 40px; font-weight: bold; cursor: pointer; font-size: 1.1rem; margin-top: 25px; }

/* Admin Reset Button Styling */
.reset-btn {
    background: #222;
    border: 1px solid #444;
    color: #888;
    padding: 8px 16px;
    font-size: 11px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transition for all properties */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* THE HOVER EFFECT */
.reset-btn:hover {
    color: #fff;
    background: #333;
    border-color: #e92c0b; /* Professional orange alert color */
    box-shadow: 0 0 12px rgba(255, 159, 67, 0.4); /* Subtle glow */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Active state (when clicked) */
.reset-btn:active {
    transform: translateY(0); /* Pushes back down when clicked */
    box-shadow: 0 0 5px rgba(255, 159, 67, 0.2);
}
.back-btn { background: none; border: 1px solid #444; color: #888; padding: 8px 20px; cursor: pointer; margin-bottom: 20px; border-radius: 5px; }

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: flex; justify-content: center; align-items: center; }
.modal-content { background: white; color: black; padding: 30px; border-radius: 10px; width: 320px; text-align: left; }
.close-btn { width: 100%; margin-top: 20px; padding: 10px; cursor: pointer; background: #333; color: white; border: none; border-radius: 5px; }