* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.upload-status {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.upload-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #495057;
}

.upload-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.upload-area h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.3rem;
}

.upload-area p {
    color: #666;
    margin-bottom: 15px;
}

.browse-btn {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

.browse-btn:hover {
    color: #5a67d8;
}

.supported-formats {
    margin-top: 15px;
}

.supported-formats small {
    color: #999;
}

.processing-section {
    text-align: center;
    padding: 40px 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

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

.results-section {
    margin-top: 30px;
}

.results-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4rem;
}

.transcript-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.transcript-text {
    line-height: 1.8;
    color: #444;
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.error-section {
    text-align: center;
    padding: 40px 20px;
}

.error-message {
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 10px;
    padding: 30px;
    color: #742a2a;
}

.error-message h3 {
    margin-bottom: 15px;
    color: #c53030;
}

.error-message p {
    margin-bottom: 20px;
    line-height: 1.6;
}

footer {
    margin-top: 40px;
    color: white;
}

.seo-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
}

.seo-content h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.seo-content article {
    margin-bottom: 25px;
}

.seo-content h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.seo-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 15px;
}

.seo-content ul,
.seo-content ol {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-left: 20px;
    margin-bottom: 15px;
}

.seo-content li {
    margin-bottom: 8px;
}

.seo-content strong {
    color: white;
    font-weight: 600;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding: 20px 0;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 25px;
    }

    .upload-area {
        padding: 40px 15px;
    }

    .actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}