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

:root {
    /* Navy/Blue Color Palette */
    --navy-900: #0A1628;
    --navy-800: #1A2942;
    --navy-700: #2D4A9E;
    --navy-600: #3B5BA8;
    --navy-500: #4A6FBD;
    --blue-400: #5D88D6;
    --blue-300: #7FA3E8;
    --blue-200: #A8C4F3;
    --blue-100: #D4E4FC;
    --blue-50: #EBF3FE;

    /* Neutral Colors */
    --gray-950: #0F1419;
    --gray-900: #18202F;
    --gray-800: #252E3F;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;

    /* Semantic Colors */
    --background: var(--gray-50);
    --card-bg: var(--white);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --border: var(--gray-200);
    --input-bg: var(--white);
    --input-border: var(--gray-300);
    --primary: var(--navy-700);
    --primary-hover: var(--navy-600);
    --success: #10B981;
    --success-bg: #ECFDF5;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius: 10px;
    --radius-lg: 12px;
    --radius-sm: 6px;
}

/* Typography */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: none;
    margin: 0;
    padding: 1rem 1.25rem 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    flex: 1;
    align-items: stretch;
    min-height: 0;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr minmax(320px, 360px);
    }
}

/* Controls Panel */
.controls-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

.layout-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.menu-toggle-icon {
    position: relative;
    width: 18px;
    height: 14px;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.menu-toggle-icon::before {
    top: 0;
    box-shadow: 0 6px 0 currentColor;
}

.menu-toggle-icon::after {
    bottom: 0;
}

.menu-toggle-label {
    font-size: 0.8125rem;
    font-weight: 600;
}

.app-container.menu-collapsed .menu-toggle {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.app-container.menu-collapsed .menu-toggle:hover {
    background: var(--primary-hover);
}

.app-container.menu-collapsed #controlsPanel {
    display: none;
}

.app-container.menu-collapsed .content-grid {
    grid-template-columns: 1fr;
}

/* Accordion Styles */
.accordion {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

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

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.125rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.accordion-trigger:hover {
    background-color: var(--gray-50);
}

.accordion-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.accordion-icon {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.accordion-item[data-accordion-open="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.2s ease;
}

.accordion-item[data-accordion-open="true"] .accordion-content {
    max-height: 2000px;
    padding: 0.75rem 1.125rem 1.125rem;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.125rem 0;
}

.random-placement .btn-outline {
    align-self: flex-start;
}

.random-placement .helper-text {
    margin: 0;
    max-width: 20rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.label-value {
    color: var(--primary);
    font-weight: 700;
}

.file-input,
.text-input,
.number-input,
.select-input {
    width: 100%;
    padding: 0.5rem 0.625rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.file-input:hover,
.text-input:hover,
.number-input:hover,
.select-input:hover {
    border-color: var(--gray-400);
}

.file-input:focus,
.text-input:focus,
.number-input:focus,
.select-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 74, 158, 0.1);
}

.file-input {
    cursor: pointer;
    font-size: 0.75rem;
}

.file-input::file-selector-button {
    padding: 0.375rem 0.625rem;
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    margin-right: 0.625rem;
    transition: all 0.2s ease;
}

.file-input::file-selector-button:hover {
    background: var(--gray-200);
}

.color-input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.color-input {
    width: 3rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
}

.color-input:hover {
    border-color: var(--gray-400);
}

.color-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 74, 158, 0.1);
}

.color-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.radio-label:hover {
    background-color: var(--gray-50);
}

.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.radio-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
}

.checkbox-label:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-300);
}

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

.checkbox-label input[type="checkbox"]:checked + span {
    color: var(--primary);
    font-weight: 600;
}

/* Conditional Groups */
.conditional-group {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* Input with Button */
.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button .text-input {
    flex: 1;
}

/* Slider */
.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--white);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--white);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: var(--shadow-sm);
}

.btn:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-primary {
    background: var(--primary);
}

.btn-secondary {
    background: var(--gray-700);
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-600);
}

.btn-lg {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--text-primary);
}

.btn-icon {
    padding: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-icon:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.btn-icon:disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    border-color: var(--border);
}

