/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header h1 i {
    color: #e74c3c;
    margin-right: 15px;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Tool Section */
.tool-section {
    margin-bottom: 50px;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #bdc3c7;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #3498db;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #2ecc71;
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    transform: scale(1.02);
}

.upload-content {
    position: relative;
    z-index: 2;
}

.upload-icon {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 20px;
    display: block;
}

.upload-area h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.upload-area p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.file-info {
    font-size: 0.9rem;
    color: #95a5a6;
    font-style: italic;
}

.file-names {
    font-weight: 500;
    color: #27ae60;
    word-break: break-word;
}

.upload-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.upload-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.upload-btn i {
    margin-right: 10px;
}

/* Conversion Options */
.conversion-options {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #dee2e6;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.option-group {
    display: flex;
    flex-direction: column;
}

.option-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
}

.option-group label i {
    margin-right: 8px;
    color: #3498db;
}

.option-group select,
.option-group input[type="number"] {
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.option-group select:focus,
.option-group input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.option-group input[type="range"] {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #dee2e6;
    outline: none;
    margin-top: 5px;
}

.option-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.option-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
}

/* Process Button */
.process-btn {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.process-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.process-btn:active {
    transform: translateY(-1px);
}

.process-btn i {
    margin-right: 12px;
}

/* Progress Section */
.progress-section {
    text-align: center;
    padding: 40px 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Results Section */
.results-section {
    margin-top: 40px;
}

.results-section h3 {
    text-align: center;
    color: #27ae60;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.results-section h3 i {
    margin-right: 10px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.result-preview {
    text-align: center;
    margin-bottom: 15px;
}

.preview-canvas {
    max-width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.result-info h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.result-info h4 i {
    margin-right: 8px;
    color: #3498db;
}

.result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.result-details span {
    background: #ecf0f1;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.result-details span i {
    margin-right: 5px;
}

.download-btn {
    width: 100%;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
}

.download-btn i {
    margin-right: 8px;
}

/* How to Use Section */
.how-to-use {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid #dee2e6;
}

.how-to-use h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.how-to-use h2 i {
    margin-right: 15px;
    color: #3498db;
}

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

.step {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #ecf0f1;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-content h3 i {
    margin-right: 10px;
    color: #3498db;
}

.step-content p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 1rem;
}

/* Content Section */
.content-section {
    margin: 40px 0;
}

.content-grid {
    display: grid;
    gap: 30px;
}

.content-block {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #ecf0f1;
}

.content-block h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
}

.content-block h2 i {
    margin-right: 12px;
    color: #3498db;
}

.content-block h3 {
    color: #34495e;
    font-size: 1.3rem;
    margin: 25px 0 15px;
    font-weight: 600;
}

.content-block p {
    color: #5d6d7e;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.content-block ul {
    margin: 15px 0 20px 20px;
}

.content-block li {
    color: #5d6d7e;
    margin-bottom: 10px;
    line-height: 1.6;
}

.content-block li strong {
    color: #2c3e50;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid #dee2e6;
}

.faq-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.faq-section h2 i {
    margin-right: 15px;
    color: #e74c3c;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.faq-item h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.faq-item h3 i {
    margin-right: 10px;
    color: #e74c3c;
}

.faq-item p {
    color: #5d6d7e;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: rgba(44, 62, 80, 0.95);
    color: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
}

.footer-content h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ecf0f1;
}

.footer-content h3 i {
    margin-right: 12px;
    color: #3498db;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

.footer-links a i {
    margin-right: 8px;
}

.footer-text {
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .upload-area h3 {
        font-size: 1.5rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .content-block {
        padding: 25px;
    }
    
    .how-to-use,
    .faq-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .conversion-options {
        padding: 20px;
    }
    
    .content-block {
        padding: 20px;
    }
}