/* Global styles - Pure black theme */
/* Navigation styles moved to common.css */

/* Contact Section */
.contact-section {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #444444;
    padding: 32px;
    margin: 32px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(42, 219, 92, 0.1);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
}

.contact-section h3 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid #444444;
    padding-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.contact-item {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #444444;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.06), transparent);
    transition: left 0.5s ease;
}

.contact-item:hover {
    border-color: #2adb5c;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #2a2a2a 0%, #3a3a3a 100%);
}

.contact-item:hover::before {
    left: 100%;
}

.contact-icon {
    font-size: 2rem;
    color: #22c55e;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.3));
}

.contact-item h4 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item p {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #2adb5c;
    text-shadow: 0 0 8px rgba(42, 219, 92, 0.5);
}

/* Responsive navigation styles moved to common.css */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Header styles */

/* Tab styles */
.tabs-section {
    margin-bottom: 0;
}

.tabs-nav {
    display: flex;
    background: #1a1a1a;
    border: 1px solid #444444;
    padding: 4px;
    margin-bottom: 32px;
    overflow-x: auto;
    gap: 2px;
}


.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Basic Operations specific styles */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter category styles */
.filter-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.filter-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.06), transparent);
    transition: left 0.5s ease;
}

.filter-category:hover {
    border-color: #2adb5c;
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(42, 219, 92, 0.15), 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #2a2a2a 0%, #3a3a3a 100%);
}

.filter-category:hover::before {
    left: 100%;
}

.filter-category h4 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #444444;
    padding-bottom: 12px;
    position: relative;
}

.filter-category h4::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #2adb5c 0%, transparent 100%);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.advanced-options>.filter-category+.filter-category {
    margin-top: 16px;
}

.filter-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2adb5c;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #444444;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
}

.filter-options input[type="checkbox"]:hover {
    border-color: #2adb5c;
    transform: scale(1.05);
}

.range-container>label {
    padding: 0;
    border: 0;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.edgedetect-controls {
    flex: 1;
}

.range-container>input {
    max-width: 65%;
    margin-right: 5%;
}

.filter-options input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #2adb5c 0%, #22c55e 100%);
    border-color: #2adb5c;
    box-shadow: 0 2px 8px rgba(42, 219, 92, 0.3);
}


/* Slider styles - Optimized styles */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(90deg, #444444 0%, #555555 100%);
    outline: none;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #444444;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #2adb5c 0%, #22c55e 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(42, 219, 92, 0.2) inset;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(255, 255, 255, 0.2) inset;
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(255, 255, 255, 0.1) inset;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(42, 219, 92, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #2adb5c 0%, #22c55e 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-value {
    color: #d1d5db;
    font-size: 0.75rem;
    min-width: 32px;
    text-align: right;
}

/* Color effect styles */
.color-effects {
    margin-top: 24px;
    padding: 20px;
    background: #1a1a1a;
    border: 1px solid #444444;
}

.color-effects h4 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 600;
}

/* Preset effect styles */
.preset-filters {
    margin-top: 24px;
}

/* Preset intensity control */
.preset-intensity-control {
    margin: 16px 0;
    padding: 16px;
    /* background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0; */
}

.preset-intensity-control label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
}

.intensity-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.intensity-slider-container input[type="range"] {
    flex: 1;
    height: 6px;
    background: linear-gradient(90deg, #e2e8f0 0%, #d1d5db 100%);
    outline: none;
    -webkit-appearance: none;
}

.intensity-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.intensity-slider-container input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.intensity-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #ffffff;
}

/* Preset categories */
.preset-category {
    margin-bottom: 24px;
}

.preset-category h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* border-bottom: 1px solid #444; */
    padding-bottom: 6px;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 12px;
}


