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

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #1e293b;
    --background-color: rgba(15, 23, 42, 0.85);
    --card-background: rgba(30, 41, 59, 0.95);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --success-color: #16a34a;
    --success-hover: #15803d;
    --button-hover: #4f46e5;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    line-height: 1.6;
    background-color: transparent;
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-container {
    background-color: var(--background-color);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;

    .menu-header {
        background-color: var(--secondary-color);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 20px;

        h1 {
            color: var(--text-primary);
            font-size: 1.5rem;
            font-weight: 600;
            letter-spacing: -0.025em;
            margin: 0;
        }
    }

    .menu-content {
        padding: 1.5rem;

        .menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 1rem;
        }
    }
}

.menu-item {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.3s ease;

    &:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
    }

    .menu-item-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
        background: linear-gradient(
            135deg,
            var(--primary-color),
            var(--button-hover)
        );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;

        svg {
            width: 24px;
            height: 24px;
            stroke: currentColor;
            fill: none;
        }
    }

    .menu-item-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }

    .menu-item-description {
        font-size: 0.875rem;
        color: var(--text-secondary);
        line-height: 1.4;
    }
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);

    .loading-spinner {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(248, 250, 252, 0.1);
        border-top: 4px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 20px;
    }

    .loading-text {
        font-size: 16px;
        color: var(--text-secondary);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .menu-container {
        width: 95%;
        margin: 1rem;

        .menu-content {
            .menu-grid {
                grid-template-columns: 1fr;
            }
        }

        .menu-header {
            h1 {
                font-size: 1.25rem;
            }
        }
    }
}
