/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 40px 20px;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.back-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    transition: background 0.3s;
}

.back-link:hover {
    background: rgba(255,255,255,0.3);
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.intro-section {
    text-align: center;
    margin-bottom: 50px;
}

.intro-section h2 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.intro-section p {
    font-size: 1.2rem;
    color: #666;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.feature-card.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.feature-card.active:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.feature-card.placeholder {
    opacity: 0.6;
    cursor: not-allowed;
}

.feature-card.placeholder:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 15px;
}

.active-badge {
    background: rgba(255,255,255,0.3);
    color: white;
}

.placeholder-badge {
    background: #e9ecef;
    color: #6c757d;
}

.feature-hover {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.feature-card.placeholder .feature-hover {
    border-top: 1px solid #dee2e6;
}

.feature-hover p {
    margin: 8px 0;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e9ecef;
    color: #6c757d;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

.btn-secondary:disabled {
    cursor: not-allowed;
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Translator Page */
.translator-main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.info-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.info-section h2 {
    color: #667eea;
    margin-bottom: 25px;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-number {
    background: #667eea;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step h4 {
    margin-bottom: 5px;
    color: #333;
}

.step p {
    font-size: 0.9rem;
    color: #666;
}

.upload-section {
    text-align: center;
}

.upload-section h2 {
    color: #667eea;
    margin-bottom: 15px;
}

.upload-section > p {
    color: #666;
    margin-bottom: 30px;
}

/* Dropzone */
.dropzone {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 20px;
    background: #f8f9fa;
    transition: all 0.3s;
    cursor: pointer;
}

.dropzone:hover {
    background: #e9ecef;
    border-color: #764ba2;
}

.dropzone.drag-over {
    background: #e7f0ff;
    border-color: #667eea;
    border-style: solid;
}

.dropzone-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.dropzone-text {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.dropzone-subtext {
    color: #666;
    margin: 15px 0;
}

.btn-upload {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-upload:hover {
    background: #764ba2;
    transform: scale(1.05);
}

.file-requirements {
    font-size: 0.85rem;
    color: #999;
    margin-top: 15px;
}

/* File Info */
.file-info {
    background: #e7f0ff;
    border: 1px solid #667eea;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.file-info p {
    margin: 5px 0;
}

/* Progress */
.progress-section {
    margin: 30px 0;
}

.progress-section h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.progress-bar {
    background: #e9ecef;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    color: #666;
    font-size: 0.95rem;
}

/* Result Section */
.result-section {
    margin: 30px 0;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.success-message h3 {
    margin-bottom: 10px;
}

.btn-download {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s;
}

.btn-download:hover {
    background: #218838;
    transform: scale(1.05);
}

/* Error Section */
.error-section {
    margin: 30px 0;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.error-message h3 {
    margin-bottom: 10px;
}

/* Footer */
.footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
    opacity: 0.9;
}

.footer-note {
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .main-content, .translator-main {
        padding: 20px;
    }
}