.preset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(34, 197, 94, 0.08) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.preset-btn:hover {
    background: linear-gradient(145deg, #2a2a2a 0%, #3a3a3a 100%);
    border-color: #9ca3af;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(34, 197, 94, 0.08), 0 6px 16px rgba(0, 0, 0, 0.1);
}

.preset-btn:hover::before {
    transform: translateX(100%);
}

.preset-btn:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 0 rgba(34, 197, 94, 0.05), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preset-btn.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border-color: #22c55e;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 15px rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.preset-btn.active:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* Preview section styles */
.preview-section {
    margin-bottom: 32px;
}

/* .preview-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(34, 197, 94, 0.05);
} */

.preview-item {
    margin-bottom: 20px;
}

.preview-item h4 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #444444;
    padding-bottom: 8px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    max-width: 100%;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 1200px) {
    .images-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 900px) {
    .images-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 899px) and (min-width: 600px) {
    .images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 599px) {
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.images-grid.single {
    grid-template-columns: 1fr;
    max-width: 400px;
    /* margin: 0 auto 16px auto; */
    margin-top: 0;
    margin-bottom: 16px;
    display: flex;
}

.grid-image {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    object-fit: cover;
    justify-self: center;
    position: relative;
}

/* Image dimension overlay styles */
.image-container {
    position: relative;
    display: inline-block;
    height: 200px;
}

.setting-item label {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.image-dimensions-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(42, 219, 92, 0.9);
    color: #000000;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.grid-image.single {
    position: relative;
}

.single-image-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(42, 219, 92, 0.9);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#originalImage {
    width: 100%;
    max-width: 400px;
    height: auto;
    border: 1px solid #444444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    display: block;
}

.image-info {
    background: #1a1a1a;
    border: 1px solid #444444;
    padding: 16px;
    margin-top: 16px;
    color: #d1d5db;
    font-size: 0.875rem;
}

.image-info p {
    margin-bottom: 8px;
}

.image-info p:last-child {
    margin-bottom: 0;
}

.image-info ul {
    margin: 8px 0;
    padding-left: 20px;
}

.image-info li {
    margin-bottom: 4px;
    color: #9ca3af;
}

.upload-icon {
    font-size: 3rem;
    color: #6b7280;
    margin-bottom: 16px;
}

.upload-text {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-hint {
    color: #9ca3af;
    font-size: 0.875rem;
}

#fileInput {
    display: none;
}

/* Button styles */
.btn {
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2adb5c 0%, #22c55e 100%);
    color: #000000;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 219, 92, 0.1), transparent);
    transition: left 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(42, 219, 92, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:disabled {
    background: #444444;
    color: #6b7280;
    cursor: not-allowed;
}

.btn-secondary {
    background: #1a1a1a;
    color: #d1d5db;
    border: 1px solid #444444;
}

.btn-secondary:hover {
    background: #2a2a2a;
    border-color: #2adb5c;
}

/* Example button styles */
.example-btn {
    padding: 8px 16px;
    margin: 4px;
    background: #1a1a1a;
    color: #d1d5db;
    border: 1px solid #444444;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.example-btn:hover {
    background: #2a2a2a;
    border-color: #2adb5c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(42, 219, 92, 0.2);
}

.example-btn.random-example {
    background: linear-gradient(135deg, #2adb5c 0%, #22c55e 100%);
    color: #000000;
    border-color: #2adb5c;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.example-btn.random-example::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 219, 92, 0.2), transparent);
    transition: left 0.3s ease;
}

.example-btn.random-example:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 219, 92, 0.4);
}

.example-btn.random-example:hover::before {
    left: 100%;
}


.reset-btn {
    padding: 14px 28px;
    border: 1px solid #ef4444;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #ef4444;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(42, 219, 92, 0.05), 0 2px 8px rgba(239, 68, 68, 0.15);
    border-radius: 0;
}

.reset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.15), transparent);
    transition: left 0.4s ease;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border-color: #dc2626;
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(42, 219, 92, 0.2), 0 8px 25px rgba(239, 68, 68, 0.4);
}

.reset-btn:hover::before {
    left: 100%;
}

.reset-btn:active {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 8px rgba(239, 68, 68, 0.2);
}

