/* Mitica Box by NEVERBOTS */

/* Drag-drop active state */
.drag-over {
    border-color: #3b6cf5 !important;
    background-color: #f0f5ff !important;
}

/* Toast animations */
.toast-enter {
    animation: slideIn 0.3s ease-out;
}
.toast-exit {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-error { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-duplicate { background: #fde68a; color: #78350f; }

/* Table row hover */
tbody tr:hover { background-color: #f9fafb; }

/* Editable row highlight */
.row-editing { background-color: #eff6ff !important; }
.row-tva-error { background-color: #fef2f2 !important; }
.row-duplicate { background-color: #fefce8 !important; }
.row-excluded { opacity: 0.5; }

/* Modal backdrop */
#modal-overlay { backdrop-filter: blur(2px); }

/* Typeahead dropdown */
.typeahead-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 280px;
    overflow-y: auto;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
.typeahead-dropdown.hidden { display: none; }
.typeahead-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8125rem;
    border-bottom: 1px solid #f3f4f6;
}
.typeahead-item:last-child { border-bottom: none; }
.typeahead-item:hover,
.typeahead-item.active { background: #eff6ff; }
.typeahead-item .model-id { color: #374151; font-weight: 500; }
.typeahead-item .model-name { color: #6b7280; font-size: 0.75rem; }
.typeahead-item mark { background: #fef08a; color: inherit; border-radius: 2px; }

/* XML preview */
.xml-preview {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre;
    overflow-x: auto;
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    max-height: 60vh;
}
.xml-preview .tag { color: #7dd3fc; }
.xml-preview .attr { color: #fbbf24; }
.xml-preview .value { color: #86efac; }
