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

:root {
    --bg-start: #667eea;
    --bg-end: #764ba2;
    --primary: #667eea;
    --primary-strong: #5a6fe0;
    --muted: #6b7280;
    --card-bg: #ffffff;
    --card-border: #e9ecef;
    --card-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Info page specific overrides */
body.info-page {
    min-height: auto;
    padding-bottom: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    color: white;
    text-align: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.header-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.header-title-row h1 {
    margin: 0;
}

.info-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.2s ease-in-out;
}

.info-chip:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
    text-shadow: 0 1px 1px rgba(0,0,0,0.12);
}
.hero-wave { line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: auto; }
.hero-wave path { fill: #ffffff; }

.master-floating-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.master-floating-button button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.master-floating-button button:hover {
    background: rgba(102, 126, 234, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.master-floating-button button.master-mode {
    background: rgba(255, 107, 107, 0.9) !important;
    animation: pulse 2s infinite;
}

.master-floating-button button.master-mode:hover {
    background: rgba(255, 107, 107, 1) !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    }
}

#masterPassword {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#masterPassword input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}

#masterPassword input:focus {
    outline: none;
    border-color: #667eea;
}

#masterPassword button {
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    width: auto;
    height: auto;
}

#masterPassword button:hover {
    background: #218838;
    transform: none;
    box-shadow: none;
}

.master-mode {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
}

.master-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.master-controls button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.3s;
}

.confirm-btn {
    background: #28a745;
    color: white;
}

.confirm-btn:hover {
    background: #218838;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

.confirmed-reservation {
    border-left: 4px solid #28a745 !important;
    background: #f8fff9 !important;
}

.pending-reservation {
    border-left: 4px solid #ffc107 !important;
    background: #fffdf5 !important;
}

.reservation-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.reservation-filter {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.reservation-filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #555;
    cursor: pointer;
}

.reservation-filter input[type="checkbox"] {
    transform: scale(1.2);
}

main {
    padding: 30px;
}

.booking-section {
    margin-bottom: 40px;
}

.date-selector {
    margin-bottom: 30px;
    text-align: center;
}

.date-selector label {
    display: block;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.date-selector input {
    padding: 12px 20px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s;
}

.date-selector input:focus {
    outline: none;
    border-color: #667eea;
}

.date-format-note {
    margin-top: 8px;
    font-size: 0.95em;
    color: #555;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.time-slot {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
}

.time-slot:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.time-slot.available {
    border-color: #4CAF50;
    color: #4CAF50;
}

.time-slot.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.time-slot.reserved {
    background: #ffc107;
    color: #856404;
    border-color: #ffc107;
    cursor: not-allowed;
}

.time-slot.confirmed {
    background: #f44336;
    color: white;
    border-color: #f44336;
    cursor: not-allowed;
}

.time-slot.reserved:hover,
.time-slot.confirmed:hover {
    transform: none;
    box-shadow: none;
}

.time-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid;
}

.legend-color.available {
    border-color: #4CAF50;
    background: white;
}

.legend-color.reserved {
    background: #ffc107;
    border-color: #ffc107;
}

.legend-color.confirmed {
    background: #f44336;
    border-color: #f44336;
}

.legend-color.selected {
    background: #667eea;
    border-color: #667eea;
}

.booking-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.booking-form h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.selected-times {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.selected-times strong {
    color: #333;
    margin-bottom: 10px;
    display: block;
}

#selectedTimesDisplay {
    color: #667eea;
    font-weight: 500;
}

.form-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-buttons button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
}

.form-buttons button[type="submit"] {
    background: #4CAF50;
    color: white;
}

.form-buttons button[type="submit"]:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.form-buttons button[type="button"] {
    background: #6c757d;
    color: white;
}

.form-buttons button[type="button"]:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.reservations-list {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.reservations-list h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.reservation-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.reservation-item h4 {
    color: #333;
    margin-bottom: 8px;
}

.reservation-item p {
    color: #666;
    margin-bottom: 5px;
}

.reservation-item .time-info {
    color: #667eea;
    font-weight: 600;
}

.no-reservations {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.weekend-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

/* Status Panel removed per request */

/* Footer */
.app-footer {
    text-align: center;
    color: #777;
    font-size: 0.9em;
    padding: 14px 12px 24px;
}

/* Info Floating Button (top-right) */
.info-floating-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.info-floating-button .info-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.95);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease-in-out;
    border: none;
}

.info-floating-button .info-button:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Shared Info page styles */
.info-content { 
    padding: 32px; 
    max-width: 980px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: var(--card-shadow);
}

.info-card h2 {
    margin-bottom: 10px;
    font-size: 1.25em;
}

.info-card p {
    color: #444;
    line-height: 1.6;
}

/* Image presentation inside cards */
.info-card figure { margin: 0; }
.info-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    display: block;
}
.info-card figcaption {
    margin-top: 8px;
    color: #666;
    font-size: 0.95rem;
}

.map-embed {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.map-actions {
    margin-top: 10px;
}

.map-actions a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.map-actions a:hover { text-decoration: underline; }

.info-list {
    list-style: none;
    margin-top: 8px;
}

.info-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
    color: #444;
}

.info-list li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: 700;
    margin-top: 2px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary);
    font-weight: 600;
    border: 1px solid #dbe4ff;
}

.home-button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-button:hover {
    background: var(--primary-strong);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.info-card-action {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.info-card-reservation {
    display: flex;
    flex-direction: column;
}

.info-card-reservation .info-card-action {
    margin-top: auto;
    padding-top: 48px;
}

.footer-actions { 
    text-align: center;
    margin: 12px 0 0; 
}

.info-page { padding-bottom: 0; }
.info-page .container { margin-bottom: 0; }

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    header {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    main {
        padding: 20px;
    }

    .info-content { padding: 20px; }
    .info-grid { grid-template-columns: 1fr; }
    
    .time-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .time-slot {
        padding: 12px 8px;
        font-size: 0.9em;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons button {
        flex: none;
    }
}
