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

:root {
    --cream-light: #FDF6E3;
    --cream: #F5E6C8;
    --cream-dark: #E8D4A8;
    --green-dark: #1E5631;
    --green-medium: #2E7D32;
    --green-light: #4CAF50;
    --red-dark: #7B2D26;
    --red-medium: #994D47;
    --red-light: #A65D57;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #5C1E1A 0%, #8B3A33 50%, #A65D57 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

header {
    margin-bottom: 40px;
    color: var(--cream-light);
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer {
    margin-top: 100px;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #FDF6E3;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 10px;
}

.search-container {
    position: relative;
    margin-bottom: 30px;
}

#searchInput {
    width: 100%;
    padding: 20px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: var(--cream-light);
    color: var(--green-dark);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    outline: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#searchInput:focus {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

#searchInput::placeholder {
    color: #998866;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-light);
    border-radius: 20px;
    margin-top: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.suggestions.hidden {
    display: none;
}

.suggestion-item {
    padding: 15px 25px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
    border-bottom: 1px solid var(--cream-dark);
    color: var(--green-dark);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--cream);
}

.suggestion-item:first-child {
    border-radius: 20px 20px 0 0;
}

.suggestion-item:last-child {
    border-radius: 0 0 20px 20px;
}

.suggestion-item:only-child {
    border-radius: 20px;
}

.result {
    animation: fadeInUp 0.5s ease;
}

.result.hidden {
    display: none;
}

.result-card {
    background: var(--cream-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--cream-dark);
}

.guest-name {
    font-size: 1.5rem;
    color: var(--green-dark);
    margin-bottom: 20px;
    font-weight: 500;
}

.table-number {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.table-number .label {
    font-size: 1rem;
    color: #886644;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.table-number .number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--red-dark);
}

.no-result {
    background: var(--cream-light);
    border-radius: 20px;
    padding: 30px;
    color: var(--red-dark);
    animation: fadeInUp 0.5s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.no-result.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar styling */
.suggestions::-webkit-scrollbar {
    width: 8px;
}

.suggestions::-webkit-scrollbar-track {
    background: var(--cream);
    border-radius: 10px;
}

.suggestions::-webkit-scrollbar-thumb {
    background: var(--cream-dark);
    border-radius: 10px;
}

.suggestions::-webkit-scrollbar-thumb:hover {
    background: #C4B48A;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

.footer {
        font-size: 0.9rem;
        margin-top: 80px;
        color: #FDF6E3;
    }

    .subtitle {
        font-size: 1rem;
    }

    #searchInput {
        padding: 18px 22px;
        font-size: 1rem;
    }

    .result-card {
        padding: 30px 20px;
    }

    .table-number .number {
        font-size: 3rem;
    }
}
