/**
 * @copyright © SixPrint. All rights reserved.
 */

/* Uploader V2 Styles - Sixprint Branded */

:root {
    /* Sixprint Brand Colors */
    --brand-pink: #FF269E;
    --brand-purple: #924EFF;
    --brand-dark: #333;
    --brand-light: #fafafa;
    --brand-white: #ffffff;

    /* Component Colors */
    --primary-color: #FF269E;
    --primary-hover: #d10b74;
    --success-color: #16a34a;
    --success-hover: #15803d;
    --danger-color: #dc2626;
    --secondary-color: #6b7280;
    --border-color: #e8e8e8;
    --bg-light: #fafafa;
    --text-primary: #333;
    --text-secondary: #666;

    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background: var(--brand-white);
    color: var(--text-primary);
    font-weight: 400;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.uploader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.uploader-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(135deg, #924eff 0%, #ff269e 50%, #924eff 100%);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    opacity: 0.4;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.7;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.step.active .step-number {
    background: var(--brand-purple);
}

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

.step-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Sections */
.upload-section {
    display: none;
}

.upload-section.active {
    display: block;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

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

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #4b5563;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: var(--success-hover);
}

/* Upload guide panel — Step 1 */
.upload-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .upload-guide {
        grid-template-columns: 1fr;
    }
}

.guide-section,
.guide-two-sided {
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.guide-two-sided {
    border-color: rgba(255, 38, 158, 0.2);
    background: rgba(255, 38, 158, 0.025);
    border-left: 3px solid var(--brand-pink);
}

.guide-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.guide-label--pink {
    color: var(--brand-pink);
}

.guide-two-sided-products {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 8px;
}

.guide-bullets {
    margin: 0;
    padding-left: 16px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.guide-bullets li {
    margin-bottom: 5px;
}

.guide-bullets li:last-child {
    margin-bottom: 0;
}

.guide-bullets strong {
    color: var(--text-primary);
    font-weight: 600;
}

.guide-bullets a {
    color: var(--brand-purple);
    text-decoration: none;
}

.guide-bullets a:hover {
    text-decoration: underline;
}

/* Simple Dropzone Section */
.simple-dropzone {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-light);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
}

.simple-dropzone:hover {
    border-color: var(--brand-purple);
    background: #f5f3ff;
}

.simple-dropzone.drag-over {
    border-color: var(--brand-pink);
    background: #fff5fb;
    border-style: solid;
}

.dropzone-content {
    pointer-events: none;
}

.dropzone-icon {
    color: var(--brand-purple);
    margin-bottom: 20px;
    opacity: 0.6;
}

.simple-dropzone h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 500;
}

.simple-dropzone p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.simple-dropzone .btn {
    pointer-events: all;
}

/* Files List */
.files-list {
    margin-bottom: 30px;
}

.files-list h4 {
    margin: 0 0 16px;
    font-size: 16px;
}

#filesContainer {
    display: grid;
    gap: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
}

.file-item:hover {
    border-color: var(--brand-purple);
    box-shadow: 0 2px 8px rgba(146, 78, 255, 0.1);
}

.file-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon svg {
    width: 24px;
    height: 24px;
    color: var(--brand-purple);
}

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

.file-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.file-remove:hover {
    background: #fee2e2;
    color: var(--danger-color);
}

.dropzone-actions {
    text-align: right;
}

/* Apply to All Panel */
.apply-to-all-panel {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.apply-to-all-panel h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
}

.apply-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: start;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.default-indicator {
    font-size: 11px;
    color: var(--success-color);
    font-weight: 600;
    margin-left: 6px;
}

.checkbox-small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-small input[type="checkbox"] {
    cursor: pointer;
}

.checkbox-small span {
    user-select: none;
}

/* Files Grid */
.files-grid-container {
    margin-bottom: 30px;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.grid-header h3 {
    margin: 0;
    font-size: 18px;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 6px;
}

.view-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.view-btn.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.files-grid {
    display: grid;
    gap: 16px;
}

.files-grid.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.files-grid.list-view {
    grid-template-columns: 1fr;
}

.files-grid.list-view .file-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
}

.files-grid.list-view .file-thumbnail {
    width: 120px;
    height: 80px;
    margin-bottom: 0;
}

.files-grid.list-view .file-name {
    margin-bottom: 0;
}

.files-grid.list-view .file-config {
    flex-direction: row;
    gap: 12px;
    width: auto;
}

.files-grid.list-view .file-config select {
    width: 180px;
}