.download-btn {
    padding: 14px 28px;
    border: none;
    background: linear-gradient(135deg, #2adb5c 0%, #22c55e 100%);
    color: #000000;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(42, 219, 92, 0.3);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 219, 92, 0.4);
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Action button container */
.download-area {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-area {
        flex-direction: column;
        align-items: center;
    }

    .select-btn,
    .process-btn,
    .reset-btn,
    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Settings area */
.settings-section {
    margin-bottom: 32px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (min-width: 1200px) {
    .settings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.setting-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
}

.setting-group h4 {
    font-family: 'Montserrat', sans-serif;
    color: #1f2937;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 600;
}


.setting-item {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #444444;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.setting-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.03), transparent);
    transition: left 0.6s ease;
}

.setting-item:hover {
    border-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(42, 219, 92, 0.05);
    background: linear-gradient(145deg, #2a2a2a 0%, #3a3a3a 100%);
}

.setting-item:hover::before {
    left: 100%;
}

.setting-item:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(42, 219, 92, 0.03);
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.setting-item select,
.setting-item input[type="number"],
.setting-item input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #444444;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}


.setting-item select:hover,
.setting-item input[type="number"]:hover,
.setting-item input[type="text"]:hover {
    border-color: #9ca3af;
    background: linear-gradient(145deg, #2a2a2a 0%, #3a3a3a 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 0 0 2px rgba(34, 197, 94, 0.1);
}

.setting-item select:focus,
.setting-item input[type="number"]:focus,
.setting-item input[type="text"]:focus {
    outline: none;
    border-color: #22c55e;
    background: linear-gradient(145deg, #2a2a2a 0%, #3a3a3a 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Select option styles */
.setting-item select option {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 8px 12px;
}

.setting-item select option:hover {
    background-color: #2a2a2a;
}

.setting-item select option:checked {
    background-color: #22c55e;
}

/* Range sliders */
.setting-item input[type="range"] {
    width: 100%;
    height: 6px;
    background: linear-gradient(145deg, #444444 0%, #555555 100%);
    outline: none;
    margin: 8px 0;
    -webkit-appearance: none;
    appearance: none;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.setting-item input[type="range"]::-webkit-slider-thumb:hover {
    background: linear-gradient(145deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
    transform: scale(1.1);
}

.setting-item input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

/* Range value display */
.setting-item span {
    color: #22c55e;
    font-weight: 500;
    font-size: 0.9rem;
    /* margin-left: 8px; */
}


/* Range value display for sliders */
.range-value {
    color: #22c55e;
    font-size: 0.75rem;
    min-width: 50px;
    text-align: center;
    font-weight: 500;
    background: rgba(34, 197, 94, 0.05);
    padding: 2px 6px;
    border: 1px solid rgba(34, 197, 94, 0.1);
    margin-left: 8px;
    flex-shrink: 0;
}

/* Range input and value container for advanced controls */
.shadows-highlights-controls .range-input-container,
.advanced-colorbalance-controls .range-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.shadows-highlights-controls .range-input-container input[type="range"],
.advanced-colorbalance-controls .range-input-container input[type="range"] {
    flex: 1;
    margin-bottom: 0;
}

/* Advanced adjustments controls */
.shadows-highlights-controls,
.advanced-colorbalance-controls {
    display: none;
    margin-top: 10px;
    padding: 15px;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.1);
    backdrop-filter: blur(5px);
}

.shadows-highlights-controls .range-container,
.advanced-colorbalance-controls .range-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
}

.shadows-highlights-controls .range-container:last-child,
.advanced-colorbalance-controls .range-container:last-child {
    margin-bottom: 0;
}

.shadows-highlights-controls label,
.advanced-colorbalance-controls label {
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.shadows-highlights-controls input[type="range"],
.advanced-colorbalance-controls input[type="range"] {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #444444 0%, #555555 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #444444;
    margin-bottom: 4px;
}

.shadows-highlights-controls input[type="range"]::-webkit-slider-thumb,
.advanced-colorbalance-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #2adb5c;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.shadows-highlights-controls input[type="range"]::-webkit-slider-thumb:hover,
.advanced-colorbalance-controls input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
}

.shadows-highlights-controls input[type="range"]::-moz-range-thumb,
.advanced-colorbalance-controls input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #2adb5c;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

#textWatermarkOptions {
    margin-top: 8px;
}

/* Checkbox styles */
.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #22c55e;
    cursor: pointer;
}

/* Quality slider specific */
.quality-slider {
    margin-top: 8px;
}

.quality-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.quality-value {
    color: #22c55e;
    font-weight: 600;
    font-size: 1rem;
}

/* Format specific options and nested containers */
.format-specific-options,
#batchRenameContainer,
#watermarkContainer {
    /* background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%); */
    padding: 0;
    margin-top: 12px;
    animation: slideDown 0.3s ease;
}

 #watermarkContainer {
    border: 0;
 }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.format-info {
    border: 1px solid #22c55e;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #15803d;
}

/* Small text styling */
.setting-item small {
    color: #ccc;
    font-size: 0.75rem;
    display: block;
    margin-top: 4px;
}

/* Filter category textarea styles - Optimized styles */
.filter-category textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #444444;
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}

.filter-category textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 0 0 2px rgba(34, 197, 94, 0.1);
    background: linear-gradient(145deg, #2a2a2a 0%, #3a3a3a 100%);
}

.filter-category textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.filter-category textarea:hover {
    border-color: #9ca3af;
}

.filter-category small {
    display: block;
    color: #ccc;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.02) 0%, rgba(34, 197, 94, 0.01) 100%);
    border: 1px solid #333333;
    font-style: italic;
}

.filter-category small a {
    color: #2adb5c;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.filter-category small a:hover {
    color: #16a34a;
    border-bottom-color: #22c55e;
}

/* Custom filters - Optimized styles */
.custom-filters {
    margin-top: 24px;
}

.custom-filters textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #444444;
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-filters textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 0 0 2px rgba(34, 197, 94, 0.1);
    background: linear-gradient(145deg, #2a2a2a 0%, #333333 100%);
}

.custom-filters textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.custom-filters textarea:hover {
    border-color: #9ca3af;
}

/* Output filename inputs - Optimized styles */
#outputPrefix,
#outputSuffix {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #444444;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 8px;
}

#outputPrefix:focus,
#outputSuffix:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 0 0 2px rgba(34, 197, 94, 0.1);
    background: linear-gradient(145deg, #2a2a2a 0%, #333333 100%);
}

#outputPrefix:hover,
#outputSuffix:hover {
    border-color: #9ca3af;
}

#outputPrefix::placeholder,
#outputSuffix::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Optimize label styles containing these input boxes */
label:has(#outputPrefix),
label:has(#outputSuffix) {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 12px;
}


/* Progress bar */
.progress-section {
    display: none;
    margin: 24px 0;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #e2e8f0 0%, #d1d5db 100%);
    overflow: hidden;
    margin: 16px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #2adb5c 0%, #22c55e 50%, #2adb5c 100%);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(42, 219, 92, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.progress-percentage {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

/* Results area */
.result-section {
    display: none;
    margin-top: 32px;
    padding: 32px;
    background: linear-gradient(145deg, #1a1a1a 0%, #111111 100%);
    border: 1px solid #444444;
    box-shadow: 0 8px 32px rgba(42, 219, 92, 0.1),
        inset 0 1px 0 rgba(42, 219, 92, 0.1);
    position: relative;
    overflow: hidden;
}

.result-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(42, 219, 92, 0.1), transparent);
}

.result-section h3 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2adb5c 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    background: #1a1a1a;
    border: 1px solid #444444;
    padding: 16px;
    text-align: center;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.stat-value {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
}

.compression-ratio {
    color: #2adb5c;
}

/* Performance information */
#performanceInfo {
    background: linear-gradient(145deg, #1a1a1a 0%, #111111 100%);
    border: 1px solid #444444;
    padding: 16px;
    margin-bottom: 16px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

#performanceInfo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(42, 219, 92, 0.1), transparent);
}

#performanceInfo strong {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* #performanceInfo strong::before {
    content: '⚡';
    font-size: 1.1rem;
} */

/* Removed disabled filter styles - all filters are now freely selectable */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes slide {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Animation effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    }
}

/* Add animations to main elements */

.filter-category {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #444444;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.4s ease-out;
}

.filter-category:nth-child(2) {
    animation-delay: 0.1s;
}

.filter-category:nth-child(3) {
    animation-delay: 0.2s;
}

.preset-btn {
    padding: 10px 12px;
    border: 1px solid #444444;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
    border-radius: 0;
}

.preset-btn:nth-child(2) {
    animation-delay: 0.05s;
}

.preset-btn:nth-child(3) {
    animation-delay: 0.1s;
}

.preset-btn:nth-child(4) {
    animation-delay: 0.15s;
}

.preset-btn:nth-child(5) {
    animation-delay: 0.2s;
}

.preset-btn:nth-child(6) {
    animation-delay: 0.25s;
}

.preset-btn:nth-child(7) {
    animation-delay: 0.3s;
}

.preset-btn:nth-child(8) {
    animation-delay: 0.35s;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    main {
        padding: 20px;
    }

    header h1 {
        font-size: 1.875rem;
    }

    .filter-categories {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        min-width: auto;
    }

    .preset-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* .images-grid {
        grid-template-columns: 1fr;
    } */

    #originalImage {
        max-width: 300px;
    }

    /* Mobile optimized animations */
    .filter-category {
        animation-duration: 0.3s;
    }
}

