.image-size-reducer-pro-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

.isr-pro-form-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    position: relative;
}

.isr-pro-form-wrapper h3 {
    margin: 0 0 10px 0;
    color: #1a202c;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.isr-pro-description {
    text-align: center;
    color: #718096;
    margin-bottom: 30px;
    font-size: 16px;
}

.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.form-section h4 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

/* File Upload Styles */
.file-upload-area {
    position: relative;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    pointer-events: none;
}

.upload-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    color: #4a5568;
    display: block;
    margin-bottom: 5px;
}

.file-preview {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.file-info {
    flex: 1;
}

.file-info span {
    display: block;
    font-size: 14px;
}

.file-info span:first-child {
    font-weight: 500;
    color: #2d3748;
}

.file-info span:last-child {
    color: #718096;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    min-width: 180px;
}

.radio-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.radio-option input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.radio-option input[type="radio"]:checked + .radio-text {
    color: #667eea;
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f0f4ff;
}

.radio-text {
    font-size: 14px;
    color: #4a5568;
}

/* Sliders */
.form-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    margin: 10px 0;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.form-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Size Presets */
.size-presets {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.size-preset {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-preset:hover,
.size-preset.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Form Inputs */
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #718096;
    font-size: 12px;
    line-height: 1.4;
}

/* Compress Button */
.compress-button-pro {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.compress-button-pro:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.compress-button-pro:disabled,
.compress-button-pro.loading {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 18px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff40;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Bar */
.progress-bar-container {
    margin: 20px 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #718096;
}

/* Results Section */
.result-container {
    margin-top: 30px;
    background: linear-gradient(135deg, #f0fff4, #e6fffa);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #9ae6b4;
    box-shadow: 0 4px 15px rgba(154, 230, 180, 0.2);
}

.result-header {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 20px;
    text-align: center;
}

.result-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.result-content {
    padding: 25px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.stat-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.stat-value.compressed {
    color: #38a169;
}

.stat-value.reduction {
    color: #3182ce;
}

.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.info-value.success {
    color: #38a169;
}

.info-value.warning {
    color: #d69e2e;
}

.download-section {
    text-align: center;
}

.download-button-pro {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #38a169, #2f855a);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.3);
}

.download-button-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.4);
    color: white;
    text-decoration: none;
}

.download-icon {
    font-size: 18px;
}

/* Error Messages */
.error-message-pro {
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #742a2a;
    border: 2px solid #fc8181;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(248, 113, 113, 0.2);
}

.error-icon {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-size-reducer-pro-container {
        margin: 10px;
    }

    .isr-pro-form-wrapper {
        padding: 20px;
    }

    .form-section {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .additional-info {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .radio-option {
        min-width: auto;
    }

    .size-presets {
        justify-content: center;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .isr-pro-form-wrapper h3 {
        font-size: 24px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .file-upload-area {
        padding: 30px 15px;
    }

    .upload-text {
        font-size: 14px;
    }

    .compress-button-pro {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Animation for smooth transitions */
.form-group {
    transition: all 0.3s ease;
}

.form-section {
    animation: slideIn 0.5s ease-out;
}

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