/* Critical CSS extracted from main.css */

 :root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --dark-color: #16213e;
    --light-color: #f8f9fa;
    --text-color: #e6f1ff;
    --text-secondary: #ccd6f6;
    --text-tertiary: #a8b2d1;
    --gray-color: #6c757d;
    --success-color: #4bb543;
    --error-color: #ff3333;
    --warning-color: #ffcc00;
    --footer-bg: #0a192f;
    --footer-text: #e6f1ff;
    --footer-link: #64ffda;
    --card-bg: rgba(16, 42, 87, 0.7);
    --card-border: rgba(67, 97, 238, 0.2);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #0a192f;
    background-image: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    text-align: center;
    padding: 40px 0 30px;
}

.header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 10px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header .subtitle {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.converter-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
}

.upload-section {
    border: 2px dashed rgba(67, 97, 238, 0.3);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    min-height: 200px;
}


/* Loading spinner - critical for UX */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Text result styling */

.text-result {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background-color: rgba(10, 25, 47, 0.5);
    color: var(--text-color);
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
}

.text-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.results-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.small-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}


/* File info display */

.file-info {
    display: none;
    align-items: center;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 15px;
    justify-content: space-between;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--error-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
}


/* Progress bar */

.progress-container {
    display: none;
    margin-top: 20px;
}

.progress-bar {
    height: 8px;
    background-color: rgba(67, 97, 238, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}


/* Results section */

.results-section {
    display: none;
    margin-top: 30px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* FAQ styles */

.faq-item {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(67, 97, 238, 0.2);
    padding-bottom: 10px;
}

.faq-question {
    background: none;
    border: none;
    color: var(--text-color);
    width: 100%;
    text-align: left;
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px;
}

.faq-answer.show {
    max-height: 500px;
    padding: 10px 15px;
}