/*** SuggestionsEditor.razor ***/
.suggestions-editor {
    width: 100%;
    min-width: 700px; /* Ancho mínimo para evitar modal estrecho */
}

.editor-section {
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0;
}

.add-suggestion-btn {
    background: linear-gradient(90deg,rgba(182, 191, 191, 1) 23%, rgba(116, 82, 172, 1) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.add-suggestion-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.add-suggestion-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 16px;
    font-weight: bold;
}

.info-alert, .error-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 14px;
}

.info-alert {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
}

.info-alert.small {
    padding: 8px 12px;
    font-size: 13px;
    margin: 8px 0;
}

.error-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    line-height: 1.4;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.suggestion-card {
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 700px; /* Ancho mínimo consistente */
}

.suggestion-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #1e293b;
}

.suggestion-number {
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.suggestion-type {
    font-size: 16px;
}

.card-actions {
    display: flex;
    gap: 4px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.action-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.action-btn.danger {
    border-color: #fecaca;
    color: #dc2626;
}

.action-btn.danger:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #f87171;
}

.card-content {
    padding: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group.half-width {
    flex: 1 1 48%;
}

.form-group.third-width {
    flex: 1 1 32%;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.form-label::after {
    content: " *";
    color: #dc2626;
}

.form-group:not(:has(.form-input[required])) .form-label::after,
.form-group:has(input[type="url"]:not([required])) .form-label::after,
.form-group:has(input[placeholder*="Etiqueta"]) .form-label::after,
.form-group:has(input[placeholder*="Descripción"]) .form-label::after,
.form-group:has(input[placeholder*="respaldo"]) .form-label::after {
    content: "";
}

.form-input {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    min-height: 40px;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error {
    border-color: #dc2626;
    background: #fef2f2;
}

.form-input.error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.input-counter {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
    margin-top: -2px;
}

.input-helper {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
}

.field-error {
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
}

.suggestion-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    text-align: center;
    min-height: 70px;
    justify-content: center;
}

.radio-option:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.radio-option.checked {
    border-color: #667eea;
    background: #f0f4ff;
    color: #667eea;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.radio-option .radio-icon .mud-icon-root {
    font-size: 20px !important;
    transition: color 0.2s ease;
}

.radio-option:not(.checked) .radio-icon .mud-icon-root {
    color: #9ca3af !important;
}

.radio-option.checked .radio-icon .mud-icon-root {
    color: #667eea !important;
}

.radio-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.switch-group {
    display: flex;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.switch-option {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    border-right: 1px solid #e5e7eb;
}

.switch-option:last-child {
    border-right: none;
}

.switch-option:hover {
    background: #f9fafb;
}

.switch-option.active {
    background: #667eea;
    color: white;
}

@media (max-width: 768px) {
    .suggestions-editor {
        min-width: 100%;
    }

    .suggestion-card {
        min-width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .form-group.half-width,
    .form-group.third-width {
        flex: 1 1 100%;
    }

    .suggestion-types {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .radio-option {
        padding: 8px 4px;
        min-height: 60px;
    }

    .card-header {
        padding: 12px 16px;
    }

    .card-content {
        padding: 16px;
    }
}

/*** PlainText Editor.razor ***/
.plain-text-editor {
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: 0.025em;
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    resize: vertical;
    transition: all 0.2s ease-in-out;
    font-family: inherit;
    box-sizing: border-box;
}

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

.form-textarea:hover {
    border-color: #9ca3af;
}

.form-textarea::placeholder {
    color: #6b7280;
}

.form-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    gap: 1rem;
}

.help-text {
    font-size: 0.75rem;
    color: #374151;
    flex: 1;
}

.character-count {
    font-size: 0.75rem;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
}

.character-count.over-limit {
    color: #ef4444;
    font-weight: 600;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    background-color: #eff6ff;
    border: 1px solid #3b82f6;
    border-radius: 6px;
}

.info-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.info-content {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .form-textarea {
        min-height: 100px;
        font-size: 0.8rem;
    }

    .info-card {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
}

/*** CarouselEditor.razor ***/
.card-suggestions-wrapper .suggestions-editor {
    min-width: 100% !important;
    width: 100%;
}

.card-suggestions-wrapper .suggestion-card {
    min-width: 100% !important;
    width: 100%;
}

.card-suggestions-wrapper .form-row {
    flex-wrap: wrap;
}

.card-suggestions-wrapper .form-group.half-width {
    flex: 1 1 100%;
    min-width: 0;
}

.card-suggestions-wrapper .suggestion-types {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.card-suggestions-wrapper .radio-option {
    padding: 8px 4px;
    min-height: 60px;
}

/* Base Carousel Editor Styles */
.carousel-editor {
    width: 100%;
    min-width: 800px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    background: white;
    overflow: hidden;
}

.editor-container {
    padding: 2rem;
    width: 100%;
    min-width: 800px;
    margin: 0 auto;
}

/* Config Section Styles */
.config-section {
    width: 100%;
    min-width: 800px;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.section-title h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Form Grid Styles */
.form-grid {
    display: grid;
    gap: 1.5rem;
}

.layout-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fafbfc;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    line-height: 1.5;
}

.input-counter {
    align-self: flex-end;
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 500;
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.field-error::before {
    content: "⚠️";
    font-size: 1rem;
}

/* Radio and Select Groups */
.radio-group,
.select-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.radio-option,
.select-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafbfc;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 100px;
    justify-content: center;
}

.radio-option:hover,
.select-option:hover {
    border-color: #c7d2fe;
    background: #f0f4ff;
}

.radio-option.active,
.select-option.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-icon,
.select-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.radio-text,
.select-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Button Styles */
.add-card-btn,
.add-suggestion-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.add-card-btn:hover,
.add-suggestion-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.add-card-btn.disabled,
.add-suggestion-btn.disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Empty States */
.empty-state,
.empty-suggestions {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p,
.empty-suggestions p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Cards Container */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Card Editor Styles */
.card-editor {
    background: #fafbfc;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card-editor:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.card-info h5 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.card-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.control-btn:hover {
    border-color: #c7d2fe;
    background: #f0f4ff;
}

.control-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}

.control-btn.delete {
    border-color: #fecaca;
    color: #ef4444;
}

.control-btn.delete:hover {
    border-color: #f87171;
    background: #fef2f2;
}

/* Card Sections */
.card-content-section,
.card-layout-section,
.card-suggestions-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.card-content-section:last-child,
.card-layout-section:last-child,
.card-suggestions-section:last-child {
    margin-bottom: 0;
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.subsection-title h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.subsection-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* Image Preview */
.image-preview {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.image-preview img {
    max-width: 350px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    /*box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);*/
    border: 3px solid #f1f5f9;
}

/* Suggestions Specific Styles */
.suggestions-controls {
    margin-bottom: 1rem;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.suggestion-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.75rem;
}

.remove-suggestion-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.remove-suggestion-btn:hover {
    background: #fee2e2;
}

.suggestion-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .carousel-editor {
        min-width: auto;
    }

    .editor-container {
        padding: 1.5rem;
        min-width: auto;
    }

    .config-section {
        padding: 1.5rem;
        min-width: auto;
    }

    .layout-grid {
        grid-template-columns: 1fr;
    }

    .suggestion-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .editor-container {
        padding: 1rem;
    }

    .config-section {
        padding: 1rem;
    }

    .card-editor {
        padding: 1rem;
    }

    .card-content-section,
    .card-layout-section,
    .card-suggestions-section {
        padding: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .card-controls {
        align-self: flex-end;
    }

    .radio-group,
    .select-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .radio-option,
    .select-option {
        justify-content: flex-start;
        min-width: auto;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*** RichCardEditor.razor ***/
.standalone-editor {
    width: 100%;
    min-width: 700px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    background: white;
    overflow: hidden;
}

.editor-container {
    padding: 2rem;
    width: 100%;
    min-width: 700px;
    margin: 0 auto;
}

.config-section {
    width: 100%;
    min-width: 700px;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.section-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.section-title h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
    flex: 1;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.layout-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Disabled form group styles */
.form-group.disabled-group {
    opacity: 0.6;
    pointer-events: none;
}

.form-group.disabled-group .form-label {
    color: #9ca3af;
}

.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.disabled-hint {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
    font-style: italic;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fafbfc;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.5;
}

.input-counter {
    align-self: flex-end;
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 500;
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.field-error::before {
    content: "⚠️";
    font-size: 1rem;
}

/* Radio and Select Groups */
.radio-group,
.select-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.radio-option,
.select-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafbfc;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 100px;
    justify-content: center;
}

.radio-option:hover,
.select-option:hover {
    border-color: #c7d2fe;
    background: #f0f4ff;
}

.radio-option.active,
.select-option.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.radio-option.disabled,
.select-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}

.radio-option.disabled:hover,
.select-option.disabled:hover {
    border-color: #e5e7eb;
    background: #f9fafb;
}

.radio-option:focus,
.select-option:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-icon,
.select-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.radio-text,
.select-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

.image-preview {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.image-preview img {
    max-width: 350px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    /*box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);*/
    border: 3px solid #f1f5f9;
}

/* Responsive */
@media (max-width: 768px) {
    .standalone-editor {
        min-width: auto;
    }

    .editor-container {
        padding: 1rem;
        min-width: auto;
    }

    .config-section {
        padding: 1.5rem;
        min-width: auto;
    }

    .layout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .radio-group,
    .select-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .radio-option,
    .select-option {
        justify-content: flex-start;
        min-width: auto;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*** OnlyImageEditor.razor ***/
.image-editor-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* ---- INPUT ---- */
.image-editor-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #333;
}

.image-editor-input-wrapper {
    position: relative;
}

.image-editor-url-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border: 2px solid #ccc;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.image-editor-url-input:focus {
    outline: none;
    border-color: #00d4aa;
    box-shadow: 0 0 0 4px rgba(0,212,170,0.15);
}

.image-editor-input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.image-editor-svg-icon {
    fill: #555;
}

.image-editor-svg-icon-muted {
    fill: #aaa;
    opacity: 0.3;
}

/* ---- TOGGLE ---- */
.image-editor-toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 16px;
    border: 1px solid #ddd;
}

.image-editor-toggle-switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 32px;
    cursor: pointer;
}

.image-editor-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.image-editor-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc; /* gris cuando está apagado */
    border-radius: 32px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-editor-slider:before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.image-editor-toggle-switch input:checked + .image-editor-slider {
    background: #00d4aa;
}

.image-editor-toggle-switch input:checked + .image-editor-slider:before {
    transform: translateX(32px);
}

.image-editor-slider-text {
    color: #333;
    font-size: 0.6rem;
    font-weight: 700;
}

.preview-container {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.image-preview {
    position: relative;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 8px 32px rgba(0,0,0,0.3);*/
}

.preview-section {
    position: relative;
    z-index: 2;
}

.preview-img {
    max-width: 350px;
    max-height: 250px;
    width: auto;
    height: auto;
    border-radius: 12px;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview:hover .image-overlay {
    opacity: 1;
}

.image-info {
    color: white;
}

.url-display {
    font-size: 0.75rem;
    opacity: 0.9;
    word-break: break-all;
}

.pdf-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.pdf-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.file-name {
    font-size: 0.875rem;
    opacity: 0.8;
    word-break: break-all;
}

.empty-state {
    text-align: center;
    padding: 2rem;
}

.empty-state h4 {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    opacity: 0.8;
}

.empty-state p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .image-editor-container {
        padding: 1.5rem;
    }

    .toggle-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}