.avatar-widget {
    background: white;
    border-radius: 12px !important;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.widget-title {
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.widget-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 32px;
}

.form-section {
    margin-bottom: 32px;
}

.form-label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #1f2937;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
    text-transform: none;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.color-option {
    width: 60px;
    height: 60px;
    border-radius: 12px !important;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.color-option:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-option.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.custom-color-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.color-picker {
    width: 60px;
    height: 60px;
    border: 2px solid #e5e7eb;
    border-radius: 12px !important;
    cursor: pointer;
    background: transparent;
    padding: 0;
    overflow: hidden;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 10px !important;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 10px !important;;
}

.color-picker::-moz-color-swatch {
    border: none;
    border-radius: 10px !important;;
}

.custom-color-label {
    color: #6b7280;
    font-size: 14px;
}

.preview-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px !important;;
    border: 1px solid #e5e7eb;
}

.avatar-preview, .display_avatar, .display_avatar_other_user {
    width: 120px;
    height: 120px;
    border-radius: 50% !important;;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.preview-info {
    flex: 1;
}

.preview-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.preview-description {
    color: #6b7280;
    font-size: 14px;
}

.avatar-initials {
    user-select: none;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Preset kleuren */
.color-red { background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(220, 38, 38, 0.9)); }
.color-blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.9)); }
.color-green { background: linear-gradient(135deg, rgba(34, 197, 94, 0.8), rgba(22, 163, 74, 0.9)); }
.color-purple { background: linear-gradient(135deg, rgba(168, 85, 247, 0.8), rgba(147, 51, 234, 0.9)); }
.color-pink { background: linear-gradient(135deg, rgba(236, 72, 153, 0.8), rgba(219, 39, 119, 0.9)); }
.color-yellow { background: linear-gradient(135deg, rgba(245, 158, 11, 0.8), rgba(217, 119, 6, 0.9)); }
.color-indigo { background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(79, 70, 229, 0.9)); }
.color-teal { background: linear-gradient(135deg, rgba(20, 184, 166, 0.8), rgba(13, 148, 136, 0.9)); }

@media (max-width: 600px) {
    .preview-section {
        flex-direction: column;
        text-align: center;
    }

    .color-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}