@media (max-width: 480px) {
    .result-stats {
        grid-template-columns: 1fr;
    }

    .upload-area {
        padding: 32px 16px;
    }

    .upload-icon {
        font-size: 2rem;
    }
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.1);
}

/* Text selection styles */
::selection {
    background: rgba(34, 197, 94, 0.2);
    color: #1f2937;
}

::-moz-selection {
    background: rgba(34, 197, 94, 0.2);
    color: #1f2937;
}

/* Notification animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* New feature indicator */
.filter-options label:has(input[data-filter="deflicker"]),
.filter-options label:has(input[data-filter="oscilloscope"]),
.filter-options label:has(input[id="extractExif"]),
.filter-options label:has(input[id="animatedJpegXL"]),
.filter-options label:has(input[id="vulkanAccel"]),
.filter-options label:has(input[id="amdFsr"]) {
    position: relative;
}

.filter-options label:has(input[data-filter="deflicker"])::after,
.filter-options label:has(input[data-filter="oscilloscope"])::after,
.filter-options label:has(input[id="extractExif"])::after,
.filter-options label:has(input[id="animatedJpegXL"])::after,
.filter-options label:has(input[id="vulkanAccel"])::after,
.filter-options label:has(input[id="amdFsr"])::after {
    content: "NEW";
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 4px;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* Focus styles */
input:focus,
button:focus,
select:focus {
    outline: 2px solid rgba(34, 197, 94, 0.3);
    outline-offset: 2px;
}

/* Loading state */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

footer p {
    text-align: center;

}

#errorText {
    margin-bottom: 24px;
}

