/* Modern Design System - Enterprise Blue & Violet Theme */
:root {
    /* Color Palette */
    --primary: #4F46E5;
    /* Indigo 600 */
    --primary-dark: #4338CA;
    /* Indigo 700 */
    --primary-light: #818CF8;
    /* Indigo 400 */
    --primary-soft: #EEF2FF;
    /* Indigo 50 */

    --secondary: #7C3AED;
    /* Violet 600 */
    --secondary-dark: #6D28D9;
    /* Violet 700 */

    --accent: #06B6D4;
    /* Cyan 500 */

    --success: #10B981;
    /* Emerald 500 */
    --success-dark: #059669;
    /* Emerald 600 */
    --success-soft: #D1FAE5;
    /* Emerald 50 */

    --warning: #F59E0B;
    /* Amber 500 */
    --warning-soft: #FEF3C7;
    /* Amber 50 */

    --danger: #EF4444;
    /* Red 500 */
    --danger-soft: #FEE2E2;
    /* Red 50 */

    /* Neutral / Grays */
    --dark: #1E293B;
    /* Slate 800 */
    --dark-soft: #334155;
    /* Slate 700 */
    --gray: #64748B;
    /* Slate 500 */
    --gray-light: #94A3B8;
    /* Slate 400 */
    --border: #E2E8F0;
    /* Slate 200 */
    --border-light: #F1F5F9;
    /* Slate 100 */
    --bg-body: #F8FAFC;
    /* Slate 50 */
    --surface: #FFFFFF;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(79, 70, 229, 0.3);

    --radius-sm: 0.375rem;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-image: linear-gradient(to bottom right, #eff6ff, #f3e8ff, #ffffff);
    background-attachment: fixed;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* Component: Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 2.5rem;
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Header Section */
header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
}

.app-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    font-weight: 400;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    background: var(--bg-body);
    padding: 0.5rem;
    border-radius: var(--radius-full);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--dark);
    background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-content.hidden {
    display: none;
}

/* Compare & Convert Steps */
.compare-step,
.convert-step {
    display: none;
}

.compare-step:not(.hidden),
.convert-step:not(.hidden) {
    display: block;
}

/* Compare Table Styles */
.compare-different {
    background-color: var(--danger-soft) !important;
    color: var(--danger);
    font-weight: 500;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-light);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-line {
    flex: 1;
    height: 3px;
    background: var(--border);
    margin: 0 -10px;
    /* Overlap slightly */
    transform: translateY(-1.25rem);
    /* Align with circle center */
    z-index: 1;
    position: relative;
}

.step-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.6s ease;
}

/* Active & Completed States */
.step-item.active .step-number {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.step-item.active .step-label {
    color: var(--primary);
}

.step-item.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-item.completed .step-label {
    color: var(--success-dark);
}

.step-line.completed::after {
    width: 100%;
}

/* Step Content Sections */
.step h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.info-text {
    background: var(--primary-soft);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--dark-soft);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* File Upload Logic */
.upload-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.upload-box {
    background: white;
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-box:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3rem;
    color: var(--gray-light);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.upload-box:hover .upload-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.upload-box label {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-info {
    font-size: 0.9rem;
    color: var(--success-dark);
    margin-top: 1rem;
    font-weight: 500;
    min-height: 1.5em;
    /* Prevent layout shift */
}

/* Steps 2 & 3: Configuration & Mapping */
.config-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.config-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.config-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.config-box label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

/* Styled Selects */
select,
.custom-select-button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--bg-body);
    font-size: 0.95rem;
    color: var(--dark);
    transition: all 0.2s;
    appearance: none;
    -webkit-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.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

select:focus,
.custom-select-button:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Mapping Container */
.mapping-container {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.mapping-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.mapping-row:last-child {
    border-bottom: none;
}

.mapping-row:hover {
    background: var(--bg-body);
}

.mapping-row label {
    font-weight: 500;
    color: var(--dark-soft);
    font-size: 0.95rem;
}

/* Actions / Buttons */
.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
    letter-spacing: 0.01em;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--dark-soft);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-body);
    border-color: var(--gray-light);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(16, 185, 129, 0.5);
}

