 :root {
    --primary-color: var(--bs-primary); /* Indigo */
    --primary-hover: var(--bs-dark-primary);
    --card-bg: #ffffff;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}

/* Card Container Principal */
.main-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    background: var(--card-bg);
}

/* Stepper (Barra de Progresso) */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}
.stepper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}
.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    /*background: var(--card-bg);*/
    padding: 0 10px;
}
.step-circle {
    width: 32px;
    height: 32px;
    background-color: #e5e7eb;
    color: #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}
.step-item.active .step-circle {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}
.step-item.completed .step-circle {
    background-color: #4caf50; /* Green */
    color: white;
}
.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Drop Zone UI */
.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--card-bg);
    position: relative;
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary-color);
    background-color: #eef2ff;
}
.drop-zone i {
    color: #94a3b8;
    transition: transform 0.3s ease;
}
.drop-zone:hover i {
    color: var(--primary-color);
    transform: translateY(-5px);
}
.drop-zone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

/* Mapeamento UI */
.mapping-row {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.mapping-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Chip/Tag Selection UI */
.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip-checkbox {
    display: none;
}
.chip-label {
    padding: 8px 16px;
    background-color: #fff; /*#f3f4f6*/
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.chip-label:hover {
    background-color: #e5e7eb;
}
.chip-checkbox:checked + .chip-label {
    background-color: #e0e7ff; /* Light Indigo */
    border-color: #c7d2fe;
    color: var(--primary-color);
    font-weight: 500;
}
/* Estilo para chips desabilitados */
.chip-checkbox:disabled + .chip-label {
    background-color: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Accordion Icon Animation */
.transition-icon {
    transition: transform 0.3s ease;
}
.rotate-180 {
    transform: rotate(180deg);
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 8px;
}
.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Result Styles */
.nav-tabs .nav-link {
    color: var(--text-muted);
}
.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom-color: #fff;
}
.table-responsive {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.table thead th {
    position: sticky;
    top: 0;
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
pre {
    background: #1e293b; /* Slate 800 */
    color: #a5f3fc; /* Cyan 200 */
    padding: 20px;
    border-radius: 8px;
    max-height: 400px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.br-10 {
    border-radius: 10px;
}

.hover-underline:hover {
    text-decoration: underline !important;
}
