/* Excel Automation Tool - Enhanced Styles */

/* Main Layout with Ad Spaces */
body {
    background: #f3f4f6;
}

.main-layout {
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    gap: 1.5rem;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ad-space {
    min-height: 600px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 20px;
    border: none;
    pointer-events: none;
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    background: transparent;
}

.content-area {
    max-width: 1200px;
}

@media (max-width: 1400px) {
    .main-layout {
        grid-template-columns: 120px 1fr 120px;
    }

    .ad-space {
        min-height: 400px;
    }
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .ad-space {
        display: none;
    }
}

/* Step Cards */
.step-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.step-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.step-card.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

/* Enhanced Upload Zone */
.upload-zone {
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.upload-zone:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    transform: translateY(-2px);
}

.upload-zone.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
}

.upload-icon {
    font-size: 5rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.upload-zone:hover .upload-icon {
    color: #667eea;
    transform: scale(1.1);
}

/* Column Display Grid */
.column-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.column-item {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.column-item:hover {
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.column-type-icon {
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.column-type-icon.text {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #3b82f6;
}

.column-type-icon.number {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #10b981;
}

.column-type-icon.date {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #f59e0b;
}

.column-type-icon.boolean {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
    color: #8b5cf6;
}

.column-type-icon.mixed {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #6b7280;
}

.column-name {
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.column-type {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Enhanced Operation Cards */
.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.operation-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    overflow: hidden;
}

.operation-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.operation-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.25);
}

.operation-card-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.operation-card.active .operation-card-header {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f7ff 100%);
}

.checkbox-wrapper {
    position: relative;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox {
    width: 28px;
    height: 28px;
    border: 3px solid #cbd5e1;
    border-radius: 8px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.checkbox-wrapper input[type="checkbox"]:checked+.custom-checkbox {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: scale(1.1);
}

.checkbox-wrapper input[type="checkbox"]:checked+.custom-checkbox::after {
    content: "✓";
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: checkmarkPop 0.3s ease forwards;
}

@keyframes checkmarkPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.operation-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    transition: all 0.3s ease;
}

.operation-card.active .operation-icon-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.operation-icon {
    font-size: 1.5rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.operation-card.active .operation-icon {
    color: white;
}

.operation-info {
    flex: 1;
}

.operation-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.operation-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.toggle-indicator {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.operation-card.active .toggle-indicator {
    transform: rotate(180deg);
    color: #667eea;
}

.operation-config-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 1.25rem;
}

.operation-card.active .operation-config-panel {
    max-height: 1000px;
    padding: 0 1.25rem 1.25rem;
}

/* Column Selector */
.column-selector {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.selector-header label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.selected-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.column-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
    margin: 1rem 0;
    padding: 0.5rem;
}

.column-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.column-option:hover {
    border-color: #667eea;
    background: #f5f7ff;
    transform: translateY(-2px);
}

.column-option[data-selected="true"] {
    border-color: #667eea;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f7ff 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.column-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.column-option[data-selected="true"] .column-checkbox {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    font-weight: bold;
}

.column-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.column-info .column-type-icon {
    width: 24px;
    height: 24px;
    font-size: 0.875rem;
}

.column-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

.column-type-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7280;
    background: #e5e7eb;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.selector-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.select-all-btn,
.clear-all-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.select-all-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.select-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.clear-all-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.clear-all-btn:hover {
    background: #e5e7eb;
}

/* Radio Group Enhanced */
.radio-group-enhanced {
    margin-top: 1rem;
}

.radio-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.radio-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.radio-option-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.radio-option-card:hover {
    border-color: #667eea;
    background: #f5f7ff;
}

.radio-option-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.radio-option-card input[type="radio"] {
    display: none;
}

.radio-option-card label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.radio-option-card.active label {
    color: #667eea;
}

.radio-option-card label i {
    font-size: 1.1rem;
}

/* Data Preview */
.data-preview-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 2px solid #e5e7eb;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.preview-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-header i {
    color: #667eea;
}

.rows-info {
    font-size: 0.875rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.table-scroll-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 520px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
}

.data-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-preview-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.data-preview-table th.new-column {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.data-preview-table th.new-column::before {
    content: "NEW • ";
    font-size: 0.75rem;
    opacity: 0.9;
}

.data-preview-table td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.data-preview-table tr:hover {
    background: #f9fafb;
}

.data-preview-table tr:nth-child(even) {
    background: #fafafa;
}

.data-preview-table tr:nth-child(even):hover {
    background: #f3f4f6;
}

.data-preview-table td.new-column {
    background: #d1fae5;
    font-weight: 600;
    color: #065f46;
}

.preview-footer {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.info-text {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-text i {
    color: #3b82f6;
}

/* Column Mapping Display */
.column-mapping-display {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 2px solid #e5e7eb;
}

.column-mapping-display h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.column-mapping-display h4 i {
    color: #667eea;
}

.mapping-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.original-columns,
.output-columns {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
}

.mapping-grid .label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.column-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.column-tag {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #667eea;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #c7d2fe;
}

.column-tag.new {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-color: #6ee7b7;
    animation: newColumnPulse 2s infinite;
}

@keyframes newColumnPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.arrow-icon {
    font-size: 2rem;
    color: #9ca3af;
    font-weight: bold;
}

/* Form Controls Enhancement */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #f3f4f6;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: #667eea;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1f2937;
    color: white;
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(150%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
}

.toast.show {
    transform: translateY(0);
}

.toast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.toast.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* Column Item Selection Styles */
.column-item {
    position: relative !important;
    padding-left: 3rem !important;
}

.column-item.selected {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f7ff 100%) !important;
    border-color: #667eea !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25) !important;
}

.det-col-checkbox {
    transition: all 0.2s ease;
}

/* ===== Column Search Box (Step 2) ===== */
.column-search-box {
    position: relative;
    margin-bottom: 1rem;
}

.column-search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.875rem;
}

.column-search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.column-search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== Column List Selectable (Step 2) ===== */
.column-list-selectable {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.column-list-selectable::-webkit-scrollbar {
    width: 8px;
}

.column-list-selectable::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.column-list-selectable::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.column-list-selectable::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.column-item-selectable {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.column-item-selectable:last-child {
    margin-bottom: 0;
}

.column-item-selectable:hover {
    border-color: #667eea;
    background: #f3f4f6;
    transform: translateX(4px);
}

.column-item-selectable.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.column-item-selectable .column-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.column-item-selectable.selected .column-checkbox {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.column-item-selectable .column-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.column-item-selectable .column-name {
    font-weight: 500;
    color: #1f2937;
    flex: 1;
}

.column-item-selectable .column-type {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: #e5e7eb;
    border-radius: 4px;
    color: #6b7280;
    font-weight: 600;
}

.column-item-selectable.selected .column-type {
    background: #10b981;
    color: white;
}

/* ===== Bulk Action Buttons (Step 2) ===== */
.bulk-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bulk-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.bulk-btn.select-all {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.bulk-btn.select-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.bulk-btn.clear-all {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.bulk-btn.clear-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.bulk-btn:active {
    transform: translateY(0);
}

/* =========================================
   2025 Upgrade Styles
   ========================================= */

/* --- Step Locked State --- */
.step-card.locked {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(0.5);
    position: relative;
}

.step-card.locked::after {
    content: "Locked - Reviewing below";
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(55, 65, 81, 0.9);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    z-index: 10;
    pointer-events: none;
}

/* --- Tabbed Interface --- */
.op-tab.active {
    color: #667eea !important;
    border-bottom-color: #667eea !important;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.05), transparent) !important;
}

.op-tab:hover:not(.active) {
    color: #4b5563 !important;
    background: rgba(243, 244, 246, 0.5) !important;
}

/* --- Transitions --- */
.op-tab-content {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Extract Data Button --- */
#extract-data-btn.disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}