/* --- Premium CSS Design System for SKU MOTOR --- */

:root {
    /* Color Palette - Premium Violet/Neon Theme */
    --bg-main: #0a0815;
    --bg-card: rgba(18, 15, 32, 0.75);
    --bg-card-hover: rgba(26, 22, 46, 0.85);
    --bg-nested: rgba(28, 24, 50, 0.5);
    --border-color: rgba(124, 77, 255, 0.2);
    --border-color-focus: rgba(124, 77, 255, 0.6);
    --text-main: #f3f0ff;
    --text-muted: #a59fb8;
    --text-inverse: #0a0815;
    
    --primary: #8a2be2;
    --primary-glow: rgba(138, 43, 226, 0.4);
    --primary-gradient: linear-gradient(135deg, #7c4dff 0%, #b388ff 100%);
    --secondary: #1f1b35;
    --secondary-hover: #292447;
    --success: #00e676;
    --success-bg: rgba(0, 230, 118, 0.15);
    --error: #ff1744;
    --error-bg: rgba(255, 23, 68, 0.15);
    --warning: #ffea00;
    --warning-bg: rgba(255, 234, 0, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
    --border-radius-sm: 4px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme overrides */
[data-theme="light"] {
    --bg-main: #f8f9fc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-nested: rgba(241, 243, 249, 0.8);
    --border-color: rgba(124, 77, 255, 0.15);
    --border-color-focus: rgba(124, 77, 255, 0.5);
    --text-main: #1f1c2c;
    --text-muted: #6e6b7e;
    --text-inverse: #f3f0ff;
    
    --secondary: #eef0f6;
    --secondary-hover: #e2e5f0;
    --success-bg: rgba(0, 200, 83, 0.12);
    --error-bg: rgba(213, 0, 0, 0.1);
    --shadow-premium: 0 8px 24px 0 rgba(124, 77, 255, 0.08);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.3s ease;
}

/* Dynamic glow balls background */
.glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-bg::before, .glow-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    transition: all 0.5s ease;
}

.glow-bg::before {
    background: var(--primary);
    top: -150px;
    left: -100px;
    animation: drift 20s infinite alternate;
}

.glow-bg::after {
    background: #ff007f;
    bottom: -150px;
    right: -100px;
    animation: drift 25s infinite alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 80px) scale(1.2); }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-color-focus);
}

/* Layout Wrapper */
.app-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    font-size: 32px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px var(--primary-glow));
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--text-main) 0%, #b388ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 2px;
}

.btn-icon {
    background: var(--secondary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    border-color: var(--border-color-focus);
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.2);
}

/* Card Style */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    padding: 32px;
}

.card-nested {
    background: var(--bg-nested);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

/* Wizard Steps Progress */
.wizard-progress {
    position: relative;
    margin-bottom: 40px;
    padding: 0 20px;
}

.progress-bar {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.step-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
    transition: var(--transition-smooth);
    text-align: center;
}

.step-node.active .step-num {
    border-color: #7c4dff;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    box-shadow: 0 0 15px var(--primary-glow);
    font-weight: 700;
}

.step-node.active .step-label {
    color: var(--text-main);
    font-weight: 600;
}

.step-node.completed .step-num {
    border-color: var(--success);
    background: var(--success-bg);
    color: var(--success);
}

.step-node.completed .step-label {
    color: var(--text-main);
}

/* Step Content Panels */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.step-content.active {
    display: block;
}

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

.step-intro {
    margin-bottom: 28px;
}

.step-intro h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.step-intro p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Upload Container */
.upload-container {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-nested);
    transition: var(--transition-smooth);
    margin-bottom: 24px;
}

.upload-container:hover, .upload-container.drag-over {
    border-color: var(--border-color-focus);
    background: rgba(124, 77, 255, 0.05);
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.1) inset;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.upload-container:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 8px;
}

.file-limits {
    color: var(--text-muted);
    font-size: 12px;
}

/* File Info Box */
.file-info-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-nested);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    margin-bottom: 32px;
    animation: fadeIn 0.3s ease;
}

.info-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-icon {
    font-size: 28px;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-details .name {
    font-weight: 600;
    color: var(--text-main);
}

.file-details .size {
    font-size: 12px;
    color: var(--text-muted);
}

/* Mapping Controls */
.mapping-container {
    animation: fadeIn 0.4s ease;
}

.section-title {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.section-title h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

.section-title p {
    color: var(--text-muted);
    font-size: 12px;
}

.sheet-selector-wrapper {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(124, 77, 255, 0.05);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.sheet-selector-wrapper label {
    font-weight: 600;
    white-space: nowrap;
}

.mapping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.mapping-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mapping-field label {
    font-weight: 600;
    font-size: 14px;
}

.mapping-field label .required {
    color: var(--error);
}

.field-desc {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.3;
    min-height: 28px;
}

/* Forms controls */
.form-select, .form-input {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: var(--border-radius-md);
    outline: none;
    font-family: var(--font-body);
    font-size: 13px;
    transition: var(--transition-smooth);
}

.form-select:focus, .form-input:focus {
    border-color: var(--border-color-focus);
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.15);
}

.form-select option {
    background-color: var(--bg-main);
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--border-radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 10px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: var(--secondary);
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--secondary-hover);
    border-color: var(--border-color-focus);
}

.btn-success {
    background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
    color: #0a0815;
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 230, 118, 0.4);
    filter: brightness(1.1);
}

