:root {
    --primary: #4361ee;
    --success: #2d6a4f;
    --danger: #d32f2f;
    --bg: #f0f2f5;
    --surface: #ffffff;
    --text: #333333;
    --text-muted: #888888;
    --border: #e2e8f0;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: grid;
    place-items: start center;
    padding: 2rem 1rem;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 700px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

header p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    display: block;
    margin-bottom: 0.5rem;
}

.color-box {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.color-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

#key {
    border: 3px solid var(--text);
    color: var(--text);
    background-color: white;
}

.instruction-panel {
    background: rgba(67, 97, 238, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

.instruction-panel ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.instruction-panel li {
    margin-bottom: 0.5rem;
}

.generated-box {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-link {
    display: block;
    padding: 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: opacity 0.2s;
}

.menu-link:hover {
    opacity: 0.9;
}