@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.app-sidebar {
    width: 18rem;
    overflow: hidden;
    transition: width 0.2s ease;
}

.app-sidebar.app-sidebar--collapsed {
    width: 5.5rem !important;
}

.app-sidebar.app-sidebar--collapsed .sidebar-expandable {
    display: none !important;
}

.app-sidebar.app-sidebar--collapsed .sidebar-item {
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.app-sidebar.app-sidebar--collapsed #user-profile-section {
    justify-content: center;
}

:root {
    --bilan-stage-panel-height: clamp(700px, 84vh, 1040px);
}

.bilan-step3-grid {
    align-items: stretch;
}

.bilan-stage-panel {
    height: var(--bilan-stage-panel-height);
    min-height: 620px;
}

.bilan-stage-scroll {
    min-height: 0;
    overflow: auto;
}

.bilan-stage-scroll .bilan-preview-slide-shell {
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.bilan-stage-scroll .bilan-preview-slide-shell > .bilan-preview-slide-card {
    width: min(100%, 1400px);
}

.preview-editable {
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

.preview-editable:hover {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
    border-radius: 6px;
}

.bilan-slide-list-scroll {
    min-height: 220px;
    max-height: 560px;
}

@media (max-width: 1279px) {
    .bilan-stage-panel {
        height: auto;
        min-height: 460px;
    }

    .bilan-slide-list-scroll {
        max-height: 360px;
    }
}

.dark .logo-img {
    filter: invert(1);
}

.contract-card {
    transition: all 0.3s ease;
}

.contract-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    transition: all 0.2s ease;
}

.tab-btn.active {
    background-color: #f3f4f6;
    font-weight: 500;
}

.sidebar-item {
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background-color: #f3f4f6;
}

.sidebar-item.active {
    background-color: #f3f4f6;
    font-weight: 500;
}

.dark .sidebar-item:hover {
    background-color: #374151;
}

.dark .sidebar-item.active {
    background-color: #374151;
}

/* Dark mode fallback utilities (class strategy) */
.dark .dark\:bg-amber-900\/20 { background-color: rgba(120, 53, 15, 0.2); }
.dark .dark\:bg-blue-900 { background-color: #1e3a8a; }
.dark .dark\:bg-emerald-900\/20 { background-color: rgba(6, 78, 59, 0.2); }
.dark .dark\:bg-emerald-900\/30 { background-color: rgba(6, 78, 59, 0.3); }
.dark .dark\:bg-gray-500 { background-color: #6b7280; }
.dark .dark\:bg-gray-600 { background-color: #4b5563; }
.dark .dark\:bg-gray-700 { background-color: #374151; }
.dark .dark\:bg-gray-700\/30 { background-color: rgba(55, 65, 81, 0.3); }
.dark .dark\:bg-gray-700\/50 { background-color: rgba(55, 65, 81, 0.5); }
.dark .dark\:bg-gray-800 { background-color: #1f2937; }
.dark .dark\:bg-gray-800\/50 { background-color: rgba(31, 41, 55, 0.5); }
.dark .dark\:bg-gray-900 { background-color: #111827; }
.dark .dark\:bg-green-900\/20 { background-color: rgba(20, 83, 45, 0.2); }
.dark .dark\:bg-green-900\/30 { background-color: rgba(20, 83, 45, 0.3); }
.dark .dark\:bg-indigo-900 { background-color: #312e81; }
.dark .dark\:bg-indigo-900\/20 { background-color: rgba(49, 46, 129, 0.2); }
.dark .dark\:bg-red-900 { background-color: #7f1d1d; }
.dark .dark\:bg-red-900\/20 { background-color: rgba(127, 29, 29, 0.2); }
.dark .dark\:border-amber-800 { border-color: #92400e; }
.dark .dark\:border-emerald-800 { border-color: #065f46; }
.dark .dark\:border-gray-600 { border-color: #4b5563; }
.dark .dark\:border-gray-700 { border-color: #374151; }
.dark .dark\:border-green-800 { border-color: #166534; }
.dark .dark\:border-indigo-800 { border-color: #3730a3; }
.dark .dark\:border-red-800 { border-color: #991b1b; }
.dark .dark\:divide-gray-700 > :not([hidden]) ~ :not([hidden]) { border-color: #374151; }
.dark .dark\:hover\:bg-gray-600:hover { background-color: #4b5563; }
.dark .dark\:hover\:bg-gray-700:hover { background-color: #374151; }
.dark .dark\:hover\:bg-gray-700\/30:hover { background-color: rgba(55, 65, 81, 0.3); }
.dark .dark\:hover\:bg-gray-700\/50:hover { background-color: rgba(55, 65, 81, 0.5); }

@keyframes copyPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(16, 185, 129, 0.0); }
    40% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(16, 185, 129, 0.0); }
}

.copy-feedback {
    animation: copyPulse 0.6s ease;
}
.dark .dark\:hover\:border-emerald-400:hover { border-color: #34d399; }
.dark .dark\:hover\:border-gray-600:hover { border-color: #4b5563; }
.dark .dark\:hover\:border-indigo-700:hover { border-color: #4338ca; }
.dark .dark\:hover\:text-gray-200:hover { color: #e5e7eb; }
.dark .dark\:hover\:text-gray-300:hover { color: #d1d5db; }
.dark .dark\:hover\:text-indigo-300:hover { color: #a5b4fc; }
.dark .dark\:hover\:text-red-200:hover { color: #fecaca; }
.dark .dark\:hover\:text-red-400:hover { color: #f87171; }
.dark .dark\:hover\:text-white:hover { color: #ffffff; }
.dark .dark\:placeholder-gray-500::placeholder { color: #6b7280; }
.dark .dark\:ring-indigo-800 { --tw-ring-color: #3730a3; }
.dark .dark\:text-amber-200 { color: #fde68a; }
.dark .dark\:text-amber-300 { color: #fcd34d; }
.dark .dark\:text-amber-400 { color: #fbbf24; }
.dark .dark\:text-blue-400 { color: #60a5fa; }
.dark .dark\:text-emerald-400 { color: #34d399; }
.dark .dark\:text-gray-100 { color: #f3f4f6; }
.dark .dark\:text-gray-200 { color: #e5e7eb; }
.dark .dark\:text-gray-300 { color: #d1d5db; }
.dark .dark\:text-gray-400 { color: #9ca3af; }
.dark .dark\:text-gray-500 { color: #6b7280; }
.dark .dark\:text-green-300 { color: #86efac; }
.dark .dark\:text-green-400 { color: #4ade80; }
.dark .dark\:text-indigo-300 { color: #a5b4fc; }
.dark .dark\:text-indigo-400 { color: #818cf8; }
.dark .dark\:text-red-100 { color: #fee2e2; }
.dark .dark\:text-red-200 { color: #fecaca; }
.dark .dark\:text-red-300 { color: #fca5a5; }
.dark .dark\:text-red-400 { color: #f87171; }
.dark .dark\:text-white { color: #ffffff; }

/* Header fixé pour le tableau des annonceurs */
.advertiser-table-header.is-fixed {
    position: fixed;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
}

.dark .advertiser-table-header.is-fixed {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Placeholder pour garder l'espace quand le header est fixed */
.advertiser-header-placeholder {
    display: none;
}

.advertiser-header-placeholder.is-visible {
    display: block;
}

.free-slide-editor {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px dashed #cbd5f5;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
}

.dark .free-slide-editor {
    background: #111827;
    border-color: #374151;
}

.free-slide-editor.drag-over {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.free-slide-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #94a3b8;
    pointer-events: none;
}

.free-slide-block {
    position: absolute;
    border: 1px dashed rgba(148, 163, 184, 0.8);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    overflow: hidden;
}

.dark .free-slide-block {
    background: rgba(17, 24, 39, 0.7);
    border-color: rgba(107, 114, 128, 0.7);
}

.free-slide-block img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.free-slide-text {
    width: 100%;
    height: 100%;
    outline: none;
    padding: 8px;
    font-size: 12px;
    color: #0f172a;
    background: transparent;
}

.dark .free-slide-text {
    color: #e5e7eb;
}

.free-slide-resize {
    position: absolute;
    width: 12px;
    height: 12px;
    right: 4px;
    bottom: 4px;
    background: #64748b;
    border-radius: 3px;
    cursor: se-resize;
}

.free-slide-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.free-slide-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.dark .free-slide-preview {
    background: #111827;
    border-color: #374151;
}

.free-slide-block.is-preview {
    border: none;
    background: transparent;
    pointer-events: none;
}

.free-slide-block.is-preview .free-slide-resize,
.free-slide-block.is-preview .free-slide-remove {
    display: none;
}

.top-creative-editor {
    display: grid;
    gap: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    background: #ffffff;
}

.dark .top-creative-editor {
    background: #1f2937;
    border-color: #374151;
}

.top-creative-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-creative-remove {
    font-size: 11px;
    color: #ef4444;
    background: transparent;
    border: none;
    cursor: pointer;
}

.top-creative-drop {
    border: 1px dashed #cbd5f5;
    border-radius: 10px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 12px;
    overflow: hidden;
}

.top-creative-drop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dark .top-creative-drop {
    background: #111827;
    border-color: #374151;
}

.top-creative-drop.drag-over {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.top-creatives-grid {
    display: grid;
    gap: 16px;
}

.top-creatives-grid.cols-1 { grid-template-columns: 1fr; }
.top-creatives-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.top-creatives-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.top-creatives-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.top-creative-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.top-creative-title {
    color: #E52B7A;
    font-weight: 600;
    font-size: 14px;
}

.top-creative-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    overflow: hidden;
}

.top-creative-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-creative-caption {
    color: #E52B7A;
    font-weight: 600;
    font-size: 13px;
    white-space: pre-line;
}

.bilan-item-cloud {
    display: grid;
    grid-template-columns: repeat(var(--bilan-cloud-cols, 3), minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 8px;
}

.bilan-item-row {
    display: grid;
    grid-template-columns: 22px 1fr 18px 12px;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 11px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    cursor: grab;
    transition: all 0.15s ease;
    text-align: left;
    min-height: 36px;
}

.bilan-item-link {
    text-align: left;
    font-weight: 500;
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bilan-item-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bilan-item-toggle input {
    width: 14px;
    height: 14px;
}

.bilan-item-delete {
    background: transparent;
    border: none;
    color: #b91c1c;
    font-size: 11px;
    cursor: pointer;
}

.bilan-item-delete:hover {
    color: #991b1b;
}

.bilan-item-grip {
    color: #9ca3af;
    font-size: 10px;
    opacity: 0.7;
    justify-self: end;
}

.bilan-item-row.is-active .bilan-item-grip {
    color: #e5e7eb;
}

.bilan-item-row:hover {
    background: #f3f4f6;
}

.bilan-item-row.is-dragging {
    opacity: 0.6;
}

.bilan-item-row:active {
    cursor: grabbing;
}

.bilan-item-row.is-active {
    background: #1f2937;
    color: #ffffff;
    border-color: #1f2937;
}

.bilan-item-row.is-active .bilan-item-delete {
    color: #fca5a5;
}

.bilan-item-index {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.bilan-item-row.is-active .bilan-item-index {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.bilan-item-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bilan-slide-block {
    scroll-margin-top: 20px;
}

.bilan-slide-highlight {
    outline: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 12px;
    transition: outline 0.3s ease;
}

.dark .bilan-item-row {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

.dark .bilan-item-row.is-active {
    background: #4b5563;
    border-color: #4b5563;
    color: #ffffff;
}

.dark .bilan-item-delete {
    color: #ef4444;
}

.dark .bilan-item-delete:hover {
    color: #dc2626;
}

.dark .bilan-item-index {
    background: #374151;
    color: #e5e7eb;
}

.dark .bilan-item-row.is-active .bilan-item-index {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Boutons sélection annonceur (actif) */
.advertiser-select-btn.is-active {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

.dark .advertiser-select-btn.is-active {
    background-color: #4b5563 !important;
    color: #ffffff !important;
}

/* Classe pour masquer les éléments lors de la recherche */
.search-hidden {
    display: none !important;
}

/* ============================================
   STYLES MODAL D'IMPORT
   ============================================ */

/* Animation d'ouverture de la modal */
#import-modal {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#import-modal > div:last-child {
    animation: slideIn 0.3s ease-out;
}

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

/* Zone de drop active */
#drop-zone.drag-over {
    border-color: #10b981;
    background-color: #ecfdf5;
}

.dark #drop-zone.drag-over {
    background-color: rgba(16, 185, 129, 0.1);
}

/* Lignes de prévisualisation du fichier */
.raw-line {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.dark .raw-line {
    border-bottom-color: #374151;
}

.raw-line:hover {
    background-color: #f3f4f6;
}

.dark .raw-line:hover {
    background-color: #1f2937;
}

.raw-line.selected {
    background-color: #ecfdf5;
    border-left: 4px solid #10b981;
}

.dark .raw-line.selected {
    background-color: rgba(16, 185, 129, 0.15);
}

.raw-line-number {
    min-width: 3rem;
    padding: 0.5rem 0.75rem;
    text-align: right;
    color: #9ca3af;
    background-color: #f9fafb;
    border-right: 1px solid #e5e7eb;
    font-size: 0.75rem;
    user-select: none;
}

.dark .raw-line-number {
    background-color: #1f2937;
    border-right-color: #374151;
    color: #6b7280;
}

.raw-line.selected .raw-line-number {
    background-color: #d1fae5;
    color: #059669;
    font-weight: 600;
}

.dark .raw-line.selected .raw-line-number {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.raw-line-content {
    flex: 1;
    padding: 0.5rem 1rem;
    white-space: pre;
    overflow-x: auto;
    color: #374151;
}

.dark .raw-line-content {
    color: #d1d5db;
}

.raw-line.selected .raw-line-content {
    font-weight: 500;
    color: #047857;
}

.dark .raw-line.selected .raw-line-content {
    color: #6ee7b7;
}

/* Indicateur de ligne sélectionnée */
.raw-line.selected::before {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0.5rem;
    color: #10b981;
}

/* Tableau de prévisualisation des colonnes */
.column-preview-table {
    width: 100%;
    border-collapse: collapse;
}

.column-preview-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.dark .column-preview-table th {
    background-color: #1f2937;
    color: #9ca3af;
    border-bottom-color: #374151;
}

.column-preview-table th.selected-column {
    background-color: #ecfdf5;
    color: #059669;
}

.dark .column-preview-table th.selected-column {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.column-preview-table td {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark .column-preview-table td {
    color: #d1d5db;
    border-bottom-color: #374151;
}

.column-preview-table td.selected-column {
    background-color: #ecfdf5;
    font-weight: 500;
}

.dark .column-preview-table td.selected-column {
    background-color: rgba(16, 185, 129, 0.1);
}

/* Interface de mapping */
.mapping-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.15s ease;
}

.dark .mapping-row {
    background-color: #1f2937;
    border-color: #374151;
}

.mapping-row.mapped {
    border-color: #a7f3d0;
    background-color: #ecfdf5;
}

.dark .mapping-row.mapped {
    border-color: #065f46;
    background-color: rgba(16, 185, 129, 0.1);
}

.mapping-row.unmapped {
    border-color: #fcd34d;
    background-color: #fffbeb;
}

.dark .mapping-row.unmapped {
    border-color: #92400e;
    background-color: rgba(245, 158, 11, 0.1);
}

.mapping-external-value {
    flex: 1;
    font-family: monospace;
    font-size: 0.875rem;
    color: #374151;
    padding: 0.5rem 0.75rem;
    background-color: white;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .mapping-external-value {
    background-color: #111827;
    border-color: #374151;
    color: #d1d5db;
}

.mapping-arrow {
    color: #9ca3af;
    flex-shrink: 0;
}

.mapping-select-container {
    flex: 1;
    min-width: 0;
}

.mapping-select {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background-color: white;
    color: #374151;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.dark .mapping-select {
    background-color: #111827;
    border-color: #374151;
    color: #d1d5db;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
}

.mapping-select:focus {
    outline: none;
    ring: 2px;
    ring-color: #10b981;
    border-color: #10b981;
}

.mapping-status {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mapping-status.mapped {
    background-color: #10b981;
    color: white;
}

.mapping-status.unmapped {
    background-color: #f59e0b;
    color: white;
}

/* Scrollbar personnalisée pour les conteneurs de la modal */
#raw-lines-container::-webkit-scrollbar,
#column-preview-container::-webkit-scrollbar,
#mapping-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#raw-lines-container::-webkit-scrollbar-track,
#column-preview-container::-webkit-scrollbar-track,
#mapping-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dark #raw-lines-container::-webkit-scrollbar-track,
.dark #column-preview-container::-webkit-scrollbar-track,
.dark #mapping-container::-webkit-scrollbar-track {
    background: #1f2937;
}

#raw-lines-container::-webkit-scrollbar-thumb,
#column-preview-container::-webkit-scrollbar-thumb,
#mapping-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dark #raw-lines-container::-webkit-scrollbar-thumb,
.dark #column-preview-container::-webkit-scrollbar-thumb,
.dark #mapping-container::-webkit-scrollbar-thumb {
    background: #4b5563;
}

#raw-lines-container::-webkit-scrollbar-thumb:hover,
#column-preview-container::-webkit-scrollbar-thumb:hover,
#mapping-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.dark #raw-lines-container::-webkit-scrollbar-thumb:hover,
.dark #column-preview-container::-webkit-scrollbar-thumb:hover,
.dark #mapping-container::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Badge pour colonnes externes dans le tableau principal */
.external-column-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 500;
    background-color: #ecfdf5;
    color: #059669;
    border-radius: 9999px;
    margin-left: 0.5rem;
}

.dark .external-column-badge {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