.btn-text-danger {
    background: transparent;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 4px 8px;
}

.btn-text-danger:hover {
    background: var(--error-bg);
    border-radius: var(--border-radius-sm);
}

.btn-arrow {
    font-size: 14px;
    transition: var(--transition-smooth);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-secondary:hover .btn-arrow {
    transform: translateX(-3px);
}

.action-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Colors and Sizes Mapping Lists & Tables */
.color-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-box input {
    padding-left: 36px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23a59fb8" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: 12px center;
}

.mapping-table-wrapper {
    max-height: 480px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--bg-nested);
}

.mapping-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.mapping-table th, .mapping-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.mapping-table th {
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mapping-table tbody tr {
    transition: var(--transition-smooth);
}

.mapping-table tbody tr:hover {
    background-color: rgba(124, 77, 255, 0.04);
}

.mapping-table tr.merged-child {
    background-color: rgba(124, 77, 255, 0.02);
}

.mapping-table tr.merged-child td:first-child {
    padding-left: 36px;
    position: relative;
}

.mapping-table tr.merged-child td:first-child::before {
    content: '↳';
    position: absolute;
    left: 20px;
    color: var(--text-muted);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success {
    background-color: var(--success-bg);
    color: var(--success);
}

.badge-error {
    background-color: var(--error-bg);
    color: var(--error);
}

.badge-warning {
    background-color: var(--warning-bg);
    color: var(--warning);
}

/* Step 4 Config Panel & Previews */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.config-item label {
    font-weight: 500;
    font-size: 12px;
    color: var(--text-muted);
}

.checkbox-item {
    justify-content: flex-end;
    padding-bottom: 8px;
}

.checkbox-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}

.formula-info {
    font-size: 12px;
    background-color: var(--bg-main);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    border: 1px dashed var(--border-color);
}

.formula-info code {
    background: rgba(124, 77, 255, 0.15);
    color: #b388ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    display: inline-block;
    margin-top: 4px;
    margin-bottom: 8px;
}

.formula-demo {
    color: var(--text-muted);
    font-style: italic;
}

.preview-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    gap: 8px;
}

.btn-tab {
    background: var(--secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-tab:hover {
    color: var(--text-main);
    border-color: var(--border-color-focus);
}

.btn-tab.active {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-tab.tab-error.active {
    background: var(--error);
    border-color: var(--error);
    box-shadow: 0 2px 8px rgba(255, 23, 68, 0.3);
}

.btn-tab.tab-success.active {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 2px 8px rgba(0, 230, 118, 0.3);
}

.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--bg-nested);
    margin-bottom: 16px;
    max-height: 400px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.preview-table th, .preview-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}

.preview-table th {
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.preview-table tbody tr.row-invalid {
    background-color: rgba(255, 23, 68, 0.03);
}

.preview-table tbody tr.row-invalid:hover {
    background-color: rgba(255, 23, 68, 0.06);
}

.preview-table tbody tr:hover:not(.row-invalid) {
    background-color: rgba(124, 77, 255, 0.04);
}

.preview-table code {
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 4px;
}

.pagination-buttons {
    display: flex;
    gap: 8px;
}

/* Step 5: Success & Export */
.success-screen {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.success-screen h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(90deg, var(--success) 0%, #00e676 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-screen p {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 48px auto;
}

.stat-card {
    background: var(--bg-nested);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-color-focus);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.success {
    border-color: rgba(0, 230, 118, 0.3);
    background: rgba(0, 230, 118, 0.05);
}

.stat-card.success .stat-value {
    color: var(--success);
}

.export-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Footer */
.app-footer {
    margin-top: auto;
    padding-top: 48px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* Toast Message */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1f1b35;
    border: 1px solid var(--border-color-focus);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 8, 21, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    animation: modalScale 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.close-modal {
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.selected-colors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--bg-nested);
    padding: 12px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.selected-colors-list .color-tag {
    background: rgba(124, 77, 255, 0.15);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Checkbox and inline elements alignment */
.checkbox-cell {
    text-align: center;
}

.row-action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition-smooth);
}

.row-action-btn:hover {
    border-color: var(--border-color-focus);
    color: var(--text-main);
    background: rgba(124, 77, 255, 0.05);
}

/* Fluid Responsive tweaks */
@media (max-width: 768px) {
    .wizard-progress {
        padding: 0;
    }
    .progress-bar {
        left: 20px;
        right: 20px;
    }
    .step-label {
        display: none;
    }
    .step-num {
        width: 36px;
        height: 36px;
    }
    .card {
        padding: 20px 16px;
    }
    .color-tools {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        max-width: 100%;
    }
    .preview-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .export-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* File Queue Styles */
.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.queue-header h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
}

.file-queue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.file-queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(124, 77, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 10px 16px;
    animation: fadeIn 0.3s ease;
}

.file-queue-item:hover {
    background: rgba(124, 77, 255, 0.05);
    border-color: var(--border-color-focus);
}

/* Step 2 buttons alignment */
.color-tools-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .color-tools-left {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}

