/* progress.css */

.upload-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.upload-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    color: #333;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.upload-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.file-input-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.upload-instructions {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    line-height: 1.6;
}

.results-section {
    padding: 40px 0;
}

.results-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.results-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.results-icon {
    font-size: 2rem;
    color: #667eea;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.result-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.result-table td {
    padding: 18px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    transition: background-color 0.3s ease;
}

.result-table tbody tr:hover td {
    background-color: #f8f9ff;
}

.result-table tbody tr:last-child td {
    border-bottom: none;
}

.status-certified {
    color: #10b981;
    font-weight: 600;
}

.status-not-certified {
    color: #ef4444;
    font-weight: 600;
}

.score-high {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.score-low {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
}

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

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

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-data-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

.back-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.stat-card {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card.certified {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.stat-card.not-certified {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .upload-card {
        margin: 0 20px;
        padding: 30px 20px;
    }
    
    .results-card {
        margin: 0 20px 30px;
        padding: 30px 20px;
    }
    
    .result-table th,
    .result-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .back-button {
        top: 10px;
        left: 10px;
        padding: 10px 15px;
    }
}