/* Motion Blur, Box Blur control styles */
.motionblur-controls,
.boxblur-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.motionblur-controls .range-container,
.boxblur-controls .range-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.motionblur-controls .range-container input[type="range"],
.boxblur-controls .range-container input[type="range"] {
    width: 120px;
    margin: 0 5px;
}

/* Special Effects control styles */
.global-intensity-control {
    margin-bottom: 15px !important;
    padding: 15px !important;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.03) 100%) !important;
    border: 1px solid rgba(34, 197, 94, 0.15) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.global-intensity-control label {
    display: flex;
    align-items: center;
    gap: 12px;
    /* color: #374151; */
    font-weight: 500;
    font-size: 0.9rem;
}

.global-intensity-control input[type="range"] {
    flex: 1;
    min-width: 120px;
    margin: 0 8px;
}

.global-intensity-control .range-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    /* color: #1f2937;
    background: rgba(34, 197, 94, 0.1); */
    padding: 4px 8px;
    font-size: 0.85rem;
}

/* Chroma Key and Chroma Hold control styles */
.chromakey-controls,
.chromahold-controls,
.pseudocolor-controls {
    display: none;
    margin-top: 12px !important;
    padding: 15px !important;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.06) 100%) !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    overflow: hidden;
}

.chromakey-controls .range-container,
.chromahold-controls .range-container,
.pseudocolor-controls .range-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.chromakey-controls .range-container:last-child,
.chromahold-controls .range-container:last-child,
.pseudocolor-controls .range-container:last-child {
    margin-bottom: 0;
}

