/* ============ VIVA COMPONENT STYLES ============ */
.viva-section h2 {
    color: var(--dark);
    margin-bottom: 30px;
    font-size: 2em;
}

.viva-info-card {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe) !important;
    color: white !important;
    border-radius: 20px !important;
}

.viva-hero {
    text-align: center;
    padding: 10px 0;
}

.viva-icon-large {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.viva-hero h3 {
    color: white;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.viva-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1em;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Status Badges */
.viva-status-badge {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px;
    border-radius: 14px;
    animation: fadeIn 0.3s ease;
}

.viva-status-badge.not-requested {
    background: #f8f9fa;
    border: 2px dashed #b2bec3;
}

.viva-status-badge.pending {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #fdcb6e;
}

.viva-status-badge.completed {
    background: linear-gradient(135deg, #d4edda, #b8f0c8);
    border: 2px solid #00b894;
}

.viva-status-badge.failed {
    background: linear-gradient(135deg, #fde8e8, #ffb3b3);
    border: 2px solid #e17055;
}

.viva-status-badge .status-icon {
    font-size: 2.4em;
    flex-shrink: 0;
    margin-top: 2px;
}

.viva-status-badge strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.viva-status-badge p {
    margin: 3px 0;
    color: #2d3436;
    font-size: 0.9em;
}

/* Requirements box */
.viva-requirements-box {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.viva-requirements-box h4 {
    margin: 0 0 10px 0;
    color: #1565C0;
    font-size: 0.95em;
}

.viva-requirements-box ul {
    margin: 0;
    padding-left: 5px;
    list-style: none;
}

.viva-requirements-box ul li {
    margin: 6px 0;
    font-size: 0.9em;
    color: #2d3436;
}

/* Viva Result Display */
.viva-result-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.marks-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.marks-circle.pass {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
}

.marks-circle.fail {
    background: linear-gradient(135deg, #e17055, #d63031);
    color: white;
}

.marks-number {
    font-size: 2.2em;
    font-weight: 900;
    line-height: 1;
}

.marks-label {
    font-size: 0.75em;
    opacity: 0.85;
}

.viva-result-details {
    width: 100%;
    max-width: 450px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95em;
}

.result-label {
    color: #636e72;
    font-weight: 500;
}

.result-value {
    font-weight: 600;
    color: #2d3436;
}

.grade-badge {
    background: #6c5ce7;
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.85em;
}

.text-success { color: #00b894 !important; }
.text-danger  { color: #e17055 !important; }

.feedback-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.cert-eligible-banner {
    width: 100%;
    background: linear-gradient(135deg, #00b894, #55efc4);
    color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,184,148,0.3);
}

.cert-not-eligible-banner {
    width: 100%;
    background: #ffeaa7;
    color: #2d3436;
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    border: 1px solid #fdcb6e;
}

/* Admin viva items */
.viva-admin-item {
    transition: all 0.2s ease;
}

.viva-admin-item:hover {
    border-color: #6c5ce7;
    box-shadow: 0 4px 15px rgba(108,92,231,0.15);
}

.loading-spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6c5ce7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.marks-grade-preview {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9em;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .viva-result-display {
        gap: 15px;
    }
    .marks-circle {
        width: 100px;
        height: 100px;
    }
    .marks-number { font-size: 1.8em; }
}
