@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Noto+Sans+Bengali:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.emp-exam-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

/* Login Form */
.emp-login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emp-login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.emp-login-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.emp-login-header p {
    font-size: 16px;
    opacity: 0.9;
}

.emp-login-body {
    padding: 40px;
}

.emp-form-group {
    margin-bottom: 25px;
}

.emp-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

.emp-form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.emp-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.emp-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.emp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Exam Interface */
.emp-exam-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.emp-exam-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
}

.emp-exam-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.emp-exam-info h3 {
    font-size: 24px;
    font-weight: 700;
}

.emp-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 30px;
}

.emp-timer-icon {
    font-size: 24px;
}

.emp-timer-value {
    font-size: 24px;
    font-weight: 700;
}

.emp-timer.warning {
    background: #ed8936;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.emp-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.3);
    margin-top: 15px;
    border-radius: 3px;
    overflow: hidden;
}

.emp-progress-fill {
    height: 100%;
    background: #48bb78;
    transition: width 0.3s ease;
}

.emp-exam-body {
    padding: 40px;
}

.emp-question-card {
    margin-bottom: 30px;
}

.emp-question-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.emp-question-text {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.6;
}

.emp-audio-player {
    margin: 20px 0;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
}

.emp-audio-player audio {
    width: 100%;
    outline: none;
}

.emp-options {
    display: grid;
    gap: 15px;
}

.emp-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emp-option:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.emp-option input[type="radio"] {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #667eea;
}

.emp-option label {
    flex: 1;
    font-size: 18px;
    cursor: pointer;
    color: #2d3748;
}

.emp-option.selected {
    border-color: #667eea;
    background: #eef2ff;
}

.emp-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.emp-btn-secondary {
    background: #718096;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emp-btn-secondary:hover {
    background: #4a5568;
}

.emp-btn-success {
    background: #48bb78;
    color: white;
}

.emp-btn-success:hover {
    background: #38a169;
}

/* Result Card */
.emp-result-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

.emp-result-header {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.emp-result-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.emp-result-score {
    font-size: 72px;
    font-weight: 700;
    margin: 20px 0;
}

.emp-result-body {
    padding: 40px;
}

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

.emp-result-stat {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: #f7fafc;
}

.emp-result-stat .label {
    font-size: 14px;
    color: #718096;
    margin-bottom: 10px;
}

.emp-result-stat .value {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
}

.emp-result-stat.correct .value {
    color: #48bb78;
}

.emp-result-stat.wrong .value {
    color: #f56565;
}

.emp-answers-review {
    margin-top: 30px;
}

.emp-answers-review h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2d3748;
}

.emp-answer-item {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
}

.emp-answer-item.correct {
    background: #c6f6d5;
    border-left-color: #48bb78;
}

.emp-answer-item.wrong {
    background: #fed7d7;
    border-left-color: #f56565;
}

.emp-answer-item .question {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
}

.emp-answer-item .answer {
    font-size: 14px;
    color: #4a5568;
}

.emp-answer-item .answer strong {
    color: #2d3748;
}

/* Alert */
.emp-alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.emp-alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #f56565;
}

.emp-alert-info {
    background: #bee3f8;
    color: #2c5282;
    border-left: 4px solid #4299e1;
}

/* Loading */
.emp-loading {
    text-align: center;
    padding: 40px;
}

.emp-loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .emp-exam-container {
        padding: 10px;
        margin: 20px auto;
    }
    
    .emp-login-header h2 {
        font-size: 24px;
    }
    
    .emp-login-body,
    .emp-exam-body,
    .emp-result-body {
        padding: 25px;
    }
    
    .emp-question-text {
        font-size: 18px;
    }
    
    .emp-option label {
        font-size: 16px;
    }
    
    .emp-exam-info {
        flex-direction: column;
    }
    
    .emp-navigation {
        flex-direction: column;
    }
    
    .emp-result-score {
        font-size: 56px;
    }
    
    .emp-result-stats {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .emp-navigation,
    .emp-timer {
        display: none;
    }
}
