/* ===============================
   RESULT PAGE STYLES
================================ */
.rmt-result-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.rmt-result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.rmt-result-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: bold;
}

.rmt-result-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.rmt-result-body {
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Score Display */
.rmt-score-display {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    color: #fff;
}

.rmt-score-number {
    font-size: 4em;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.rmt-score-label {
    font-size: 1.2em;
    opacity: 0.9;
}

.rmt-percentage-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 15px;
}

/* Stats Grid */
.rmt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.rmt-stat-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.rmt-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rmt-stat-card.correct {
    border-color: #4caf50;
    background: #e8f5e9;
}

.rmt-stat-card.wrong {
    border-color: #f44336;
    background: #ffebee;
}

.rmt-stat-card.skipped {
    border-color: #ff9800;
    background: #fff3e0;
}

.rmt-stat-card.attempted {
    border-color: #2196f3;
    background: #e3f2fd;
}

.rmt-stat-number {
    font-size: 3em;
    font-weight: bold;
    margin: 10px 0;
}

.rmt-stat-card.correct .rmt-stat-number {
    color: #2e7d32;
}

.rmt-stat-card.wrong .rmt-stat-number {
    color: #c62828;
}

.rmt-stat-card.skipped .rmt-stat-number {
    color: #ef6c00;
}

.rmt-stat-card.attempted .rmt-stat-number {
    color: #1565c0;
}

.rmt-stat-label {
    font-size: 1.1em;
    color: #666;
    font-weight: 600;
}

/* Performance Message */
.rmt-performance-message {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    margin: 30px 0;
}

.rmt-performance-message.excellent {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.rmt-performance-message.good {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.rmt-performance-message.average {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.rmt-performance-message.poor {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

/* Action Buttons */
.rmt-result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.rmt-result-btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rmt-result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rmt-result-btn.primary {
    background: #2196f3;
    color: #fff;
}

.rmt-result-btn.primary:hover {
    background: #1976d2;
    color: #fff;
}

.rmt-result-btn.secondary {
    background: #4caf50;
    color: #fff;
}

.rmt-result-btn.secondary:hover {
    background: #388e3c;
    color: #fff;
}

/* Test Info */
.rmt-test-info {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.rmt-test-info h3 {
    margin-top: 0;
    color: #333;
}

.rmt-test-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.rmt-test-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
}

.rmt-test-info-label {
    font-weight: 600;
    color: #666;
}

.rmt-test-info-value {
    color: #333;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .rmt-result-container {
        margin: 20px 10px;
    }

    .rmt-result-header h1 {
        font-size: 2em;
    }

    .rmt-score-number {
        font-size: 3em;
    }

    .rmt-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rmt-result-actions {
        flex-direction: column;
    }

    .rmt-result-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .rmt-stats-grid {
        grid-template-columns: 1fr;
    }

    .rmt-result-header {
        padding: 30px 20px;
    }

    .rmt-result-body {
        padding: 20px;
    }
}