:root {
    --bg-color: #0f0c29;
    --text-color: #ffffff;
    --accent-color: #302b63;
    --highlight-color: #24243e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background: #0f0c29;
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.background-glob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary-gradient);
    filter: blur(100px);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    z-index: -1;
    animation: float 10s infinite ease-in-out;
}

.background-glob.two {
    top: auto;
    bottom: -100px;
    left: auto;
    right: -100px;
    background: linear-gradient(135deg, #ff6b6b, #556270);
    animation: float 12s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

h2 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.slot-option input {
    display: none;
}

.slot-option span {
    display: block;
    padding: 0.8rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.slot-option input:checked+span {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(118, 75, 162, 0.5);
    transform: translateY(-2px);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.registrations-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.registrations-list li {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.registrations-list li:hover {
    background: rgba(255, 255, 255, 0.08);
}

.registrations-list li span.name {
    font-weight: 600;
}

.registrations-list li span.time {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

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

.weekdays label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 400;
}

.site-footer {
    margin-top: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding-bottom: 2rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #fff;
}

/* --- MENU STYLES --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.menu-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-card h3 {
    margin-top: 0;
    color: #4db8ff;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(77, 184, 255, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.dish-item {
    margin-bottom: 1.25rem;
}

.dish-item:last-child {
    margin-bottom: 0;
}

.dish-item strong {
    display: block;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.dish-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.25rem 0;
    line-height: 1.4;
}

.dish-price {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4caf50;
    margin-top: 0.25rem;
}

/* --- ACCORDION STYLES --- */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.accordion-item {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease;
}

.accordion-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.accordion-header {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 1.25rem;
    background: transparent;
    background-color: transparent;
    border: none;
    outline: none;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-family);
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.accordion-header .icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.accordion-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(180deg);
    opacity: 1;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s ease,
        opacity 0.3s ease,
        visibility 0.3s;
    background: rgba(0, 0, 0, 0.2);
}

.accordion-item.active .accordion-content {
    max-height: 2500px;
    /* Increased for very long menus */
    padding: 1rem;
    opacity: 1;
    visibility: visible;
    border-top: 1px solid var(--glass-border);
}

#menuImage {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* --- Responsive Helpers --- */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .glass-panel {
        padding: 1.25rem;
    }

    header h1 {
        font-size: 2rem;
    }
}