.file-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.file-card.configured {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.file-card.error {
    border-color: var(--danger-color);
    background: #fef2f2;
}

.file-thumbnail {
    width: 100%;
    aspect-ratio: 3/2;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.file-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-toggle-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.thumbnail-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
}

.thumbnail-toggle-btn svg {
    width: 12px;
    height: 12px;
}

.side-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.file-info-section {
    margin-bottom: 12px;
}

.file-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-config {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-config select {
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
}

/* Validation status */
.validation-status {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.validation-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.validation-badge.pass {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.validation-badge.fail {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.validation-badge.warning {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* Split page badge */
.split-page-badge {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink));
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Back side upload */
.back-side-upload {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.btn-add-back-side {
    width: 100%;
    padding: 8px 12px;
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-add-back-side:hover {
    border-color: var(--brand-pink);
    color: var(--brand-pink);
    background: #fff5fb;
}

.btn-add-back-side svg {
    width: 16px;
    height: 16px;
}

.back-side-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 4px;
    font-size: 12px;
}

.back-side-info svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #15803d;
}

.back-side-info span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #15803d;
    font-weight: 500;
}

.btn-remove-back-side {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    color: #15803d;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.2s;
}

.btn-remove-back-side:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* Side 2 dropzone — always visible for two-sided capable products */
.side2-section {
    margin-top: 12px;
}

.side2-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--brand-pink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.side2-divider em {
    font-style: normal;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
}

.side2-divider::before,
.side2-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 38, 158, 0.2);
}

.side2-dropzone {
    padding: 12px 10px;
    border: 2px dashed rgba(255, 38, 158, 0.35);
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    text-align: center;
}

.side2-dropzone:hover,
.side2-dropzone.drag-over {
    border-color: var(--brand-pink);
    background: rgba(255, 38, 158, 0.08);
}

.side2-dropzone.drag-over {
    border-style: solid;
}

.side2-dropzone svg {
    color: var(--brand-pink);
    opacity: 0.65;
}

.side2-hint {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Configure Actions */
.configure-actions {
    display: flex;
    justify-content: space-between;
}

/* Review Section */
.review-summary {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 24px;
}

.summary-stat {
    flex: 1;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Review Files Grid */
.review-files-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.review-file-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    align-items: center;
    transition: all 0.2s;
}

.review-file-card:hover {
    border-color: var(--brand-pink);
    box-shadow: 0 4px 12px rgba(255, 38, 158, 0.1);
}

.review-file-card.approved {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.review-file-thumbnail {
    width: 120px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-file-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.approved-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: var(--success-color);
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.review-file-info {
    flex: 1;
}

.review-file-name {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.review-file-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.review-validation-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.review-file-actions {
    display: flex;
    align-items: center;
}

.review-btn, .review-again-btn {
    white-space: nowrap;
}

.review-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* Upload Progress */
.upload-progress {
    margin-top: 30px;
}

.upload-progress h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.overall-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.progress-bar {
    flex: 1;
    height: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
    border-radius: 12px;
}

.progress-text {
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

.upload-queue {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 6px;
}

.upload-item.uploading {
    background: #dbeafe;
}

.upload-item.completed {
    background: #dcfce7;
}

.upload-item.error {
    background: #fee2e2;
}

.upload-item-name {
    flex: 1;
    font-size: 14px;
}

.upload-item-status {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-color);
    color: white;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-message h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 1200px;
    max-height: 95vh;
    margin: 2vh auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.approval-modal {
    max-width: 2100px;  /* Increased from 1400px (50% larger) */
    max-height: 96vh;
}

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

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.file-counter {
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.preview-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-canvas-container {
    position: relative;
    background: #f3f4f6;
    border-radius: 8px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Greeting-card panel labels — only shown when product has a fold */
.fold-side-labels {
    position: absolute;
    top: 12px;
    left: 16px;
    right: 16px;
    display: none;  /* JS toggles to flex when fold detected */
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.fold-side-labels.is-visible {
    display: flex;
}

.fold-side-label {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #4b5563;
    text-transform: uppercase;
}

#previewCanvas {
    max-width: 100%;
    max-height: 750px;  /* Increased from 500px (50% larger) */
}

.canvas-controls {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
}

.canvas-btn {
    padding: 8px 12px !important;
    border-radius: 6px !important;
    background: white !important;
    border: 1px solid var(--border-color) !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: inline-block !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    white-space: nowrap !important;
    min-width: 36px !important;
    height: 36px !important;
    line-height: 20px !important;
}

.canvas-btn:hover {
    background: var(--bg-light) !important;
    border-color: var(--brand-pink) !important;
}

#toggleSideBtn {
    padding: 8px 16px !important;
    width: auto !important;
    display: inline-block !important;
}

/* Canvas Legend - below modal header */
.canvas-legend-header {
    padding: 12px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.validation-results {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.validation-results h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
}

.validation-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.validation-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.validation-item.pass {
    color: var(--success-color);
}

.validation-item.fail {
    color: var(--danger-color);
}

.validation-item.warning {
    color: #d97706;
}

.validation-icon {
    font-size: 16px;
}

/* Approval Checklist */
.approval-checklist {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
}

.approval-checklist h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
}

.approval-checklist p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover {
    border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-item span {
    font-size: 14px;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.footer-left, .footer-right {
    display: flex;
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .apply-controls {
        grid-template-columns: 1fr;
    }

    .files-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .review-summary {
        flex-direction: column;
        gap: 16px;
    }
}
