.colors-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.colors-container header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.color-picker-section {
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.color-preview {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 30px;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.color-input {
    display: flex;
    gap: 15px;
    align-items: center;
}

#colorPicker {
    width: 80px;
    height: 60px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

#hexInput {
    flex: 1;
    padding: 15px 20px;
    font-size: 18px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-transform: uppercase;
}

#hexInput:focus {
    outline: none;
    border-color: var(--primary-color);
}

.color-formats {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.format-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 15px;
}

.format-item:last-child {
    margin-bottom: 0;
}

.format-item label {
    min-width: 60px;
    font-weight: bold;
    color: var(--primary-color);
}

.format-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: var(--text-color);
    word-break: break-all;
}

.copy-btn {
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.copy-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.color-palette {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 15px;
}

.color-palette h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.palette-colors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.palette-color {
    aspect-ratio: 1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.palette-color:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: white;
}

@media (max-width: 768px) {
    .palette-colors {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .format-item {
        flex-wrap: wrap;
    }
}
