/* Results Portal - Custom Styles for EDUSUPPORT */
:root {
    --primary: #29dba0;
    --primary-dark: #1db886;
    --secondary: #ffde59;
    --secondary-dark: #f5c900;
    --dark-bg: #0c1a21;
    --card-bg: rgba(9, 51, 63, 0.95);
    --light-text: #ffffff;
    --light-gray: rgba(255, 255, 255, 0.8);
    --border-color: rgba(41, 219, 160, 0.3);
    --success: #29dba0;
    --warning: #ffde59;
    --danger: #ff6b35;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Results Portal Container */
.results-portal {
    background: linear-gradient(135deg, #0c1a21 0%, #1a2d35 100%);
    min-height: calc(100vh - 140px);
    color: var(--light-text);
    padding: 2rem 5%;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Elements */
.bg-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 6s infinite ease-in-out;
}

.element-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.element-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: 2s;
}

.element-3 {
    width: 200px;
    height: 200px;
    background: #1db886;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Portal Container */
.portal-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Portal Header */
.portal-header {
    text-align: center;
    padding: 2rem 0 3rem;
    animation: fadeInUp 1s ease-out;
}

.portal-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.portal-header p {
    font-size: 1.2rem;
    color: var(--light-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Container */
.form-container {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 1px solid var(--border-color);
    padding: 3rem;
    margin: 0 auto 3rem;
    box-shadow: var(--shadow);
    animation: slideIn 0.8s ease-out;
    max-width: 900px;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.form-header p {
    color: var(--light-gray);
    font-size: 1rem;
}

/* Institution Preview */
.institution-preview {
    background: rgba(41, 219, 160, 0.1);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow: hidden;
}

.preview-header {
    background: rgba(41, 219, 160, 0.2);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.preview-header h3 {
    color: var(--primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-content {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
}

.preview-logo {
    flex-shrink: 0;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    border: 2px solid var(--border-color);
}

.logo-placeholder.edusupport-logo {
    background: var(--secondary);
    color: #09333f;
    flex-direction: column;
    font-size: 1.2rem;
    font-weight: bold;
}

.logo-placeholder.edusupport-logo span {
    font-size: 0.9rem;
    margin-top: 5px;
}

.preview-info {
    flex: 1;
}

.preview-info h4 {
    color: var(--secondary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.preview-info p {
    color: var(--light-gray);
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.form-input {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41, 219, 160, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.submit-btn, .reset-btn {
    padding: 1.2rem 2.5rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
}

.submit-btn {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #09333f;
    flex: 2;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(41, 219, 160, 0.4);
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid var(--border-color);
    flex: 1;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

/* Demo Credentials */
.demo-credentials {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(41, 219, 160, 0.1);
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.demo-credentials h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--primary);
}

.demo-credentials p {
    margin: 0.5rem 0;
    color: var(--light-gray);
    font-size: 0.95rem;
}

.demo-credentials strong {
    color: var(--secondary);
}

/* Loading Spinner */
.loading-container {
    display: none;
    text-align: center;
    padding: 4rem;
}

.loading-spinner {
    display: inline-block;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-spinner p {
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-sub {
    color: var(--light-gray) !important;
    font-size: 1rem !important;
    font-weight: normal !important;
}

/* Result Display */
.result-display {
    display: none;
    animation: fadeIn 0.8s ease-out;
}

/* Institution Header */
.institution-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}


.institution-logo-left,
.institution-logo-right {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.institution-logo-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.institution-info {
    flex: 1;
    text-align: center;
    padding: 0 2rem;
}
.institution-logo-right .logo-placeholder {
    width: 70px;
    height: 70px;
    background: #09333f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.institution-name {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.institution-address {
    color: var(--light-gray);
    margin: 0.3rem 0;
    font-size: 1.1rem;
}

.institution-contact {
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1rem;
}

/* Result Card */
.result-card {
    background: var(--card-bg);
    border-radius: 0 0 20px 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 992px) {
    .result-header {
        flex-direction: column;
        gap: 2rem;
    }
    
    .institution-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .institution-logo-left,
    .institution-logo-right {
        width: 80px;
        height: 80px;
    }
}

.student-basic-info h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 1.5rem;
}

/* Student Details Grid */
.student-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 600px;
}

@media (max-width: 768px) {
    .student-details-grid {
        grid-template-columns: 1fr;
    }
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(41, 219, 160, 0.1);
}

.detail-item i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.detail-label {
    display: block;
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.detail-value {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.result-meta {
    text-align: right;
}

@media (max-width: 992px) {
    .result-meta {
        text-align: left;
    }
}

.exam-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.exam-info p {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin: 0.3rem 0;
}

/* Performance Stats */
.performance-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .performance-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .performance-stats {
        grid-template-columns: 1fr;
    }
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(41, 219, 160, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.stat-box h4 {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.3rem;
    line-height: 1;
}

/* Smaller text for highest subject box */
.stat-value-small {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6rem;
}

.stat-value-sub {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.stat-value-sub-small {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-top: 0.5rem;
}

/* Subjects Performance */
.subjects-performance {
    margin-top: 3rem;
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-header p {
    color: var(--light-gray);
    font-size: 1rem;
}

.subjects-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.subjects-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.subjects-table th {
    background: rgba(41, 219, 160, 0.2);
    padding: 1.3rem 1rem;
    text-align: left;
    font-weight: 700;
    color: white;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.subjects-table td {
    padding: 1.3rem 1rem;
    border-bottom: 1px solid rgba(41, 219, 160, 0.1);
    color: var(--light-gray);
}

.subjects-table tr:last-child td {
    border-bottom: none;
}

.subjects-table tr:hover {
    background: rgba(41, 219, 160, 0.08);
}

.subjects-table td:first-child {
    font-weight: 600;
    color: white;
}

.subjects-table td:nth-child(2) {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.subjects-table td:nth-child(3) {
    color: var(--secondary);
    font-weight: 600;
}

.subjects-table td:nth-child(5) {
    font-weight: 600;
}

/* Performance Summary */
.performance-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .performance-summary {
        grid-template-columns: 1fr;
    }
}

.summary-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.summary-box h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.summary-box p {
    color: var(--light-gray);
    margin: 0.8rem 0;
    font-size: 1rem;
}

.highlight {
    color: var(--secondary);
    font-weight: 700;
}

/* Result Footer */
.result-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-notes {
    background: rgba(41, 219, 160, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.footer-notes p {
    color: var(--light-gray);
    margin: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-notes i {
    color: var(--primary);
    margin-top: 3px;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    min-width: 180px;
    justify-content: center;
}

.print-btn {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.print-btn:hover {
    background: rgba(255, 222, 89, 0.1);
    transform: translateY(-3px);
}

.download-btn {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #09333f;
    border: none;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(41, 219, 160, 0.3);
}

.new-search-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: var(--border-color);
}

.new-search-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .header-container,
    .form-container,
    .loading-container,
    .action-buttons,
    .footer-notes,
    .demo-credentials {
        display: none !important;
    }
    #studentName {
    color: #000 !important; /* brand green */
    font-weight: 700;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
    
    .results-portal {
        padding: 0;
        background: white;
        min-height: auto;
    }
    
    .portal-header {
        display: none;
    }
    
    .result-display {
        display: block !important;
    }
    
    .institution-header,
    .result-card {
        box-shadow: none;
        border: 2px solid #000;
        border-radius: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .institution-name,
    .student-basic-info h2,
    .stat-value,
    .stat-value-sub,
    .stat-value-small,
    .stat-value-sub-small,
    .subjects-table th,
    .subjects-table td {
        color: black !important;
    }
    
    .institution-header {
        border-bottom: 3px solid #ffde59;
    }
    
    .stat-box::before {
        background: #000;
    }
    
    .logo-placeholder {
        border-color: #000 !important;
        color: #000 !important;
    }
}

/* Full Width Results Container - FIXED FOR YOUR GREEN THEME */
.full-width-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0c1a21 0%, #1a2d35 100%);
    padding: 20px 0;
    display: none;
}

.results-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Full Width Results - Using YOUR GREEN THEME */
.full-width-container .result-display {
    width: 100%;
    background: transparent;
}

.full-width-container .institution-header {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    margin-bottom: 0;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.full-width-container .result-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 0 0 20px 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Full width adjustments for your theme */
.full-width-container .performance-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 30px 0;
}

.full-width-container .stat-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.full-width-container .stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.full-width-container .stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Subjects Table */
.full-width-container .subjects-table-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.full-width-container .subjects-table {
    width: 100%;
    min-width: 800px;
}

.full-width-container .subjects-table th {
    background: rgba(41, 219, 160, 0.2);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 700;
}

.full-width-container .subjects-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(41, 219, 160, 0.1);
    color: var(--light-gray);
}

.full-width-container .subjects-table td:first-child {
    color: white;
    font-weight: 600;
}

.full-width-container .subjects-table td:nth-child(2) {
    color: var(--primary);
    font-weight: 700;
}

.full-width-container .subjects-table td:nth-child(3) {
    color: var(--secondary);
    font-weight: 600;
}

/* Action Buttons */
.full-width-container .action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.full-width-container .action-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    min-width: 180px;
    justify-content: center;
}

.full-width-container .print-btn {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.full-width-container .print-btn:hover {
    background: rgba(255, 222, 89, 0.1);
    transform: translateY(-3px);
}

.full-width-container .download-btn {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #09333f;
    border: none;
}

.full-width-container .download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(41, 219, 160, 0.3);
}

.full-width-container .new-search-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: var(--border-color);
}

.full-width-container .new-search-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .full-width-container .performance-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .full-width-container {
        padding: 15px 10px;
    }
    
    .full-width-container .institution-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    
    .full-width-container .result-card {
        padding: 20px 15px;
    }
    
    .full-width-container .performance-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .full-width-container .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .full-width-container .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-wrapper {
        padding: 0 10px;
    }
    
    .full-width-container .institution-logo-left,
    .full-width-container .institution-logo-right {
        width: 80px;
        height: 80px;
    }
}
.subjects-table td:nth-child(2),
.subjects-table td:nth-child(3),
.subjects-table td:nth-child(4) {
    font-weight: 700;
    font-size: 1.1rem;
}

.subjects-table td:nth-child(2) {
    color: var(--primary) !important;
}

.subjects-table td:nth-child(3) {
    color: var(--secondary) !important;
}

.subjects-table td:nth-child(4) {
    color: white !important;
}

.exam-pattern-note {
    background: rgba(41, 219, 160, 0.15) !important;
    padding: 10px !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
    border-left: 3px solid var(--secondary) !important;
}

.exam-pattern-note i {
    color: var(--secondary) !important;
}
#studentName {
    color: #ffde59;
    font-weight: 700;
}
