/* ============================================================================
   WIZARD.CSS - Estilos para sistema de wizards paso a paso
   ============================================================================ */

/* ============================================================================
   ROUTE WIZARD - Estilos específicos para editor de rutas
   ============================================================================ */

/* Contenedor del editor de paradas */
.stops-editor {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stops-list-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
}

.stops-list-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.stops-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Item de parada con drag & drop */
.stop-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: move;
    transition: all 0.2s;
    user-select: none;
}

.stop-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.stop-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.stop-item.drag-over {
    border-color: #27ae60;
    border-style: dashed;
    background: #e8f5e9;
}

.stop-order {
    background: #667eea;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.drag-handle {
    color: #95a5a6;
    font-size: 18px;
    cursor: grab;
    flex-shrink: 0;
}

.drag-handle:active {
    cursor: grabbing;
}

.stop-name {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

.stop-position-label {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.stop-position-label.start {
    background: #e3f2fd;
    color: #1976d2;
}

.stop-position-label.end {
    background: #fff3e0;
    color: #f57c00;
}

.stop-delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.stop-delete-btn:hover {
    background: #c0392b;
}

/* Mensaje vacío */
.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-style: italic;
}

/* Contenedor para agregar parada */
.add-stop-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Autocompletado */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
}

.autocomplete-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.autocomplete-suggestion:hover {
    background: #f8f9fa;
}

.stop-full {
    font-weight: 500;
    color: #2c3e50;
}

.stop-abbr {
    background: #e8eaf6;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Vista previa - Lista de paradas */
.preview-stops-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
}

.preview-stop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 6px;
}

.preview-stop-number {
    background: #667eea;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.preview-stop-name {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
}

.preview-badge {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.preview-badge.start {
    background: #e3f2fd;
    color: #1976d2;
}

.preview-badge.end {
    background: #fff3e0;
    color: #f57c00;
}

.preview-badge.destination {
    background: #e8f5e9;
    color: #27ae60;
}

.preview-stop-arrow {
    text-align: center;
    color: #95a5a6;
    font-size: 20px;
    padding: 4px 0;
}

/* ============================================================================
   BASE WIZARD STYLES
   ============================================================================ */

/* ============================================================================
   OVERLAY Y CONTENEDOR PRINCIPAL
   ============================================================================ */

.wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.wizard-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 10000;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.wizard-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wizard-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.wizard-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}

.wizard-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   BARRA DE PROGRESO
   ============================================================================ */

.wizard-progress {
    padding: 32px 32px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
}

.wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    transition: all 0.3s;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4f46e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    position: relative;
}

.wizard-step-indicator.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

.wizard-step-indicator.completed .step-number {
    background: #10b981;
    color: white;
}

.wizard-step-indicator.completed .step-number::after {
    content: '✓';
    position: absolute;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-align: center;
}

.wizard-step-indicator.active .step-label {
    color: #667eea;
    font-weight: 600;
}

.wizard-step-indicator.completed .step-label {
    color: #10b981;
    font-weight: 600;
}

.step-separator {
    flex: 1;
    height: 2px;
    background: #c7d2fe;
    margin: 0 8px;
    margin-bottom: 32px;
    transition: background 0.3s;
}

.step-separator.completed {
    background: #10b981;
}

/* ============================================================================
   CONTENIDO
   ============================================================================ */

.wizard-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    min-height: 400px;
}

.wizard-step-content {
    max-width: 800px;
    margin: 0 auto;
}

.wizard-step-title {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
}

