/* Remini-style Photo Enhancement App Styles */

/* Upload Section Styles */
.upload-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.upload-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-area {
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.upload-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.upload-content h4 {
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
}

.upload-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Preview Container */
.preview-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.preview-container h5 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.enhanced-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.processing-animation {
    color: #6c757d;
}

/* Enhancement Options */
.enhancement-options {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.enhancement-option {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.enhancement-option:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.enhancement-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.enhancement-option label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    cursor: pointer;
}

.option-description {
    margin-top: 5px;
}

.option-details {
    margin-top: 10px;
}

.enhancement-info {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
}

.enhancement-info .alert {
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.enhancement-info i {
    color: #007bff;
    margin-right: 8px;
}

/* Enhanced Photo Badge */
.enhancement-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.enhancement-badge .badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Processing Animation */
.processing-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.processing-animation .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 15px;
}

/* Notification Styles */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    color: white;
}

/* Button Styles */
.btn-get-started {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-get-started:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Photo Card Styles */
.photo-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.photo-preview {
    position: relative;
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-preview img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-actions {
    display: flex;
    gap: 10px;
}

.photo-actions .btn {
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.photo-info {
    padding: 20px;
}

.photo-info h5 {
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.photo-tags {
    margin-top: 10px;
}

.photo-tags .badge {
    margin-right: 5px;
    border-radius: 15px;
    padding: 5px 10px;
}

/* === CUSTOM IMPROVEMENTS FOR CONTRAST & PREVIEW LAYOUT === */

/* Radio button & label styling for better visibility */
.enhancement-options label {
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 6px 14px;
    margin: 4px 6px 4px 0;
    display: inline-block;
    border: 1px solid #e0e0e0;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.enhancement-options input[type="radio"]:checked + label,
.enhancement-options label:active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
}

/* Watermark text input contrast */
#watermarkText {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 4px 10px;
    margin-left: 8px;
    margin-right: 8px;
}

/* Upload section text contrast fix */
.upload-section, .upload-section * {
    color: #fff !important;
}
.upload-section h2, .upload-section h4, .upload-section label {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.upload-section p, .upload-section .description-title {
    color: #e0e0e0 !important;
}

/* Preview container layout improvements */
.preview-container {
    background: #fff;
    color: #222;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 24px;
}
.preview-container .row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}
.preview-container .col-md-6 {
    flex: 1 1 240px;
    max-width: 48%;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.preview-container h5 {
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}
#originalPreview, .enhanced-placeholder img, #enhancedPreview img {
    max-width: 100%;
    max-height: 280px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 8px;
    background: #f8f9fa;
}

/* Enhanced placeholder contrast */
.enhanced-placeholder {
    background: #f8f9fa;
    border: 2px dashed #bdbdbd;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-container {
        padding: 20px;
    }
    
    .upload-area {
        padding: 40px 15px;
    }
    
    .enhancement-option {
        margin-bottom: 10px;
        padding: 10px;
    }
    
    .preview-container {
        padding: 20px;
    }
    
    .enhancement-options {
        padding: 15px;
    }
}

/* Responsive fix for preview */
@media (max-width: 768px) {
    .preview-container .row {
        flex-direction: column;
        gap: 0;
    }
    .preview-container .col-md-6 {
        max-width: 100%;
        min-width: 0;
        margin-bottom: 18px;
    }
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Bar */
.progress-container {
    margin-top: 15px;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
}

.progress-bar {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Comparison Slider */
.comparison-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.comparison-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.comparison-slider::after {
    content: '◀ ▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 12px;
    font-weight: bold;
} 