.chromakey-controls .range-container label,
.chromahold-controls .range-container label,
.pseudocolor-controls .range-container label {
    min-width: 140px;
    color: #374151;
    font-weight: 500;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.chromakey-controls input[type="color"],
.chromahold-controls input[type="color"] {
    width: 60px !important;
    height: 35px !important;
    border: 2px solid rgba(34, 197, 94, 0.2) !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chromakey-controls input[type="color"]:hover,
.chromahold-controls input[type="color"]:hover {
    border-color: rgba(34, 197, 94, 0.4);
    transform: scale(1.05);
}

.chromakey-controls input[type="range"],
.chromahold-controls input[type="range"] {
    flex: 1;
    min-width: 100px;
    margin: 0 8px;
}

.chromakey-controls .range-value,
.chromahold-controls .range-value {
    min-width: 35px;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
    background: rgba(34, 197, 94, 0.15);
    padding: 4px 8px;
    font-size: 0.8rem;
}

.chromakey-controls input[type="checkbox"],
.chromahold-controls input[type="checkbox"] {
    margin-left: 8px;
}

.chromakey-controls small,
.chromahold-controls small {
    display: block;
    margin-top: 4px;
    color: #6b7280 !important;
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Pseudo Color control styles */
.pseudocolor-controls select {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #374151;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pseudocolor-controls select:hover {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
}

.pseudocolor-controls select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.1);
}

/* Responsive adjustments for special effects controls */
@media (max-width: 768px) {

    .chromakey-controls .range-container,
    .chromahold-controls .range-container,
    .pseudocolor-controls .range-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .chromakey-controls .range-container label,
    .chromahold-controls .range-container label,
    .pseudocolor-controls .range-container label {
        min-width: auto;
        width: 100%;
    }

    .chromakey-controls input[type="range"],
    .chromahold-controls input[type="range"],
    .pseudocolor-controls select {
        width: 100%;
        margin: 0;
    }

    .global-intensity-control label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .global-intensity-control input[type="range"] {
        width: 100%;
        margin: 0;
    }
}

/* Blur & Sharpen preset button styles */
.blur-sharpen-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    padding: 10px;
    background: rgba(34, 197, 94, 0.03);
    border: 1px solid rgba(34, 197, 94, 0.08);
}

/* Enhanced Error Handling Styles */
.error-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(145deg, #1a0a0a 0%, #2a1111 100%);
    border: 1px solid #ff4444;
    box-shadow: 0 8px 32px rgba(255, 68, 68, 0.2);
}

.error-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.error-details {
    flex: 1;
    min-width: 0;
}

.error-title {
    font-size: 18px;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 8px;
}

.error-message {
    color: #e4e4e7;
    margin-bottom: 12px;
    line-height: 1.5;
}

.error-technical {
    font-size: 12px;
    color: #a1a1aa;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
    border-left: 3px solid #ff4444;
}

.error-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.error-actions button {
    padding: 8px 16px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.retry-btn {
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.retry-btn:hover {
    background: linear-gradient(145deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.dismiss-btn {
    background: linear-gradient(145deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.dismiss-btn:hover {
    background: linear-gradient(145deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.report-btn {
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.report-btn:hover {
    background: linear-gradient(145deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* Error Report Modal */
.error-report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.error-report-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #444444;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.error-report-content h3 {
    color: #1f2937;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.error-report-content p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.error-report-text {
    width: 100%;
    height: 300px;
    background: #1a1a1a;
    border: 1px solid #444444;
    padding: 16px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: vertical;
    margin-bottom: 20px;
}

.error-report-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.error-report-actions button {
    padding: 10px 20px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-report-actions button:first-child {
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.error-report-actions button:first-child:hover {
    background: linear-gradient(145deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.error-report-actions button:last-child {
    background: linear-gradient(145deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.error-report-actions button:last-child:hover {
    background: linear-gradient(145deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

/* Responsive error handling */
@media (max-width: 768px) {
    .error-content {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions button {
        width: 100%;
    }

    .error-report-content {
        padding: 20px;
        width: 95%;
    }

    .error-report-text {
        height: 200px;
        font-size: 11px;
    }

    .error-report-actions {
        flex-direction: column;
    }

    .error-report-actions button {
        width: 100%;
    }
}