/* Custom Select Specifics (from original but modernized) */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-button {
    background-image: none;
    /* Reset standard arrow */
    justify-content: space-between;
    position: relative;
    padding-right: 2.5rem;
}

/* Hide text-based arrow symbol */
.custom-select-button .select-arrow,
.custom-select-button .arrow {
    display: none;
}

/* CSS-based dropdown arrow */
.custom-select-button::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--gray);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 250px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    z-index: 50;
    overflow: hidden;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.custom-select-dropdown.show {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

.custom-select-search {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid var(--border);
    outline: none;
    background: var(--bg-body);
}

.custom-select-options {
    overflow-y: auto;
    max-height: 200px;
}

.custom-select-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 0.9rem;
}

.custom-select-option:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.custom-select-option.selected {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

/* Preview Table */
.preview-table {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th {
    background: var(--bg-body);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-soft);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--gray);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--primary-soft);
}

tr.warning td {
    background: var(--warning-soft);
    color: var(--warning);
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    z-index: 100;
    min-width: 320px;
    max-width: 400px;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--gray);
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.notification-message {
    font-size: 0.9rem;
    color: var(--gray);
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    font-size: 1.25rem;
}

/* Animations */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stats */
.stats-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.stat-item .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item .label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .upload-section,
    .config-section {
        grid-template-columns: 1fr;
    }

    .step-indicator {
        padding: 0;
    }

    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .step-label {
        display: none;
    }

    /* Hide labels on mobile to save space */
}

/* Info Box / Tips */
.info-box {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.info-tips {
    background: var(--warning-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: var(--warning-dark);
}

/* Help Button */
.btn-help {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.btn-help:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

header {
    position: relative;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: fadeSlideUp 0.3s ease;
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary-soft) 0%, white 100%);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--dark);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

/* Help Section Styles */
.help-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.help-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.help-section h3 {
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.help-section>p {
    color: var(--gray);
    margin: 0 0 1rem 0;
}

.help-steps {
    background: var(--bg-body);
    border-radius: var(--radius);
    padding: 1rem;
}

.help-steps p {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
}

.help-steps ol,
.help-steps ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.help-steps li {
    margin-bottom: 0.5rem;
    color: var(--dark-soft);
}

.help-steps li strong {
    color: var(--dark);
}

.help-tips {
    background: linear-gradient(135deg, var(--success-soft) 0%, #ECFDF5 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.help-tips h3 {
    color: var(--success-dark);
}

.help-tips ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.help-tips li {
    margin-bottom: 0.5rem;
    color: var(--success-dark);
}

.help-tips code {
    background: white;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Export Feature Styles */
.export-step {
    display: block;
}

.export-step.hidden {
    display: none;
}

.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .config-grid {
        grid-template-columns: 1fr;
    }
}

.config-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.config-box h3 {
    margin: 0 0 1rem 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.column-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.column-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-body);
}

.column-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

.column-item:last-child {
    border-bottom: none;
}

.column-item:hover {
    background: white;
}

.column-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.column-item .column-name {
    flex: 1;
    font-weight: 500;
    color: var(--dark);
}

.column-item .column-rename {
    width: 120px;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.85rem;
}

.column-item .column-rename:focus {
    outline: none;
    border-color: var(--primary);
}

.column-item.custom-column {
    background: var(--primary-soft);
}

.column-item.custom-column .column-name {
    color: var(--primary);
    font-style: italic;
}

.column-item .btn-remove {
    padding: 0.25rem 0.5rem;
    background: var(--danger-soft);
    color: var(--danger);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.column-item .btn-remove:hover {
    background: var(--danger);
    color: white;
}

.hint {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0 0 0.75rem 0;
}

/* Column order badge */
.column-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Available column hover effect */
.column-item.available-column:hover {
    background: var(--primary-soft);
}

.column-item.available-column:hover .column-name {
    color: var(--primary) !important;
}

/* Selected column styling */
.column-item.selected-column {
    border-left: 3px solid var(--success);
}

/* Footer Styles */
.app-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.9rem;
    padding-bottom: 1rem;
}

.app-footer strong {
    color: var(--primary);
    font-weight: 600;
}