.govt-exam-photo-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.exam-resizer-section {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #1f7a7a;
}

.exam-resizer-section h2 {
    margin-top: 0;
    color: #1f7a7a;
    font-size: 1.9em;
    margin-bottom: 10px;
}

.exam-resizer-section h3 {
    color: #1f7a7a;
    margin-top: 0;
    font-size: 1.3em;
}

.exam-resizer-section p {
    color: #555;
    line-height: 1.6;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #1f7a7a;
    border-radius: 10px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f0f7f7 0%, #e8f4f4 100%);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #156b6b;
    background: linear-gradient(135deg, #e8f4f4 0%, #dff0f0 100%);
    box-shadow: 0 4px 12px rgba(31, 122, 122, 0.1);
}

.upload-label {
    display: block;
    cursor: pointer;
}

.upload-label span {
    display: block;
    font-size: 1.3em;
    color: #1f7a7a;
    font-weight: 600;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 0.9em;
    color: #888;
    margin: 10px 0 0 0;
}

/* File Info */
.file-info {
    padding: 15px;
    background: linear-gradient(135deg, #e8f4f4 0%, #dff0f0 100%);
    border-left: 5px solid #1f7a7a;
    margin: 20px 0;
    border-radius: 6px;
    font-size: 0.95em;
}

.file-info p {
    margin: 0;
    color: #333;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-group select,
.form-group input[type="number"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: all 0.3s;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #1f7a7a;
    box-shadow: 0 0 0 4px rgba(31, 122, 122, 0.1);
    background-color: #f9feff;
}

/* Input Row */
.input-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-row input {
    flex: 1;
}

.input-row span {
    font-size: 1.3em;
    color: #666;
    font-weight: 600;
}

/* Slider */
.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #ddd, #aaa);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1f7a7a;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1f7a7a;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#exam-quality-value {
    min-width: 50px;
    text-align: right;
    color: #1f7a7a;
    font-weight: 700;
    font-size: 1.1em;
}

.hint {
    font-size: 0.85em;
    color: #888;
    margin-top: 8px;
    display: block;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    margin-bottom: 0;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #fff8f0 0%, #fff5e6 100%);
    border-left: 5px solid #ff9800;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 0.95em;
}

.info-box p {
    margin: 8px 0;
}

.info-box strong {
    color: #e65100;
}

/* Preview Section */
.preview-info {
    background: linear-gradient(135deg, #f0f7f7 0%, #e8f4f4 100%);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.canvas-wrapper {
    text-align: center;
    padding: 30px;
    background: #fafbfc;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

#exam-preview-canvas {
    max-width: 100%;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-note {
    font-size: 0.85em;
    color: #ff9800;
    margin-top: 15px;
    font-weight: 500;
}

/* Action Buttons */
.action-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.download-button,
.reset-button {
    flex: 1;
    min-width: 180px;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-button {
    background: linear-gradient(135deg, #1f7a7a 0%, #156b6b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(31, 122, 122, 0.3);
}

.download-button:hover {
    background: linear-gradient(135deg, #156b6b 0%, #0f4f4f 100%);
    box-shadow: 0 6px 16px rgba(31, 122, 122, 0.4);
    transform: translateY(-2px);
}

.download-button:active {
    transform: translateY(0);
}

.reset-button {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
}

.reset-button:hover {
    background: #e8e8e8;
    border-color: #1f7a7a;
    color: #1f7a7a;
}

/* Success Message */
.success-message {
    padding: 18px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #c3e6cb;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.05em;
    box-shadow: 0 2px 8px rgba(21, 87, 36, 0.1);
}

/* Help Section */
.help-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    border-left-color: #1976d2;
}

.help-section h3 {
    color: #1565c0;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.tips-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(21, 101, 192, 0.1);
    color: #333;
    font-size: 0.95em;
    line-height: 1.6;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list strong {
    color: #1565c0;
}

/* Responsive */
@media (max-width: 768px) {
    .govt-exam-photo-container {
        padding: 15px;
        margin: 20px 10px;
    }

    .exam-resizer-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .exam-resizer-section h2 {
        font-size: 1.5em;
    }

    .upload-area {
        padding: 35px 15px;
        min-height: 100px;
    }

    .upload-label span {
        font-size: 1.1em;
    }

    .action-section {
        flex-direction: column;
        gap: 10px;
    }

    .download-button,
    .reset-button {
        min-width: auto;
        width: 100%;
    }

    .input-row {
        flex-direction: column;
    }

    .input-row span {
        display: none;
    }

    #exam-preview-canvas {
        max-width: 100%;
        max-height: 400px;
    }

    .slider-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .exam-resizer-section h2 {
        font-size: 1.3em;
    }

    .exam-resizer-section h3 {
        font-size: 1.1em;
    }

    .upload-label span {
        font-size: 1em;
    }

    .canvas-wrapper {
        padding: 20px;
    }
}
