/* Student Dashboard Styles */
.ues-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ues-nav {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #eee;
}

.ues-nav a {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.ues-nav a.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    font-weight: 600;
}

/* Quiz Grid */
.ues-quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ues-quiz-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s;
}

.ues-quiz-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ues-quiz-card h3 {
    margin-top: 0;
}

.ues-quiz-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}

.ues-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ues-badge-review { background: #d4edda; color: #155724; }
.ues-badge-master { background: #fff3cd; color: #856404; }
.ues-badge-grandmaster { background: #f8d7da; color: #721c24; }

.ues-previous-score {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Buttons */
.ues-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.ues-button-primary {
    background: #2271b1;
    color: white;
}

.ues-button-primary:hover {
    background: #135e96;
}

.ues-button-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* Quiz Taking */
.ues-quiz-intro {
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.ues-quiz-info {
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.ues-quiz-progress {
    margin-bottom: 20px;
}

.ues-progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ues-progress-fill {
    height: 100%;
    background: #2271b1;
    transition: width 0.3s;
}

.ues-quiz-status {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.ues-question {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.ues-question h3 {
    margin-top: 0;
    font-size: 20px;
    line-height: 1.6;
}

.ues-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.ues-option {
    display: flex;
    align-items: start;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.ues-option:hover {
    border-color: #2271b1;
    background: #f8f9fa;
}

.ues-option input {
    margin-right: 12px;
    margin-top: 3px;
}

.ues-option span {
    flex: 1;
    line-height: 1.6;
}

.ues-quiz-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Results */
.ues-result-summary {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    margin-bottom: 30px;
}

.ues-result-pass {
    border-top: 5px solid #28a745;
}

.ues-result-fail {
    border-top: 5px solid #dc3545;
}

.ues-score-big {
    font-size: 72px;
    font-weight: bold;
    color: #2271b1;
    margin: 20px 0;
}

.ues-result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.ues-detailed-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ues-result-item {
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ccc;
}

.ues-result-correct {
    background: #d4edda;
    border-left-color: #28a745;
}

.ues-result-incorrect {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.ues-explanation {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-style: italic;
}

/* Results Table */
.ues-results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.ues-results-table th,
.ues-results-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ues-results-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.ues-score-badge {
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
}

.ues-score-pass {
    background: #d4edda;
    color: #155724;
}

.ues-score-fail {
    background: #f8d7da;
    color: #721c24;
}

/* Login Required */
.ues-login-required {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .ues-quiz-grid {
        grid-template-columns: 1fr;
    }
    
    .ues-result-actions {
        flex-direction: column;
    }
    
    .ues-score-big {
        font-size: 48px;
    }
}
