/* Image Converter Styles */

/* Upload Section */
.drop-zone-modern {
    border: 3px dashed #ddd;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.drop-zone-modern:hover {
    border-color: #fb983a;
    background: linear-gradient(135deg, #fff5eb 0%, #ffffff 100%);
}

.drop-zone-modern.dragover {
    border-color: #fb983a;
    background: linear-gradient(135deg, #fff5eb 0%, #ffe5cc 100%);
    transform: scale(1.02);
}

.upload-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Format Selection Grid */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.format-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.format-btn:hover {
    border-color: #fb983a;
    background: #fff5eb;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(251, 152, 58, 0.2);
}

.format-btn.active {
    border-color: #fb983a;
    background: #fb983a;
    color: white;
    box-shadow: 0 4px 12px rgba(251, 152, 58, 0.4);
}

.format-btn i {
    font-size: 24px;
    margin-bottom: 5px;
    display: block;
}

/* File List */
.file-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
}

.file-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.file-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.file-details {
    font-size: 12px;
    color: #666;
}

.file-format-badge {
    background: #fb983a;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}

.file-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
    border: 1px solid #e0e0e0;
}

/* Preview Container */
.preview-container {
    min-height: 300px;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-container img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Comparison Slider */
.comparison-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
}

.comparison-slider .before-image,
.comparison-slider .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparison-slider .after-image {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.comparison-slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    cursor: ew-resize;
    z-index: 10;
}

.comparison-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    cursor: ew-resize;
    z-index: 11;
}

/* Progress Bar */
#progressBar {
    height: 30px;
    font-size: 14px;
    font-weight: 600;
}

/* Ads */
.ad-sidebar-left,
.ad-sidebar-right {
    min-height: 600px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-top-banner {
    min-height: 90px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .format-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .format-btn {
        padding: 15px 5px;
        font-size: 12px;
    }
    
    .format-btn i {
        font-size: 20px;
    }
    
    .file-item {
        flex-direction: column;
        text-align: center;
    }
    
    .file-thumbnail {
        margin: 0 0 10px 0;
    }
}

/* Button Styles */
.btn-primary {
    background-color: #fb983a;
    border-color: #fb983a;
}

.btn-primary:hover {
    background-color: #e8842a;
    border-color: #e8842a;
}

.nav-link {
    color: #666;
}

.nav-link:hover,
.nav-link.active {
    color: #fb983a;
    border-color: #fb983a;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}
