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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #2d2d3d;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 40px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #00d4ff;
    padding-bottom: 20px;
}

.header h1 {
    color: #00d4ff;
    font-size: 28px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-header {
    padding: 10px 20px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-header:hover {
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.auth-section {
    background-color: #3a3a4d;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #00d4ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-links {
    display: flex;
    gap: 10px;
}

.auth-links a {
    padding: 8px 16px;
    background-color: #0099cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.auth-links a:hover {
    background-color: #00d4ff;
    color: #1a1a2e;
}

.visitor-welcome {
    background-color: #1e4620;
    color: #4ade80;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #4ade80;
}

.visitor-welcome p {
    margin-bottom: 8px;
}

.logout-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #ff5252;
}

h2 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-size: 20px;
}

.booking-form {
    background: #3a3a4d;
    padding: 20px;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    background-color: #2d2d3d;
    color: #e0e0e0;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #1a1a2e;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background-color: #4a4a5e;
    color: #e0e0e0;
    border: 1px solid #666;
}

.btn-secondary:hover {
    background-color: #5a5a6e;
    border-color: #888;
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: none;
}

.message.success {
    background-color: #1e4620;
    color: #4ade80;
    border: 1px solid #22c55e;
    display: block;
}

.message.error {
    background-color: #4a1f1f;
    color: #fca5a5;
    border: 1px solid #f87171;
    display: block;
}

.info-box {
    background: #3a4a5e;
    border-left: 4px solid #00d4ff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

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

    .auth-section {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    border: 1px solid rgba(0, 212, 255, 0.45);
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    z-index: 20;
}
.theme-toggle:hover { opacity: 0.8; }

/* ===== Light Theme Overrides ===== */
body.light-theme {
    background: linear-gradient(135deg, #e8f4f8 0%, #ddeeff 100%);
    color: #1a1a2e;
}
body.light-theme .container {
    background-color: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
body.light-theme .header { border-bottom-color: #0099cc; }
body.light-theme .header h1,
body.light-theme h2 { color: #0077aa; }
body.light-theme .auth-section {
    background-color: #eef4fb;
    border-left-color: #0099cc;
}
body.light-theme .auth-section span { color: #555; }
body.light-theme .info-box {
    background: #e4f2fb;
    border-left-color: #0099cc;
    color: #1a1a2e;
}
body.light-theme .booking-form { background: #f5f8fa; }
body.light-theme .form-group label { color: #1a1a2e; }
body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea {
    background-color: #ffffff;
    color: #1a1a2e;
    border-color: #c0ccd8;
}
body.light-theme .btn-secondary {
    background-color: #dde4ec;
    color: #1a1a2e;
    border-color: #b0bcc8;
}
body.light-theme .btn-secondary:hover { background-color: #ccd4de; }
body.light-theme .btn-header { color: #ffffff; }
body.light-theme .visitor-welcome {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left-color: #4caf50;
}
body.light-theme .message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #4caf50;
}
body.light-theme .message.error {
    background-color: #fdecea;
    color: #c62828;
    border-color: #f44336;
}
body.light-theme .theme-toggle {
    background: rgba(0, 119, 170, 0.1);
    color: #0077aa;
    border-color: rgba(0, 119, 170, 0.45);
}
