/* Background Remover Styles */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-header h1 {
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Mode Indicator */
.mode-indicator {
    text-align: center;
    margin-bottom: 2rem;
}

.mode-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.mode-badge.free {
    background: linear-gradient(135deg, #666, #888);
    color: white;
}

.mode-badge.premium {
    background: linear-gradient(135deg, var(--primary-color), #33ff66);
    color: var(--dark-bg);
}

.mode-indicator p {
    color: var(--text-gray);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Upload Dropzone */
.upload-dropzone {
    border: 3px dashed var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--card-bg);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

/* Preview Actions */
.preview-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.preview-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #33ff66);
    color: var(--dark-bg);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 51, 0.3);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.upload-dropzone:hover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 65, 0.05);
    transform: translateY(-5px);
}

.upload-dropzone.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 65, 0.1);
    transform: scale(1.02);
}

.upload-content .upload-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
}

.upload-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.file-types {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Batch Controls */
.batch-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Preview Section */
.preview-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.preview-box {
    text-align: center;
}

.preview-box h3 {
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.image-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

.image-container.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.preview-arrow {
    color: var(--secondary-color);
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.preview-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Multiple Preview */
.multiple-preview {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.multiple-preview h3 {
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.image-result {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
}

.image-result img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.image-result .image-name {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    word-break: break-all;
}

.image-result .download-btn {
    width: 100%;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), #33ff66);
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.image-result .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #33ff66);
    color: var(--dark-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Upgrade Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    backdrop-filter: blur(10px);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--secondary-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.modal-header h2 {
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    margin: 0;
}

.modal-body p {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.upgrade-features {
    margin: 2rem 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-color);
}

.feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.upgrade-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-header h1 {
        font-size: 2rem;
    }
    
    .preview-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .preview-arrow {
        transform: rotate(90deg);
    }
    
    .upload-dropzone {
        padding: 2rem 1rem;
    }
    
    .batch-controls,
    .preview-actions,
    .upgrade-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.preloader-logo img {
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
}

.preloader-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: var(--text-gray);
    font-size: 0.8rem;
    opacity: 0.7;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}