.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45); /* slightly lighter */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* Cleaner, more subtle spinner */
.loading-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 3px solid #6366f1;
    border-right: 3px solid rgba(139, 92, 246, 0.7);
    animation: spin 0.7s linear infinite;
}

/* Smooth rotation */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}



/* apps-mapping.blade.php */
.colm_style {
    max-width: 300px;
    text-wrap: wrap !important;
}

.select_options {
    font-size: 15px;
    padding: 5px 0px;
}

/* .form-control{
    width: 80px !important;
    padding-left: 15px;
} */



/* view-instances.blade.php */
.helper-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 250px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px;
    display: block;
    z-index: 1000;
}

.helper-content h5 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
}

.helper-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.helper-content button {
    width: 100%;
}

.progress {
    height: 15px !important;
}

.progress-bar {
    height: 15px !important;
    background-color: #344767 !important;
}

.required_attributes {
    padding: 5px;
    border: 0px;
    font-size: 12px;
    border-radius: 2px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.dropdown .dropdown-toggle:after {
    display: none;
}

.dropdown-menu {
    inset: 0px auto auto 0px !important;
    right: 0px !important;
    left: auto !important;
    top: -15px !important;
    padding: 0px !important;
}

@media screen and (Max-width: 768px) {
    .table_responsiveness {
        overflow: scroll;
    }
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: red;
    /* Inactive color */
    transition: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* Active state */
input:checked+.slider {
    background-color: #82d616;
    /* Active color */
}

input:checked+.slider:before {
    transform: translateX(18px);
}


/* show-logs.blade.php */
.flex-item {
    border: 1px solid #d2d6da;
    border-radius: 5px;
    padding: 20px;
    min-width: 180px;
    max-width: 200px;
}

.flex-item h6 {
    font-size: 16px;
}

.flex-item span {
    font-style: italic;
    font-size: 12px;


}


/* profile-view.blade.php */

.table td,
.table th {
    max-width: 300px;
    text-wrap: auto;
}

.instances_btn {
    background: none;
    border: 0;
}



/* product.blade.php */
.flex_item {
    min-width: 300px;
}


/* log-detail-component.blade.php */

.header {
    background-color: #2f4a72;
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
}

.card-header {
    background-color: #f7f9fc;
    font-weight: bold;
    border-bottom: none;
}

.card-body {
    padding: 20px;
}

.status-section {
    border-right: 1px solid #e0e0e0;
}

.status-section p {
    display: flex;
    justify-content: space-between;
}

.table th,
.table td {
    vertical-align: middle;
}

.action-icons i {
    cursor: pointer;
    margin: 0 5px;
}

.table_tbody tr td {
    font-size: 14px !important;
}


/* log-controller.blade.php */

.table.align-items-center td {
    /* width: 30%; */
    max-width: 300px;
}

/* Base style for all tabs */
.nav-tabs .nav-link {
    color: #344767B5;
    /* Default text color */
    background-color: transparent;
    /* Transparent background */
    border: none;
    /* Remove default border */
    font-weight: 500;
    /* Medium font weight */
    padding: 10px 20px;
    /* Padding for better spacing */
    transition: all 0.3s ease;
    /* Smooth transition for hover effects */
}

/* Active tab style */
.nav-tabs .nav-link.active {
    color: #344767;
    /* Darker text color for active tab */
    font-weight: 600;
    border-bottom: 2px solid #344767;
    /* Underline for active tab */
}

/* Hover effect for tabs */
.nav-tabs .nav-link:hover {
    color: #fff;
    /* Darker text color on hover */
    background-color: rgba(52, 71, 103, 0.05);
    border-radius: 0.5rem;
    background: #243a60;

    /* Light background on hover */
}

/* .table td{
    max-width: 300px !important;
    width: 300px;
} */
#json-display {
    font-size: 12px;
    /* Change this value as needed */
    line-height: 1.5;
    /* Adjust for better readability */
}


/* dashboard2.blade.php */
.btx_cls_hover:hover {
    text-decoration: underline;
}

.instances_btn {
    background: none;
    border: none;
}

/* dashboard.blade.php */
.btx_dashboard_icon {
    background-image: none !important;
    background-color: #344767;
}

.btx_cls_hover:hover {
    text-decoration: underline;
}


/* amazon-product-types.blade.php  */
table.dataTable tbody tr {
    border: #e9ecef;
}


/* mapping-profile.blade.php */
.colm_style {
    max-width: 300px;
    text-wrap: wrap !important;
}

.select_options {
    font-size: 15px;
    padding: 5px 0px;
}



/* products-controller.blade.php */

/* Full-screen overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999;
    /* Ensure it's above everything */
}

