/* Tool-specific styles only - base styles are in tool-layout.css */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #141414;
    border-bottom: 1px solid #374151;
    z-index: 100;
}

    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

    margin-top: 60px;
    padding: 48px 24px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    max-width: 720px;
    margin: 0 auto;
}

.tool-main {
    flex: 1;
    padding: 32px 24px 120px;
}

.tool-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.file-upload-zone {
    background-color: #0a0a0a;
    border: 2px dashed #374151;
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 150ms ease;
    position: relative;
    outline: none;
}

.file-upload-zone.has-error {
    border-color: #dc2626;
    background-color: #7f1d1d;
}

.file-upload-zone.has-file {
    border-style: solid;
    border-color: #374151;
    padding: 24px;
}

.upload-icon {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.7;
    color: #6b7280;
    letter-spacing: 2px;
}

.upload-primary {
    font-size: 16px;
    font-weight: 400;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.upload-secondary {
    font-size: 14px;
    font-weight: 400;
    color: #9ca3af;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
}

.file-info-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.file-name {
    font-size: 15px;
    font-weight: 500;
    color: #e5e7eb;
    word-break: break-all;
}

.file-meta {
    font-size: 13px;
    color: #9ca3af;
}

.button-text {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 150ms ease;
    flex-shrink: 0;
}

.button-text:hover {
    color: #ef4444;
}

.adjustments-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
}

.tab-bar {
    display: flex;
    gap: 4px;
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #9ca3af;
    cursor: pointer;
    transition: all 150ms ease;
}

.tab-btn:hover {
    color: #e5e7eb;
}

.tab-btn.active {
    background-color: #374151;
    color: #ffffff;
}

.tab-panel {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.tab-panel.active {
    display: flex;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.slider-header label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.slider-label-left,
.slider-label-right {
    font-size: 12px;
    color: #6b7280;
    position: absolute;
}

.slider-label-left {
    left: 0;
}

.slider-label-right {
    right: 60px;
}

.slider-value {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    min-width: 48px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

input[type="range"].slider {
    width: 100%;
    height: 4px;
    background-color: #374151;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    display: block;
}

input[type="range"].slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"].slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type="range"].slider:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.color-range-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.range-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: #9ca3af;
    cursor: pointer;
    transition: all 150ms ease;
}

.range-btn:hover {
    border-color: #6b7280;
    color: #e5e7eb;
}

.range-btn.active {
    background-color: #374151;
    border-color: #6b7280;
    color: #ffffff;
}

.range-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.selective-sliders {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.selective-actions {
    display: flex;
    gap: 8px;
}

.selective-actions .button-secondary {
    flex: 1;
}

.channel-selector {
    display: flex;
    gap: 4px;
    background-color: #1a1a1a;
    border-radius: 6px;
    padding: 3px;
}

.channel-btn {
    flex: 1;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #9ca3af;
    cursor: pointer;
    transition: all 150ms ease;
}

.channel-btn:hover {
    color: #e5e7eb;
}

.channel-btn.active {
    background-color: #374151;
    color: #ffffff;
}

.channel-btn.channel-red.active {
    background-color: #7f1d1d;
    color: #fca5a5;
}

.channel-btn.channel-green.active {
    background-color: #064e3b;
    color: #6ee7b7;
}

.channel-btn.channel-blue.active {
    background-color: #1e3a8a;
    color: #93c5fd;
}

.curves-canvas-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
}

.curves-canvas-container canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

.curves-info {
    display: flex;
    gap: 24px;
}

.curves-info-item {
    font-size: 13px;
    color: #9ca3af;
}

.curves-info-item span {
    color: #e5e7eb;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

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

.preview-canvas-container {
    position: relative;
    width: 100%;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
}

.preview-canvas-container canvas {
    width: 100%;
    display: block;
}

.processing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
}

.processing-indicator span {
    font-size: 14px;
    color: #9ca3af;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #374151;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.comparison-toggle {
    display: flex;
}

.comparison-toggle .button-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.output-settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.format-selector {
    display: flex;
    gap: 4px;
    background-color: #1a1a1a;
    border-radius: 6px;
    padding: 3px;
}

.format-btn {
    flex: 1;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: #9ca3af;
    cursor: pointer;
    transition: all 150ms ease;
}

.format-btn:hover {
    color: #e5e7eb;
}

.format-btn.active {
    background-color: #3b82f6;
    color: #ffffff;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.button-primary {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

.button-secondary {
    background-color: #1a1a1a;
    color: #e5e7eb;
    border: 1px solid #374151;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

.button-download {
    background-color: #059669;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
    width: 100%;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.batch-section {
    padding: 24px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.batch-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-header h3 {
    font-size: 18px;
    font-weight: 500;
    color: #d1d5db;
}

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

.batch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 6px;
}

.batch-item-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

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

.batch-item-name {
    font-size: 13px;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.batch-item-size {
    font-size: 12px;
    color: #9ca3af;
}

.batch-item-remove {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 150ms ease;
}

.batch-item-remove:hover {
    color: #ef4444;
}

.batch-item-status {
    font-size: 12px;
    font-weight: 500;
}

.batch-item-status.done {
    color: #10b981;
}

.batch-item-status.pending {
    color: #9ca3af;
}

.batch-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #374151;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 2px;
    width: 0%;
    transition: width 200ms ease;
}

.progress-text {
    font-size: 13px;
    color: #9ca3af;
}

.batch-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #374151;
    padding-top: 16px;
}

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

.batch-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background-color: #1a1a1a;
    border-radius: 6px;
}

.batch-result-name {
    font-size: 13px;
    color: #e5e7eb;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 12px;
}

.batch-result-status {
    font-size: 13px;
    font-weight: 500;
    color: #10b981;
    flex-shrink: 0;
}

.batch-result-download {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 150ms ease;
    flex-shrink: 0;
}

.batch-result-download:hover {
    color: #60a5fa;
}

.pro-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.pro-cta-text {
    font-size: 14px;
    color: #d1d5db;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.modal-overlay.modal-hidden {
    display: none;
}

.modal-overlay.modal-visible {
    display: flex;
}

.modal {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #e5e7eb;
}

.modal-content {
    padding: 24px;
}

.pro-features-list {
    margin-bottom: 24px;
}

.pro-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.feature-check {
    width: 20px;
    height: 20px;
    background-color: #059669;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    color: #e5e7eb;
}

.modal-cta {
    width: 100%;
    display: block;
}

.error-message {
    background-color: #7f1d1d;
    border: 1px solid #dc2626;
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.footer {
    background-color: #0a0a0a;
    border-top: 1px solid #374151;
    padding: 32px 24px;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 768px) {
        padding: 32px 16px;
    }

        font-size: 28px;
        line-height: 36px;
    }

        font-size: 14px;
    }

    .tool-main {
        padding: 24px 16px 100px;
    }

    .tool-container {
        gap: 32px;
    }

    .adjustments-section {
        padding: 16px;
    }

    .tab-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    .color-range-selector {
        gap: 4px;
    }

    .range-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .file-upload-zone {
        padding: 32px 16px;
    }

    .batch-section {
        padding: 16px;
    }

    .pro-cta-content {
        flex-direction: column;
        gap: 10px;
    }

        padding: 0 16px;
    }

    .selective-actions {
        flex-direction: column;
    }

    .selective-actions .button-secondary {
        width: 100%;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tab-bar {
        flex-direction: column;
    }

    .batch-item {
        flex-wrap: wrap;
    }
}

.modal-hidden {
    display: none;
}