/* Undo/Redo Toolbar */
.undo-redo-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.75rem;
}

.undo-redo-hint {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
    font-weight: 500;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible styles for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 0;
    border-color: var(--primary);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Text Styles */
.info-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.status-text {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Preview Panel */
.preview-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.preview-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-height: 0;
    display: flex;
}

.canvas-container {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(280px, calc(100vh - 240px), 820px);
    padding: clamp(1rem, 3vw, 2.5rem);
}

#previewCanvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    display: none;
    height: auto;
    width: auto;
}

#previewCanvas.visible {
    display: block;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.preview-placeholder svg {
    opacity: 0.3;
    width: 48px;
    height: 48px;
}

.preview-placeholder p {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Hide placeholder when canvas has image */
.canvas-container.has-image .preview-placeholder {
    display: none;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    min-width: 300px;
    max-width: 500px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    z-index: 10000;
    opacity: 0;
    transform: translateX(calc(100% + 2rem));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(calc(100% + 2rem));
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.toast-message {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.toast-error {
    border-left: 3px solid #DC2626;
}

.toast-error .toast-icon {
    color: #DC2626;
}

.toast-warning {
    border-left: 3px solid #F59E0B;
}

.toast-warning .toast-icon {
    color: #F59E0B;
}

.toast-success {
    border-left: 3px solid var(--success);
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-info {
    border-left: 3px solid var(--primary);
}

.toast-info .toast-icon {
    color: var(--primary);
}

/* Loading state for info text */
.info-text.loading {
    color: var(--primary);
    font-weight: 500;
}

.info-text.loading::after {
    content: '';
    animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
    margin-top: auto;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.footer-content {
    max-width: none;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-text-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.footer-title {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-subtitle {
    color: var(--text-secondary);
    font-weight: 400;
}

@media (max-width: 640px) {
    .footer-subtitle {
        display: none;
    }
}

.online-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-400);
    transition: background-color 0.3s ease;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 0 1.5px var(--success-bg);
}

.status-dot.offline {
    background: #F59E0B;
    box-shadow: 0 0 0 1.5px #FEF3C7;
}

.online-status .status-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 767px) {
    .main-content {
        padding: 0.5rem;
    }

    .preview-card {
        padding: 0.5rem;
        min-height: 300px;
    }

    .footer-content {
        flex-direction: row;
        text-align: left;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Smooth Transitions */
* {
    scroll-behavior: smooth;
}

/* Focus Visible (for accessibility) */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 74, 158, 0.2);
}

/* ============================================
   BATCH MODE STYLES
   ============================================ */

/* Toggle Switch */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--gray-300);
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-switch input:focus-visible + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(45, 74, 158, 0.2);
}

.toggle-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.batch-mode-toggle-container {
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.batch-mode-toggle-container .helper-text {
    margin-top: 0.5rem;
    margin-left: calc(44px + 0.75rem);
}

/* Batch File List */
.batch-file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.batch-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.batch-file-item:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.batch-file-item.processed {
    border-color: var(--success);
    background: var(--success-bg);
}

.batch-file-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: var(--gray-200);
    flex-shrink: 0;
}

.batch-file-info {
    flex: 1;
    min-width: 0;
}

.batch-file-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.batch-file-size {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.batch-file-status {
    font-size: 0.6875rem;
    font-weight: 500;
}

.batch-file-status.pending {
    color: var(--text-muted);
}

.batch-file-status.processing {
    color: var(--primary);
}

.batch-file-status.done {
    color: var(--success);
}

.batch-file-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.batch-file-remove:hover {
    background: var(--gray-200);
    color: #DC2626;
}

/* Batch Progress */
.batch-progress-container {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.batch-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

#batchProgressPercent {
    font-weight: 600;
    color: var(--primary);
}

.batch-progress-track {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.batch-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--blue-400));
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.batch-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Batch Controls */
.batch-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.batch-controls .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.batch-controls .btn svg {
    flex-shrink: 0;
}

/* Empty State */
.batch-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.batch-empty-state svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: 0.75rem;
}

.batch-empty-state p {
    font-size: 0.8125rem;
}