/* Spinner animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    /* White spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
    margin-top: 50vh;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btx_font_styl {
    font-size: 12px;
}

.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link.active {
    border-radius: 0.5rem;
    background: #243a60;
    color: white;
    border: none;
}

.nav-tabs .nav-link {
    color: white;
}

.nav-tabs .nav-link:hover {
    border-radius: 0.5rem;
}

.product-Details .table-responsive {
    height: 400px;
    overflow-y: auto;
}

th,
td,
table {
    border-collapse: collapse;
}

.table-bordered> :not(caption)>* {
    border-width: 0px;
}

.table thead th {
    padding: 0.75rem 1.5rem;
    text-transform: capitalize;
    letter-spacing: 0px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

/* .modal {
            top: 20vh !important;
        } */

/* Custom CSS */

nav[role='navigation'] {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

nav[role='navigation']>div.flex {
    display: none;
}

nav[role='navigation']>div.hidden>div+div {
    text-align: center;
}

nav[role='navigation']>div.hidden>div+div svg {
    width: 25px !important;
}

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
    margin-left: 10px;
    vertical-align: middle;
}

.table tbody td {
    font-size: 13px;
}

/* Toast on Dasboard Page */

#simpleToast.error {
    background: #f53939;
}

#simpleToast.success {
    background: #14a44d;
}

#simpleToast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 999;
    left: 50%;
    bottom: 30px;
    font-family: monospace;
    display: inline-flex;
    line-height: 12px;
    z-index: 9999999999;
}

#simpleToast span {
    margin-left: 12px;
    margin-top: 2px;
}

#simpleToast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.main-content .bdc-col{
    position: relative;
    z-index: 999;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════
resources/views/livewire/pim/product-csv-upload.blade.php  
════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════
ALL selectors scoped to .pim-upload-wrap
— nothing bleeds into the host navbar/sidebar
════════════════════════════════════════════════ */

.pim-upload-wrap *,
.pim-upload-wrap *::before,
.pim-upload-wrap *::after {
    box-sizing: border-box;
}
.pim-upload-wrap{
    background-color: #F0F4F8;
    padding: 16px 0;
}

/* Sub-bar */
.pim-upload-wrap .pim-topbar {
    /* background: #1e2d3d; */
    color: #fff;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 32px;
}
.pim-upload-wrap .pim-topbar .brand  { font-size: 15px; font-weight: 600; letter-spacing:.01em; }
.pim-upload-wrap .pim-topbar .dist   { font-size: 13px; color: #aec6d8; }

/* Card */
.pim-upload-wrap .pim-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    max-width: 1140px;
    margin: 0 auto;
}

