/* Image Resizer - Additional Styles */
/* Extends tools.css with specific image resizer styling */

/* Upload Section */
.upload-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.upload-area {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 3px dashed #cbd5e0;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    border-color: #667eea;
}

.upload-area.drag-over {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.upload-area.drag-over * {
    color: white !important;
}

.upload-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-area h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: #4a5568;
    font-size: 1rem;
    margin: 0.5rem 0;
}

.file-limit {
    font-size: 0.875rem !important;
    color: #718096 !important;
    margin-top: 1rem !important;
}

/* Settings Section */
.settings-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
}

.settings-section h3 {
    color: #2d3748;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section h3 i {
    color: #667eea;
}

.original-info {
    background: linear-gradient(135deg, #e6f3ff 0%, #f0e6ff 100%);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.original-info i {
    color: #667eea;
    font-size: 1.25rem;
}

/* Dimension Inputs */
.dimension-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group label i {
    color: #667eea;
}

.input-group input[type="number"] {
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.2s ease;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Lock Button */
.lock-aspect-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.lock-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.lock-btn:hover {
    background: #f7fafc;
    transform: scale(1.1);
}

.lock-btn.locked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Quality Control */
.quality-control {
    margin-bottom: 1.5rem;
}

.quality-control label {
    display: block;
    margin-bottom: 0.75rem;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
}

.quality-control label i {
    color: #667eea;
    margin-right: 0.5rem;
}

#qualityValue {
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Resize Button */
.btn-resize {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-resize:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-resize:active {
    transform: translateY(0);
}

/* Preview Section */
.preview-section {
    margin-bottom: 2rem;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-box {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.preview-box h4 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.image-wrapper {
    background: #f7fafc;
    border-radius: 10px;
    padding: 1rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #667eea;
    display: none;
}

.image-info {
    margin-top: 1rem;
    text-align: center;
    color: #4a5568;
    font-weight: 600;
}

.quality-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.btn-download {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
}

.btn-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-reset {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Tips Section */
.tips-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    padding: 2rem;
}

.tips-section h3 {
    color: #2d3748;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-section h3 i {
    color: #667eea;
}

.tips-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-section li {
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    color: #4a5568;
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.tips-section li strong {
    color: #2d3748;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.alert i {
    font-size: 1.25rem;
}

.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #2d3748;
}

/* Responsive Design */
@media (max-width: 768px) {
    .preview-container {
        grid-template-columns: 1fr;
    }
    
    .dimension-inputs {
        grid-template-columns: 1fr;
    }
    
    .lock-aspect-container {
        order: -1;
        padding-bottom: 1rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
}
