/* Image Resizer Tool Styles */
.image-resizer-tool-container {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Section */
.irt-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.irt-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.irt-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Container */
.irt-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .irt-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Upload Section */
.irt-upload-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.irt-upload-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.irt-upload-area {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.irt-upload-area:hover, .irt-upload-area.dragover {
    border-color: #3498db;
    background-color: #f0f8ff;
}

.irt-upload-icon {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.irt-upload-text {
    margin-bottom: 15px;
    color: #7f8c8d;
}

.irt-file-input {
    display: none;
}

.irt-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-decoration: none;
}

.irt-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.irt-btn:active {
    transform: translateY(0);
}

.irt-btn-secondary {
    background: #95a5a6;
}

.irt-btn-secondary:hover {
    background: #7f8c8d;
}

.irt-btn-success {
    background: #2ecc71;
}

.irt-btn-success:hover {
    background: #27ae60;
}

/* Preview Section */
.irt-preview-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.irt-preview-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.irt-image-preview {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.irt-dimensions {
    font-size: 1rem;
    color: #7f8c8d;
    text-align: center;
    margin-top: 10px;
}

/* Controls Section */
.irt-controls {
    margin: 20px 0;
}

.irt-control-group {
    margin-bottom: 15px;
}

.irt-control-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.irt-dimension-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.irt-dimension-input {
    flex: 1;
}

.irt-dimension-input input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 1rem;
}

.irt-slider-container {
    margin-top: 10px;
}

.irt-dimension-input input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ecf0f1;
    outline: none;
}

.irt-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.irt-checkbox-group input {
    width: 18px;
    height: 18px;
}

/* Resize Options */
.irt-resize-options {
    margin: 20px 0;
}

.irt-option-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.irt-option-btn {
    background: #ecf0f1;
    color: #2c3e50;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.irt-option-btn.active {
    background: #3498db;
    color: white;
}

/* Error and Status Messages */
.irt-error-message {
    background: #e74c3c;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 15px 0;
    display: none;
}

.irt-success-message {
    background: #2ecc71;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 15px 0;
    display: none;
}

/* Footer */
.irt-footer {
    text-align: center;
    margin-top: 40px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .irt-header h1 {
        font-size: 2rem;
    }
    
    .irt-dimension-inputs {
        flex-direction: column;
    }
    
    .irt-option-buttons {
        flex-direction: column;
    }
}