/* Drop zone */
.pim-upload-wrap .drop-zone {
    border: 2px dashed #b0c4d8;
    border-radius: 10px;
    padding: 36px 24px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
    background: #f8fbff;
}
.pim-upload-wrap .drop-zone:hover,
.pim-upload-wrap .drop-zone.drag-over {
    border-color: #3a8fd6;
    background: #eef6fd;
}
.pim-upload-wrap .drop-icon {
    width: 52px; height: 52px;
    margin: 0 auto 14px;
    background: #3a8fd6;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.pim-upload-wrap .drop-icon svg { width: 26px; height: 26px; fill: #fff; }
.pim-upload-wrap .drop-title {
    font-size: 15px; font-weight: 500; color: #2c3e50; margin-bottom: 4px;
}
.pim-upload-wrap .drop-or {
    display: flex; align-items: center; gap: 10px;
    margin: 14px 0; color: #aab8c6; font-size: 12px;
}
.pim-upload-wrap .drop-or::before,
.pim-upload-wrap .drop-or::after {
    content: ''; flex: 1; height: 1px; background: #dce6ef;
}

/* File-choose row */
.pim-upload-wrap .file-choose-row {
    display: flex; align-items: center;
    border: 1px solid #d1dce8; border-radius: 6px;
    overflow: hidden; background: #fff;
}
.pim-upload-wrap .fcr-label {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    font-size: 13px; font-weight: 500; color: #3a5068;
    border-right: 1px solid #d1dce8;
    cursor: pointer; white-space: nowrap;
    background: #f4f8fb; transition: background .15s;
    margin: 0; line-height: 1.4;
}
.pim-upload-wrap .fcr-label:hover { background: #e8f1f9; }
.pim-upload-wrap .fcr-label svg { width: 16px; height: 16px; color: #6e8caa; flex-shrink: 0; }
.pim-upload-wrap .file-name {
    flex: 1; padding: 9px 12px; font-size: 13px; color: #a0b3c6;
}
.pim-upload-wrap .file-hint {
    margin-top: 8px; font-size: 11.5px; color: #a0b3c6; text-align: center;
}

/* Info banner */
.pim-upload-wrap .info-banner {
    margin-top: 18px;
    background: #fffbe6; border: 1px solid #f5d96b;
    border-radius: 8px; padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pim-upload-wrap .info-left { display: flex; align-items: flex-start; gap: 10px; }
.pim-upload-wrap .info-icon {
    width: 30px; height: 30px; border-radius: 50%;
    background: #f5d96b;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 15px; color: #7a5f00; font-weight: 700;
}
.pim-upload-wrap .info-text { font-size: 13px; }
.pim-upload-wrap .info-text strong { display: block; color: #2c3e50; font-size: 13px; margin-bottom: 2px; }
.pim-upload-wrap .info-text span  { color: #7a8fa6; font-size: 12px; }
.pim-upload-wrap .btn-download {
    background: #f5a623; color: #fff !important;
    border: none; border-radius: 6px; padding: 9px 16px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; transition: background .15s;
    text-decoration: none !important; line-height: 1.4;
}
.pim-upload-wrap .btn-download:hover { background: #d9891a; }
.pim-upload-wrap .btn-download svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* Action buttons */
.pim-upload-wrap .action-row {
    margin-top: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.pim-upload-wrap .btn-upload {
    background: #27ae60; color: #fff; border: none; border-radius: 6px;
    padding: 11px 30px; font-size: 14px; font-weight: 700;
    letter-spacing: .05em; cursor: pointer; transition: background .15s; line-height: 1.4;
}
.pim-upload-wrap .btn-upload:hover    { background: #1e9451; }
.pim-upload-wrap .btn-upload:disabled { opacity: .6; cursor: not-allowed; }
.pim-upload-wrap .btn-cancel {
    background: #fff; color: #4a6175;
    border: 1.5px solid #cdd9e5; border-radius: 6px;
    padding: 10px 22px; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: border-color .15s; line-height: 1.4;
}
.pim-upload-wrap .btn-cancel:hover { border-color: #a0b3c6; }

/* Progress */
.pim-upload-wrap .progress-wrap  { margin-top: 18px; }
.pim-upload-wrap .progress-label { font-size: 12px; color: #7a8fa6; margin-bottom: 6px; }
.pim-upload-wrap .progress-bar-track {
    background: #e4ecf3; border-radius: 99px; height: 6px; overflow: hidden;
}
.pim-upload-wrap .progress-bar-fill {
    height: 100%; background: #3a8fd6; border-radius: 99px;
    width: 0%; transition: width .4s ease;
}
.pim-upload-wrap .progress-pct { font-size: 12px; color: #7a8fa6; text-align: right; margin-top: 4px; }

/* Right column */
.pim-upload-wrap .section-label { font-size: 14px; font-weight: 600; color: #2c3e50; margin-bottom: 10px; }
.pim-upload-wrap .lang-select {
    width: 100%; border: 1.5px solid #d1dce8; border-radius: 7px;
    padding: 10px 36px 10px 12px; font-size: 13px; color: #4a6175; background: #fff;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236e8caa' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; cursor: pointer;
}
.pim-upload-wrap .lang-select:focus { outline: none; border-color: #3a8fd6; }

.pim-upload-wrap .settings-card {
    margin-top: 24px; border: 1.5px solid #e0eaf3; border-radius: 9px; padding: 18px;
}
.pim-upload-wrap .settings-row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; color: #4a6175;
}

/* Toggle */
.pim-upload-wrap .toggle-wrap {
    position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0;
}
.pim-upload-wrap .toggle-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }
.pim-upload-wrap .toggle-slider {
    position: absolute; inset: 0; background: #cdd9e5;
    border-radius: 99px; cursor: pointer; transition: background .2s;
}
.pim-upload-wrap .toggle-slider::before {
    content: ''; position: absolute;
    width: 18px; height: 18px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%;
    transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.pim-upload-wrap .toggle-wrap input:checked + .toggle-slider { background: #27ae60; }
.pim-upload-wrap .toggle-wrap input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Misc */
.pim-upload-wrap .alert-success {
    background: #d4edda; color: #155724; border: 1px solid #c3e6cb;
    border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px;
}
.pim-upload-wrap .field-error { color: #e74c3c; font-size: 12px; margin-top: 4px; display: block; }
.pim-upload-wrap .uploading-indicator {
    font-size: 13px; color: #3a8fd6; display: flex; align-items: center; gap: 8px;
}
.pim-upload-wrap .spinner {
    width: 16px; height: 16px;
    border: 2px solid #c3dff5; border-top-color: #3a8fd6;
    border-radius: 50%; animation: pim-spin .7s linear infinite;
}
@keyframes pim-spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
    .pim-upload-wrap .pim-card { grid-template-columns: 1fr; margin: 0 12px; }
}

.csv-mapping-wrapper {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #1a1a2e;
    background: #f4f6f9;
    min-height: 100vh;
}

/* Top bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 48px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.breadcrumb-nav { display: flex; align-items: center; gap: 6px; }
.bc-item { color: #6b7280; font-size: 13px; }
.bc-item.active { color: #111827; font-weight: 600; }
.bc-sep { color: #d1d5db; }
.top-bar-right { display: flex; align-items: center; gap: 8px; }
.company-name { font-size: 12px; color: #6b7280; margin-right: 8px; }
.btn-back {
    padding: 6px 14px; border: 1px solid #d1d5db; border-radius: 6px;
    background: #fff; color: #374151; font-size: 12px; cursor: pointer;
}
.btn-back:hover { background: #f9fafb; }
.btn-save-mapping {
    padding: 6px 16px; border: none; border-radius: 6px;
    background: #10b981; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-save-mapping:hover { background: #059669; }
.btn-save-mapping:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-auto-map {
    padding: 6px 14px; border: 1px solid #d1d5db; border-radius: 6px;
    background: #fff; color: #374151; font-size: 12px; cursor: pointer;
}

/* Required bar */
.required-bar {
    background: #eff6ff; border-bottom: 1px solid #bfdbfe;
    padding: 8px 24px; display: flex; align-items: center; gap: 10px;
}
.required-label { font-weight: 600; color: #1d4ed8; font-size: 12px; }
.required-values { color: #374151; font-size: 12px; }

.alert-danger-bar { background: #fef2f2; color: #b91c1c; padding: 10px 24px; font-size: 13px; border-bottom: 1px solid #fecaca; }
.alert-success-bar { background: #f0fdf4; color: #166534; padding: 10px 24px; font-size: 13px; border-bottom: 1px solid #bbf7d0; }

/* Layout */
.mapping-layout { display: flex; height: calc(100vh - 96px); overflow: hidden; }

/* Sidebar */
.field-groups-sidebar {
    width: 230px;
    min-width: 230px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 16px;
}
.sidebar-title { padding: 14px 16px 8px; font-weight: 700; font-size: 13px; color: #111827; }
.sidebar-search {
    display: flex; align-items: center; gap: 6px;
    margin: 0 12px 8px; padding: 6px 10px;
    border: 1px solid #e5e7eb; border-radius: 6px; background: #f9fafb;
}
.sidebar-search input { border: none; background: transparent; outline: none; font-size: 12px; color: #374151; width: 100%; }
.sidebar-search svg { color: #9ca3af; flex-shrink: 0; }

.filter-tabs { display: flex; margin: 0 12px 12px; gap: 4px; }
.filter-tab {
    flex: 1; padding: 5px 0; border: 1px solid #e5e7eb; border-radius: 5px;
    background: #fff; font-size: 11px; color: #6b7280; cursor: pointer;
}
.filter-tab.active { background: #111827; color: #fff; border-color: #111827; }

.group-section { padding: 0 0 4px; }
.group-section-label { padding: 8px 16px 4px; font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: 0.06em; text-transform: uppercase; }
.group-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 16px; cursor: pointer; border-radius: 0;
    transition: background 0.15s;
}
.group-item:hover { background: #f9fafb; }
.group-item.active { background: #eff6ff; border-left: 3px solid #3b82f6; }
.group-name { flex: 1; font-size: 12.5px; color: #374151; }
.group-count {
    font-size: 11px; font-weight: 600; color: #fff;
    background: #6b7280; padding: 1px 7px; border-radius: 10px; min-width: 24px; text-align: center;
}
.group-count.warn { background: #f59e0b; }

/* Dots */
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-blue   { background: #3b82f6; }
.dot-blue2  { background: #60a5fa; }
.dot-red    { background: #ef4444; }
.dot-teal   { background: #14b8a6; }
.dot-purple { background: #8b5cf6; }
.dot-orange { background: #f97316; }
.dot-green  { background: #22c55e; }
.dot-pink   { background: #ec4899; }

/* Sidebar footer */
.sidebar-footer { margin-top: auto; padding: 12px 16px; border-top: 1px solid #f3f4f6; }
.progress-label { display: flex; justify-content: space-between; font-size: 11px; color: #6b7280; margin-bottom: 6px; }
.progress-label strong { color: #111827; }
.progress-bar-wrap { height: 5px; background: #e5e7eb; border-radius: 10px; overflow: hidden; margin-bottom: 4px; }
.progress-bar-fill { height: 100%; background: #10b981; border-radius: 10px; transition: width 0.3s; }
.progress-sub { font-size: 11px; color: #9ca3af; }

/* Main area */
.mapping-main {
    flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #f4f6f9;
}
.mapping-table { width: 100%; border-collapse: collapse; background: #fff; }
.mapping-table thead tr {
    background: #fff; border-bottom: 1px solid #e5e7eb;
}
.mapping-table th {
    padding: 11px 20px; font-size: 12px; font-weight: 600; color: #6b7280;
    text-align: left; position: sticky; top: 0; background: #fff; z-index: 1;
}
.mapping-table th:first-child { width: 35%; }

.map-row { border-bottom: 1px solid #f3f4f6; transition: background 0.1s; }
.map-row:hover { background: #fafafa; }
.csv-field-cell { padding: 10px 20px; font-size: 13px; font-weight: 500; color: #111827; width: 35%; }
.connect-field-cell { padding: 6px 20px 6px 0; }

/* Connect select styled */
.connect-select {
    width: 100%; padding: 7px 12px;
    border: 1px solid #e5e7eb; border-radius: 6px;
    background: #fff; color: #6b7280; font-size: 13px;
    appearance: none; cursor: pointer; outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    padding-right: 28px;
}
.connect-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,.15); }
.is-mapped .connect-select { color: #111827; border-color: #d1fae5; background-color: #f0fdf4; }

/* Hide select2 and use native for simplicity; Select2 will override if loaded */
.select2-container { width: 100% !important; }
.select2-selection--single {
    height: 34px !important; border: 1px solid #e5e7eb !important;
    border-radius: 6px !important; background: #fff !important;
    display: flex !important; align-items: center !important;
}
.is-mapped .select2-selection--single { border-color: #d1fae5 !important; background-color: #f0fdf4 !important; }
.select2-selection__rendered { line-height: 34px !important; color: #374151 !important; padding: 0 10px !important; font-size: 13px !important; }
.select2-selection__arrow { height: 34px !important; }

/* Table scroll */
.mapping-main > table, .mapping-main > div:first-child { flex: 1; overflow-y: auto; }
div.table-scroll { flex: 1; overflow-y: auto; }

/* Footer */
.table-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; background: #fff; border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.footer-left { font-size: 12px; color: #6b7280; }
.footer-center { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; }
.rows-select { border: 1px solid #e5e7eb; border-radius: 4px; padding: 3px 6px; font-size: 12px; }
.footer-right { display: flex; align-items: center; gap: 4px; }
.pg-btn {
    width: 28px; height: 28px; border: 1px solid #e5e7eb; border-radius: 5px;
    background: #fff; color: #374151; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pg-btn:hover:not(:disabled) { background: #f3f4f6; }
.pg-btn.active { background: #111827; color: #fff; border-color: #111827; }
.pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pg-ellipsis { font-size: 12px; color: #9ca3af; padding: 0 2px; }
.ml-3 { margin-left: 12px; }

/* Scrollable table body */
.mapping-main { position: relative; }
.table-wrap { flex: 1; overflow-y: auto; }
