.tool-container {
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.preview-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.color-box {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    background-color: #ffffff;
    transition: background-color 0.2s;
}

.color-info {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
}

.inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-card label {
    font-weight: 500;
    color: #4b5563;
    font-size: 0.9rem;
}

.input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.input-wrapper input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1rem;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.copy-btn {
    padding: 0 0.75rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    color: #4b5563;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.palette-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #374151;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
}

.palette-item {
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.palette-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1;
}

@media (max-width: 640px) {
    .inputs-grid {
        grid-template-columns: 1fr;
    }
}