/* Thai Vocabulary Reviewer 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%);
    min-height: 100vh;
    color: #333;
}

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

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

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

/* Progress Section */
.progress-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #666;
}

/* Flashcard */
.flashcard-container {
    margin-bottom: 30px;
}

.flashcard {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    text-align: center;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flashcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.2);
}

.thai-word {
    font-size: 5rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.3;
    padding: 20px 0;
}

.answer-section {
    border-top: 3px solid #ecf0f1;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pronunciation {
    font-size: 1.5rem;
    color: #7f8c8d;
    font-style: italic;
    font-weight: 500;
}

.english-meaning {
    font-size: 1.8rem;
    color: #34495e;
    font-weight: 600;
}

.word-type {
    font-size: 1rem;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Controls */
.controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
}

.btn-reject {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.btn-keep {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.btn-keep:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-key {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* File Input */
.file-input-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-align: center;
}

.file-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    cursor: pointer;
}

#vocabFile {
    margin-bottom: 15px;
    padding: 10px;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
}

.file-help {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Results Section */
.results-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.results-section h3 {
    color: #27ae60;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.results-stats {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #2c3e50;
}

.export-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-export {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-reset {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .thai-word {
        font-size: 2.5rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .stats {
        gap: 20px;
    }
    
    .export-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Success Animation */
@keyframes success {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success {
    animation: success 0.3s ease-in-out;
}
