/* Color Picker Modal */
.color-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

.color-picker-content {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    max-width: 280px;
    width: auto;
    border: 1px solid #e9ecef;
    position: relative;
    margin-bottom: 60px;
}

.color-picker-header {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
    color: #495057;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.color-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s ease;
    position: relative;
}

.color-box:hover {
    border-color: #007bff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.color-box[data-code="00"] {
    border: 2px solid #ccc;
}

.color-picker-footer {
    text-align: center;
}

.color-btn-cancel {
    padding: 6px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.color-btn-cancel:hover {
    background: #545b62;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}
