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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #66ea6f 0%, #e3ce0f 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #66ea6f 0%, #e3ce0f 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

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

.subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
}

.main-content {
    padding: 40px;
}

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

.upload-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    border: 3px dashed #667eea;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.upload-icon {
    font-size: 1.5rem;
}

.file-info {
    margin: 20px 0;
    color: #666;
    font-size: 0.95rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
}

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.analyze-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.analyze-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.analyze-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.overall-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
}

.score-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.result-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
}

.result-card h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

.metric {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.metric-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.metric-detail {
    color: #888;
    font-size: 0.85rem;
}

.category-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-excellent {
    background: #d4edda;
    color: #155724;
}

.badge-good {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-fair {
    background: #fff3cd;
    color: #856404;
}

.badge-needs_improvement {
    background: #f8d7da;
    color: #721c24;
}

.suggestion {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.suggestion.high {
    border-left-color: #dc3545;
}

.suggestion.medium {
    border-left-color: #ffc107;
}

.suggestion.low {
    border-left-color: #28a745;
}

.suggestion-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.suggestion-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.suggestion-section {
    margin-bottom: 15px;
}

.suggestion-section h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1rem;
}

.suggestion-section ul {
    list-style: none;
    padding-left: 0;
}

.suggestion-section li {
    color: #666;
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.suggestion-section li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
}

.transcript {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.8;
    color: #666;
}

.ai-overall {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.ai-overall p {
    margin: 0;
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
}

.strengths-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #28a745;
}

.strengths-section h4 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.strengths-list {
    list-style: none;
    padding: 0;
}

.strengths-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.strengths-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

.result-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-card h3::before {
    content: '';
}

.comparison-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid #667eea;
}

.comparison-overall {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-section {
    margin: 20px 0;
}

.improvements-header {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.regressions-header {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.comparison-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid;
}

.improvement-item {
    border-left-color: #28a745;
}

.regression-item {
    border-left-color: #dc3545;
}

.comparison-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.comparison-item small {
    color: #666;
    font-size: 0.85rem;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 1.2rem;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
}

