body {
    font-family: system-ui, sans-serif;
    background: #f7f7f7;
    color: #222;
    text-align: center;
    padding: 2rem;
}

input[type="text"] {
    padding: 0.5rem;
    font-size: 1rem;
    width: 150px;
    margin-right: 0.5rem;
}

button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
}

label {
    margin-left: 1rem;
    font-size: 0.95rem;
}

.result {
    margin-top: 2rem;
}

.color-card {
    display: inline-block;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 0.5rem;
    width: 140px;
}

.color-box {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 0.5rem;
}

.palettes {
    margin-top: 3rem;
    text-align: center;
}

.palette {
    display: inline-block;
    margin: 1rem;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.palette h3 {
    margin-bottom: 0.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 40px);
    gap: 4px;
    justify-content: center;
}

.cell {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #ccc;
    transition: transform 0.1s;
}

.cell:hover {
    transform: scale(1.1);
    border-color: #000;
}