.wizard-step-description {
    margin: 0 0 32px 0;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

/* ============================================================================
   FORMULARIOS
   ============================================================================ */

.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

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

.form-label .required {
    color: #ef4444;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    font-family: inherit;
    background: white;
    color: #1f2937;
    width: 100%;
    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::placeholder {
    color: #9ca3af;
}

.form-help {
    font-size: 13px;
    color: #6b7280;
    margin-top: -4px;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* Asegurar visibilidad de inputs dentro del wizard */
.wizard-content input[type="text"],
.wizard-content input[type="number"],
.wizard-content textarea,
.wizard-content select {
    display: block;
    visibility: visible;
    opacity: 1;
}

.wizard-form label,
.wizard-form .form-label {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* ============================================================================
   LISTA DE COCHES
   ============================================================================ */

.coaches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.coach-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.coach-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.coach-name-input {
    flex: 1;
}

/* ============================================================================
   SELECTOR DE COCHE (solo en wizard, no afectar al header)
   ============================================================================ */

.wizard-step .coach-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.wizard-step .coach-selector .form-label {
    margin: 0;
    white-space: nowrap;
}

.wizard-step .coach-selector .form-input {
    max-width: 300px;
}

/* ============================================================================
   EDITOR DE LAYOUTS EN WIZARD
   ============================================================================ */

.wizard-layouts-editor {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#layout-editor-container {
    background: white;
    border-radius: 8px;
}

/* Ajustar editor para que quepa bien en el wizard */
.wizard-content .seat-layout-editor {
    height: auto;
    max-height: 500px;
}

.wizard-content .editor-left-panel,
.wizard-content .editor-right-panel {
    max-height: 450px;
}

/* ============================================================================
   VISTA PREVIA
   ============================================================================ */

.wizard-preview {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.preview-section {
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.preview-section-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-info-item {
    display: flex;
    gap: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.preview-info-item strong {
    color: #374151;
    min-width: 140px;
}

.preview-info-item code {
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #667eea;
}

.preview-coach {
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.preview-coach:last-child {
    margin-bottom: 0;
}

.preview-coach-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.preview-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
}

.preview-confirm-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.wizard-footer {
    padding: 24px 32px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
}

.wizard-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wizard-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.wizard-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.wizard-btn-success:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.wizard-btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.wizard-btn-secondary:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .wizard-overlay {
        padding: 0;
        align-items: stretch;
    }

    .wizard-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        height: 100%;
    }

    .wizard-header {
        padding: 20px;
    }

    .wizard-title {
        font-size: 20px;
    }

    .wizard-progress {
        padding: 20px 16px 16px;
        overflow-x: auto;
        align-items: flex-start;
    }

    .wizard-step-indicator {
        min-width: 70px;
        flex-shrink: 0;
        gap: 6px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .step-label {
        font-size: 11px;
        line-height: 1.2;
        max-width: 70px;
        word-wrap: break-word;
        hyphens: auto;
        text-align: center;
        min-height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .step-separator {
        margin-top: 18px;
        margin-bottom: 0;
        height: 2px;
        min-width: 20px;
    }

    .wizard-content {
        padding: 20px;
    }

    .wizard-step-title {
        font-size: 22px;
    }

    .wizard-step-description {
        font-size: 14px;
    }

    .wizard-footer {
        padding: 16px;
        flex-wrap: wrap;
    }

    .wizard-btn {
        flex: 1;
        min-width: 120px;
    }

    /* Ajustar editor en móviles */
    .wizard-content .seat-layout-editor {
        flex-direction: column;
        max-height: none;
    }

    .wizard-content .editor-left-panel,
    .wizard-content .editor-right-panel {
        width: 100%;
        max-height: none;
    }
}

/* ============================================================================
   ANIMACIONES
   ============================================================================ */

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

.wizard-container {
    animation: fadeIn 0.3s ease-out;
}

.wizard-step-content {
    animation: fadeIn 0.3s ease-out;
}

/* ============================================================================
   DARK MODE
   ============================================================================ */

body.dark-mode .wizard-container {
    background: #1f2937;
}

body.dark-mode .wizard-header {
    border-bottom-color: #374151;
}

body.dark-mode .wizard-title {
    color: #f9fafb;
}

body.dark-mode .wizard-close-btn {
    background: #374151;
    color: #9ca3af;
}

body.dark-mode .wizard-close-btn:hover {
    background: #4b5563;
    color: #f9fafb;
}

body.dark-mode .step-number {
    background: #6366f1;
}

body.dark-mode .wizard-step-indicator.active .step-number {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
}

body.dark-mode .wizard-step-indicator.completed .step-number {
    background: #10b981;
}

body.dark-mode .step-label {
    color: #e5e7eb;
}

body.dark-mode .wizard-step-indicator.active .step-label {
    color: #a5b4fc;
}

body.dark-mode .wizard-step-indicator.completed .step-label {
    color: #6ee7b7;
}

body.dark-mode .step-separator {
    background: #4f46e5;
}

body.dark-mode .step-separator.completed {
    background: #10b981;
}

body.dark-mode .wizard-step-title {
    color: #f9fafb;
}

body.dark-mode .wizard-step-description {
    color: #9ca3af;
}

body.dark-mode .form-label {
    color: #e5e7eb;
}

body.dark-mode .form-input,
body.dark-mode .form-textarea {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

body.dark-mode .form-input:focus,
body.dark-mode .form-textarea:focus {
    border-color: #818cf8;
    background: #1f2937;
}

body.dark-mode .form-input::placeholder,
body.dark-mode .form-textarea::placeholder {
    color: #6b7280;
}

body.dark-mode .form-help {
    color: #9ca3af;
}

body.dark-mode .stops-list-container {
    background: #111827;
    border-color: #374151;
}

body.dark-mode .stops-list-title {
    color: #f9fafb;
}

body.dark-mode .stop-item {
    background: #1f2937;
    border-color: #4b5563;
}

body.dark-mode .stop-item:hover {
    border-color: #6b7280;
    background: #374151;
}

body.dark-mode .stop-name {
    color: #f9fafb;
}

body.dark-mode .stop-position-label {
    background: #374151;
    color: #e5e7eb;
}

body.dark-mode .stop-delete-btn {
    background: #374151;
    color: #9ca3af;
}

body.dark-mode .stop-delete-btn:hover {
    background: #7f1d1d;
    color: #fca5a5;
}

body.dark-mode .empty-message {
    color: #6b7280;
}

body.dark-mode .add-stop-container {
    background: #111827;
}

body.dark-mode .autocomplete-suggestions {
    background: #1f2937;
    border-color: #4b5563;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .autocomplete-suggestion {
    border-bottom-color: #374151;
}

body.dark-mode .autocomplete-suggestion:hover {
    background: #374151;
}

body.dark-mode .stop-full {
    color: #f9fafb;
}

body.dark-mode .stop-abbr {
    color: #9ca3af;
}

body.dark-mode .preview-stops-list {
    background: #111827;
}

body.dark-mode .preview-stop-item {
    background: #1f2937;
    border-color: #4b5563;
}

body.dark-mode .preview-stop-name {
    color: #f9fafb;
}

body.dark-mode .preview-badge {
    background: #374151;
    color: #e5e7eb;
}

body.dark-mode .preview-badge.start {
    background: #065f46;
    color: #6ee7b7;
}

body.dark-mode .preview-badge.end {
    background: #7c2d12;
    color: #fdba74;
}

body.dark-mode .preview-badge.destination {
    background: #1e3a8a;
    color: #93c5fd;
}

body.dark-mode .coaches-list {
    background: #111827;
}

body.dark-mode .coach-item {
    background: #1f2937;
    border-color: #4b5563;
}

body.dark-mode .coach-name {
    color: #f9fafb;
}

body.dark-mode .coach-actions button {
    background: #374151;
    color: #9ca3af;
}

body.dark-mode .coach-actions button:hover {
    background: #4b5563;
    color: #f9fafb;
}

body.dark-mode .wizard-footer {
    border-top-color: #374151;
    background: #111827;
}

body.dark-mode .wizard-btn-secondary {
    background: #374151;
    color: #e5e7eb;
    border-color: #4b5563;
}

body.dark-mode .wizard-btn-secondary:hover {
    background: #4b5563;
    border-color: #6b7280;
}

/* ============================================================================
   TEMPLATES - Selector de plantillas predefinidas
   ============================================================================ */

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.template-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.template-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.template-card.selected {
    border-color: #0066cc;
    background: #e3f2fd;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.2);
}

.template-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #0066cc;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.template-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.template-name {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.template-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Dark mode */
body.dark-mode .template-card {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .template-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

body.dark-mode .template-card.selected {
    border-color: #3b82f6;
    background: #1e3a5f;
}

body.dark-mode .template-card.selected::after {
    background: #3b82f6;
}

body.dark-mode .template-name {
    color: #e5e7eb;
}

body.dark-mode .template-description {
    color: #9ca3af;
}

/* ============================================================================
   TOOLTIPS - Ayudas contextuales
   ============================================================================ */

.tooltip-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0066cc;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tooltip-icon:hover {
    background: #0052a3;
    transform: scale(1.1);
}

/* Dark mode */
body.dark-mode .tooltip-icon {
    background: #3b82f6;
}

body.dark-mode .tooltip-icon:hover {
    background: #2563eb;
}

/* ============================================================================
   BADGES DE ORIGEN Y FEATURES
   ============================================================================ */

.source-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adif-badge {
    background: #3b82f6;
    color: white;
}

.screen-badge {
    background: #10b981;
    color: white;
    font-size: 11px;
}

/* Badges en sugerencias de autocomplete */
.autocomplete-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
}

.autocomplete-suggestion .source-badge {
    margin-left: auto;
    flex-shrink: 0;
}

/* Dark mode */
body.dark-mode .adif-badge {
    background: #2563eb;
}

body.dark-mode .screen-badge {
    background: #059669;
}
