/* ===================================================================
   Converter Template Styles - Common Converter Page Layout
   ================================================================ */

/* Page Container */
.converter-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem 1rem;
}

body.dark-mode .converter-page {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.converter-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header Section */
.converter-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.converter-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.converter-back-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.converter-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.converter-icon {
    font-size: 3rem;
}

.converter-subtitle {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.converter-description {
    font-size: 1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Upload Section */
.converter-upload-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.upload-zone {
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: #f7fafc;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #667eea;
    background: #eef2ff;
    transform: scale(1.02);
}

.upload-zone.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

.upload-formats {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-top: 1rem;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.upload-input {
    display: none;
}

/* File Info Section */
.file-info-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
}

.file-info-section.active {
    display: block;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.file-preview-icon {
    font-size: 3rem;
}

.file-preview-details {
    flex: 1;
}

.file-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.file-meta {
    font-size: 0.95rem;
    color: #718096;
}

.file-remove-btn {
    padding: 0.5rem 1rem;
    background: #fc8181;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-remove-btn:hover {
    background: #f56565;
    transform: scale(1.05);
}

/* Options Section */
.conversion-options {
    margin-bottom: 2rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.option-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-select:hover {
    border-color: #667eea;
}

.option-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Convert Button */
.convert-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.convert-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.convert-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress Section */
.progress-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
}

.progress-section.active {
    display: block;
}

.progress-status {
    text-align: center;
    margin-bottom: 1.5rem;
}

.progress-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: spin 2s linear infinite;
}

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

.progress-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.progress-subtext {
    font-size: 1rem;
    color: #718096;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-percentage {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

/* Result Section */
.result-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
    text-align: center;
}

.result-section.active {
    display: block;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.result-message {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 2rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
    margin-right: 1rem;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.5);
}

.new-conversion-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-conversion-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

/* Error Section */
.error-section {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: none;
}

.error-section.active {
    display: block;
}

.error-icon {
    font-size: 3rem;
    color: #f56565;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c53030;
    margin-bottom: 0.5rem;
}

.error-message {
    font-size: 1rem;
    color: #742a2a;
}

/* Features Section */
.converter-features {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.features-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.feature-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f7fafc;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #edf2f7;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.95rem;
    color: #718096;
}

/* Responsive Design */
@media (max-width: 768px) {
    .converter-page {
        padding: 1rem 0.5rem;
    }

    .converter-title {
        font-size: 2rem;
    }

    .converter-icon {
        font-size: 2.5rem;
    }

    .converter-upload-section {
        padding: 2rem 1.5rem;
    }

    .upload-zone {
        padding: 2rem 1rem;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .file-preview {
        flex-direction: column;
        text-align: center;
    }

    .download-btn,
    .new-conversion-btn {
        display: flex;
        width: 100%;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .converter-title {
        font-size: 1.75rem;
    }

    .converter-upload-section {
        padding: 1.5rem 1rem;
    }

    .upload-btn {
        width: 100%;
        justify-content: center;
    }
}
