* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0f3a63;
    --navy-light: #0F2E44;
    --gold: #c8a44d;
    --gold-bright: #ffd700;
    --gold-dark: #9E7C19;
    --light-gray: #F5F7FA;
    --gray-institutional: #c0c0c0;
    --white: #ffffff;
    --text-dark: #0A1F33;
    --text-light: #8A94A6;
    --success: #38a169;
    --warning: #f39c12;
    --danger: #e74c3c;
    --border: #e2e8f0;
    --accent: #0F2E44;
    --blue: #0A1F33;
    --gray-medium: #a0aec0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Montserrat', 'Inter', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: var(--navy);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

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

/* Progress Indicator */
.progress-indicator {
    background: var(--white);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.step.active .step-number {
    background: var(--navy);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-label {
    font-size: 12px;
    color: var(--text-light);
}

.step.active .step-label {
    color: var(--navy);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--navy);
    transition: width 0.3s ease;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Open Sans', sans-serif;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background: #152d47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.btn-secondary {
    background: var(--border);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #c5cdd6;
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #229954;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Question Display */
.question-container {
    margin: 30px 0;
}

.question-block {
    padding: 20px;
    border-left: 4px solid var(--navy);
    background: var(--light-gray);
    margin-bottom: 20px;
    border-radius: 4px;
}

.question-number {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.question-text {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.answer-options {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
}

.radio-option label {
    cursor: pointer;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination button {
    padding: 10px 20px;
    border: 2px solid var(--navy);
    background: var(--white);
    color: var(--navy);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: var(--navy);
    color: var(--white);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    font-weight: 600;
    color: var(--navy);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--navy);
}

tr:hover {
    background: var(--light-gray);
}

/* Results & Chart */
.score-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.score-low {
    background: #3498db;
    color: white;
}

.score-normal {
    background: var(--success);
    color: white;
}

.score-moderate {
    background: var(--warning);
    color: white;
}

.score-elevated {
    background: #e67e22;
    color: white;
}

.score-very-high {
    background: var(--danger);
    color: white;
}

.chart-container {
    margin: 30px 0;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
}

.chart-bar {
    margin: 15px 0;
}

.chart-bar-label {
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.chart-bar-track {
    height: 30px;
    background: var(--light-gray);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: white;
    font-weight: 600;
}

.reference-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: rgba(0,0,0,0.3);
    top: 0;
}

/* Report */
.report-section {
    margin: 30px 0;
}

.report-section h3 {
    color: var(--navy);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--navy);
}

.report-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.report-data-item {
    padding: 15px;
    background: var(--light-gray);
    border-radius: 6px;
}

.report-data-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.report-data-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
}

/* Dashboard Styles */
.dashboard {
    min-height: 100vh;
    background: var(--light-gray);
}

.dashboard-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--navy);
}

.dashboard-user {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-avatar:hover {
    background: var(--border);
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.welcome-section h2 {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 24px;
}

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

.metric-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.metric-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.metric-value {
    font-size: 36px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.metric-label {
    font-size: 14px;
    color: var(--text-light);
}

.exam-section {
    margin-bottom: 40px;
}

.exam-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.exam-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.exam-icon {
    font-size: 48px;
}

.exam-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.exam-info p {
    color: var(--text-light);
    margin-bottom: 8px;
}

.exam-meta {
    font-size: 14px;
    color: var(--accent);
}

.exam-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-exam-primary {
    padding: 12px 24px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-exam-primary:hover {
    background: #152d47;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
}

.btn-exam-secondary {
    padding: 12px 24px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-exam-secondary:hover {
    border-color: var(--accent);
    background: var(--light-gray);
}

.exam-status {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.status-pending {
    background: #e2e8f0;
    color: var(--accent);
}

.status-in-progress, .status-in_progress {
    background: #bee3f8;
    color: #2c5282;
}

.status-completed {
    background: #c6f6d5;
    color: #22543d;
}

.evaluations-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
}

.filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--light-gray);
}

.filter-btn.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--navy);
}

.evaluations-table {
    overflow-x: auto;
}

.evaluations-table table {
    width: 100%;
    border-collapse: collapse;
}

.evaluations-table th {
    background: var(--light-gray);
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.evaluations-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
}

.evaluations-table tr:hover {
    background: #f9fafb;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar-inline {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-inline {
    height: 100%;
    background: var(--blue);
    transition: width 0.3s;
}

.progress-text {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    min-width: 40px;
}

.btn-action {
    padding: 6px 16px;
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .progress-steps {
        font-size: 10px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .answer-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .dashboard-header {
        padding: 12px 16px;
    }
    
    .dashboard-content {
        padding: 20px 12px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .exam-header {
        flex-direction: column;
    }
    
    .exam-actions {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filters {
        width: 100%;
        overflow-x: auto;
    }
    
    .evaluations-table {
        font-size: 14px;
    }
    
    .evaluations-table th,
    .evaluations-table td {
        padding: 10px 8px;
    }
}

.score-very-low {
    background: #c0392b;
    color: white;
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 50px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.5;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    display: block;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.3);
}

.login-error {
    background: #fee;
    color: var(--danger);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-light);
}

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.landing-banner {
    background: var(--navy);
    padding: 40px 20px;
    border-bottom: 4px solid;
    border-image: linear-gradient(to right, var(--gold), var(--gold-bright), var(--gold)) 1;
    position: relative;
    overflow: hidden;
}

.landing-banner::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--gold-bright), var(--gold));
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.banner-logo {
    width: 100px;
    height: 100px;
}

.banner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
   
}

/*.banner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: rotate-logo 20s linear infinite;
}*/

@keyframes rotate-logo {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.banner-text {
    flex: 1;
    text-align: center;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    animation: float 3s ease-in-out infinite;
}

.banner-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: var(--gray-institutional);
    animation: float 3s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.landing-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.pin-guard {
    background: var(--white);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 0 auto;
}

.pin-guard h2 {
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 12px;
}

.pin-guard p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.pin-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

.pin-digit {
    width: 60px;
    height: 70px;
    font-size: 32px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    color: var(--navy);
    transition: all 0.3s;
}

.pin-digit:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(15, 58, 99, 0.1);
}

.pin-error {
    color: var(--danger);
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 15px;
}

.exam-cards-section {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 8px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--gold-bright));
    margin-bottom: 40px;
}

.exam-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.exam-card-landing {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.exam-card-landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--gold-bright));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.exam-card-landing:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--gold);
}

.exam-card-landing:hover::before {
    transform: scaleX(1);
}

.exam-icon-landing {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--navy) 0%, #1a5a8f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: transform 0.3s;
}

.exam-card-landing:hover .exam-icon-landing {
    transform: scale(1.1);
}

.exam-card-landing h3 {
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 600;
}

.exam-card-landing p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 15px;
}

.exam-access-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.exam-access-btn:hover {
    background: #0a2d4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 58, 99, 0.3);
}

.admin-section {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.admin-section p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 16px;
}

.admin-login-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-login-btn:hover {
    background: #0a2d4d;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 58, 99, 0.3);
}

/* Custom Modal System */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s;
    padding: 20px;
}

.custom-modal {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
    position: relative;
}

.custom-modal.modal-login {
    max-width: 440px;
}

.custom-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 8px;
}

.custom-modal-close:hover {
    color: var(--navy);
}

.custom-modal h3 {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 20px;
    text-align: center;
}

.custom-modal p {
    color: var(--text-light);
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.6;
}

.custom-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.custom-modal-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-modal-btn.btn-confirm {
    background: var(--navy);
    color: var(--white);
}

.custom-modal-btn.btn-confirm:hover {
    background: #0a2d4d;
    transform: translateY(-2px);
}

.custom-modal-btn.btn-cancel {
    background: var(--border);
    color: var(--text-dark);
}

.custom-modal-btn.btn-cancel:hover {
    background: #cbd5e0;
}

.custom-modal-btn.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.custom-modal-btn.btn-danger:hover {
    background: #c0392b;
}

.result-content {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
}

.result-item {
    margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: var(--navy);
    margin-right: 8px;
}

.result-value {
    color: var(--text-dark);
}

/* Admin User Management */
.admin-users-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 32px;
    margin-bottom: 30px;
}

.user-form {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    background: var(--light-gray);
    border-radius: 8px;
}

.users-table {
    overflow-x: auto;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    background: var(--light-gray);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--navy);
    border-bottom: 2px solid var(--border);
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.pin-display {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--navy);
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
}

.btn-regenerate {
    background: var(--warning);
    color: var(--white);
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-regenerate:hover {
    background: #e67e22;
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .pin-digit {
        width: 50px;
        height: 60px;
        font-size: 28px;
    }
    
    .exam-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-modal {
        padding: 30px 24px;
    }
}

/* Institutional Dashboard */
.institutional-dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--light-gray);
}

.institutional-sidebar {
    width: 260px;
    background: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: 4px 0 12px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-logo img {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
    margin: 0 auto 15px auto; /* CENTRA */
    display: block;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.sidebar-subtitle {
    font-size: 11px;
    color: var(--gray-institutional);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-menu-item {
    padding: 14px 24px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-menu-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-left-color: var(--gold);
}

.sidebar-menu-item.active {
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold);
    border-left-color: var(--gold);
}

.sidebar-menu-icon {
    font-size: 18px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--navy);
    font-weight: 700;
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--gray-institutional);
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--gray-institutional);
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    transition: color 0.3s;
}

.logout-btn:hover {
    color: var(--danger);
}

.institutional-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

.institutional-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-btn {
    padding: 10px 20px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.header-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.institutional-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: var(--white);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--gold);
    transition: all 0.3s;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gold);
}

.kpi-trend {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.kpi-trend.up {
    background: #d4edda;
    color: #155724;
}

.kpi-trend.down {
    background: #f8d7da;
    color: #721c24;
}

.kpi-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.kpi-subtitle {
    font-size: 12px;
    color: var(--text-light);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Terman Series III Binary Options */
.terman-binary-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.terman-binary-btn {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    padding: 24px 20px;
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.terman-binary-btn:hover {
    border-color: #1e3a5f;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.15);
    transform: translateY(-2px);
}

.terman-binary-btn.selected {
    background: #1e3a5f;
    border-color: #1e3a5f;
}

.terman-binary-btn.selected .binary-btn-letter,
.terman-binary-btn.selected .binary-btn-label,
.terman-binary-btn.selected .binary-btn-subtitle {
    color: white;
}

.binary-btn-letter {
    font-size: 36px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.binary-btn-label {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.binary-btn-subtitle {
    font-size: 14px;
    color: #4a5568;
}

@media (max-width: 600px) {
    .terman-binary-options {
        flex-direction: column;
    }
    .terman-binary-btn {
        max-width: 100%;
    }
}

.header-back-btn {
    padding: 10px 20px;
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--border);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-back-btn:hover {
    background: var(--light-gray);
    border-color: var(--navy);
    transform: translateX(-4px);
}

.action-buttons-group {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.btn-action-icon {
    background: white;
    border: 2px solid var(--border);
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-action-icon svg {
    transition: all 0.3s ease;
}

/* View results / PDF button - Blue */
.btn-action-icon[data-action="download-pdf"] {
    border-color: #3498db;
    color: #3498db;
}

.btn-action-icon[data-action="download-pdf"]:hover {
    background: #3498db;
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3);
}

/* Revision button - Purple */
.btn-action-icon[data-action="revision"] {
    border-color: #9b59b6;
    color: #9b59b6;
}

.btn-action-icon[data-action="revision"]:hover {
    background: #9b59b6;
    border-color: #9b59b6;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(155, 89, 182, 0.3);
}

/* Edit button - Orange */
.btn-action-icon[data-action="edit"] {
    border-color: #f39c12;
    color: #f39c12;
}

.btn-action-icon[data-action="edit"]:hover {
    background: #f39c12;
    border-color: #f39c12;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.3);
}

/* Delete button - Red */
.btn-action-icon[data-action="delete"],
.btn-action-icon-delete {
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-action-icon[data-action="delete"]:hover,
.btn-action-icon-delete:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.3);
}

/* Regenerate PIN button - Green */
.btn-action-icon[data-action="regenerate-user"] {
    border-color: #27ae60;
    color: #27ae60;
}

.btn-action-icon[data-action="regenerate-user"]:hover {
    background: #27ae60;
    border-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.3);
}

/* Edit user button - Teal */
.btn-action-icon[data-action="edit-user"] {
    border-color: #16a085;
    color: #16a085;
}

.btn-action-icon[data-action="edit-user"]:hover {
    background: #16a085;
    border-color: #16a085;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(22, 160, 133, 0.3);
}

/* Delete user button - Dark Red */
.btn-action-icon[data-action="delete-user"] {
    border-color: #c0392b;
    color: #c0392b;
}

.btn-action-icon[data-action="delete-user"]:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.3);
}

/* Common hover effect for all buttons */
.btn-action-icon:hover svg {
    stroke: white;
}

.btn-action-icon:active {
    transform: translateY(0);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

.modal-content h3 {
    color: var(--navy);
    margin-bottom: 20px;
    font-size: 20px;
}

.modal-confirm {
    text-align: center;
    max-width: 400px;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #c0392b;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== EFECTOS HOVER PARA TARJETAS DE EXÁMENES ===== */

/* Contenedor de las tarjetas */
.exam-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Tarjeta base - IPAA y Terman */
.exam-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    position: relative;
    overflow: hidden;
}

/* Efecto hover general para ambas tarjetas */
.exam-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(15, 58, 99, 0.2);
    border-color: var(--gold);
}

/* Títulos de las tarjetas */
.exam-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.exam-card:hover h3 {
    color: var(--gold);
}

/* Descripción */
.exam-card p {
    color: #6b7280;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.exam-card:hover p {
    color: var(--navy);
}

/* Metadatos (preguntas, tiempo, series) */
.exam-meta {
    display: inline-block;
    background: #f3f4f6;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.exam-card:hover .exam-meta {
    background: var(--navy);
    color: white;
    transform: scale(1.05);
}

/* Contenedor de botones */
.exam-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

/* Botón primario (Nueva evaluación) */
.btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: white;
    color: var(--navy);
    border-color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(15, 58, 99, 0.3);
}

/* Botón secundario (Ver historial / Disponible) */
.btn-secondary {
    flex: 1;
    padding: 12px 20px;
    background: white;
    color: var(--navy);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(201, 162, 39, 0.3);
}

/* Estadísticas solo para IPAA */
.exam-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eef2f6;
    transition: border-color 0.3s ease;
}

.exam-card:hover .exam-stats {
    border-top-color: var(--gold);
}

.stat-item {
    text-align: center;
    padding: 10px 5px;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    background: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px -5px rgba(15, 58, 99, 0.3);
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
    color: rgba(255,255,255,0.8);
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    color: white;
    transform: scale(1.1);
}

/* Colores específicos para cada estadística al hover */
.stat-item.in-progress:hover { background: var(--warning); }
.stat-item.completed:hover { background: var(--success); }
.stat-item.pending:hover { background: var(--danger); }

/* ===== TARJETA IPAA (MMPI-2) ESPECÍFICA ===== */
.exam-card.ipaa-card {
    border-left: 4px solid var(--navy);
}

.exam-card.ipaa-card:hover {
    border-left-color: var(--gold);
}

/* Icono específico para IPAA */
.exam-card.ipaa-card::before {
    content: '📋';
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 48px;
    opacity: 0.1;
    transition: all 0.5s ease;
}

.exam-card.ipaa-card:hover::before {
    opacity: 0.2;
    transform: rotate(10deg) scale(1.2);
}

/* ===== TARJETA TEST TERMAN ESPECÍFICA ===== */
.exam-card.terman-card {
    border-left: 4px solid var(--gold);
}

.exam-card.terman-card:hover {
    border-left-color: var(--navy);
}

/* Icono específico para Terman */
.exam-card.terman-card::before {
    content: '🧠';
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 48px;
    opacity: 0.1;
    transition: all 0.5s ease;
}

.exam-card.terman-card:hover::before {
    opacity: 0.2;
    transform: scale(1.2) rotate(360deg);
}

/* ===== VERSIÓN SIMPLIFICADA (SI LA ANTERIOR NO FUNCIONA) ===== */

/* Versión ultra simple que SÍ funciona */
.simple-exam-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    transition: 0.2s;
    cursor: pointer;
}

.simple-exam-card:hover {
    border-color: #c8a44d;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.simple-exam-card h4 {
    color: #0f3a63;
    font-size: 22px;
    margin-bottom: 5px;
    transition: 0.2s;
}

.simple-exam-card:hover h4 {
    color: #c8a44d;
}

.simple-btn {
    background: #0f3a63;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 10px;
    transition: 0.2s;
    cursor: pointer;
}

.simple-btn:hover {
    background: #c8a44d;
    transform: scale(1.05);
}

/* ===== STATISTICS CHARTS - PROFESSIONAL ANIMATIONS ===== */

/* Chart containers - smooth entrance */
@keyframes chartFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bar chart animations */
@keyframes barGrow {
    from {
        transform: scaleY(0);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Individual bar styling with hover effects */
.kpi-grid,
[style*="background: white"][style*="border-radius: 12px"] {
    animation: chartFadeIn 0.6s ease-out;
}

/* Enhanced bar chart hover effects */
[style*="flex: 1"][style*="display: flex"][style*="flex-direction: column"]:has([style*="background:"]) {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[style*="flex: 1"][style*="display: flex"][style*="flex-direction: column"]:has([style*="background:"]):hover {
    transform: translateY(-8px);
    filter: brightness(1.1);
}

/* Bar animation on load */
[style*="flex: 1"][style*="display: flex"][style*="flex-direction: column"] > div[style*="background: #0A1F33"] {
    animation: barGrow 0.8s ease-out backwards;
    transform-origin: bottom;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Stagger animation for multiple bars */
[style*="flex: 1"][style*="display: flex"][style*="flex-direction: column"]:nth-child(1) > div[style*="background:"] {
    animation-delay: 0.1s;
}

[style*="flex: 1"][style*="display: flex"][style*="flex-direction: column"]:nth-child(2) > div[style*="background:"] {
    animation-delay: 0.2s;
}

[style*="flex: 1"][style*="display: flex"][style*="flex-direction: column"]:nth-child(3) > div[style*="background:"] {
    animation-delay: 0.3s;
}

[style*="flex: 1"][style*="display: flex"][style*="flex-direction: column"]:nth-child(4) > div[style*="background:"] {
    animation-delay: 0.4s;
}

[style*="flex: 1"][style*="display: flex"][style*="flex-direction: column"]:nth-child(5) > div[style*="background:"] {
    animation-delay: 0.5s;
}

[style*="flex: 1"][style*="display: flex"][style*="flex-direction: column"]:nth-child(6) > div[style*="background:"] {
    animation-delay: 0.6s;
}

[style*="flex: 1"][style*="display: flex"][style*="flex-direction: column"]:nth-child(7) > div[style*="background:"] {
    animation-delay: 0.7s;
}

/* Shimmer effect on bars */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

[style*="flex: 1"][style*="display: flex"][style*="flex-direction: column"]:hover > div[style*="background:"] {
    background: linear-gradient(
        90deg,
        #0A1F33 0%,
        #1a3a5f 50%,
        #0A1F33 100%
    ) !important;
    background-size: 200% auto !important;
    animation: shimmer 2s linear infinite;
    box-shadow: 0 8px 16px rgba(10, 31, 51, 0.3);
    transform: scaleY(1.05);
}

/* Pie chart segments - rotation animation */
@keyframes pieSliceIn {
    from {
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: var(--dash-offset, 0);
    }
}

/* SVG circle animations */
circle[stroke] {
    animation: pieSliceIn 1.5s ease-out forwards;
    transition: all 0.3s ease;
}

/* Pie chart hover effect */
[style*="position: relative"][style*="width: 150px"][style*="height: 150px"] {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[style*="position: relative"][style*="width: 150px"][style*="height: 150px"]:hover {
    transform: scale(1.08) rotate(5deg);
}

/* Legend items pulse on hover */
[style*="display: flex"][style*="align-items: center"][style*="margin-bottom: 8px"] {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

[style*="display: flex"][style*="align-items: center"][style*="margin-bottom: 8px"]:hover {
    background: rgba(10, 31, 51, 0.05);
    transform: translateX(8px);
}

/* Color squares bounce */
[style*="width: 12px"][style*="height: 12px"][style*="border-radius: 3px"] {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[style*="display: flex"][style*="align-items: center"][style*="margin-bottom: 8px"]:hover [style*="width: 12px"][style*="height: 12px"] {
    transform: scale(1.4) rotate(360deg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Trend line animation */
@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

polyline[stroke="#C9A227"] {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-out 0.5s forwards;
}

/* Trend bars grow animation */
[style*="background: linear-gradient(to top, #0A1F33, #0F2E44)"] {
    animation: barGrow 1s ease-out backwards;
    transform-origin: bottom;
    transition: all 0.3s ease;
}

/* Stagger trend bars */
[style*="display: flex"][style*="align-items: flex-end"]:has([style*="background: linear-gradient"]) > div:nth-child(1) [style*="background: linear-gradient"] {
    animation-delay: 0.2s;
}

[style*="display: flex"][style*="align-items: flex-end"]:has([style*="background: linear-gradient"]) > div:nth-child(2) [style*="background: linear-gradient"] {
    animation-delay: 0.3s;
}

[style*="display: flex"][style*="align-items: flex-end"]:has([style*="background: linear-gradient"]) > div:nth-child(3) [style*="background: linear-gradient"] {
    animation-delay: 0.4s;
}

[style*="display: flex"][style*="align-items: flex-end"]:has([style*="background: linear-gradient"]) > div:nth-child(4) [style*="background: linear-gradient"] {
    animation-delay: 0.5s;
}

[style*="display: flex"][style*="align-items: flex-end"]:has([style*="background: linear-gradient"]) > div:nth-child(5) [style*="background: linear-gradient"] {
    animation-delay: 0.6s;
}

[style*="display: flex"][style*="align-items: flex-end"]:has([style*="background: linear-gradient"]) > div:nth-child(6) [style*="background: linear-gradient"] {
    animation-delay: 0.7s;
}

[style*="display: flex"][style*="align-items: flex-end"]:has([style*="background: linear-gradient"]) > div:nth-child(7) [style*="background: linear-gradient"] {
    animation-delay: 0.8s;
}

/* Trend bars hover with glow */
[style*="display: flex"][style*="align-items: flex-end"]:has([style*="background: linear-gradient"]) > div:hover [style*="background: linear-gradient"] {
    background: linear-gradient(to top, #C9A227, #ffd700) !important;
    transform: scaleY(1.1) scaleX(1.05);
    box-shadow: 0 -8px 24px rgba(201, 162, 39, 0.4);
    filter: brightness(1.2);
}

/* Chart title hover effects */
[style*="color: #0A1F33"][style*="margin-bottom: 20px"][style*="font-size: 1.5rem"] {
    transition: all 0.3s ease;
    cursor: default;
}

[style*="color: #0A1F33"][style*="margin-bottom: 20px"][style*="font-size: 1.5rem"]:hover {
    color: #C9A227;
    transform: translateX(8px);
}

/* Section icons pulse */
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

[style*="color: #0A1F33"][style*="margin-bottom: 15px"][style*="font-size: 1.1rem"]::before {
    display: inline-block;
    margin-right: 8px;
    transition: all 0.3s ease;
}

[style*="color: #0A1F33"][style*="margin-bottom: 15px"][style*="font-size: 1.1rem"]:hover::before {
    animation: iconPulse 0.6s ease;
}

/* Grid reference lines fade in */
[style*="border-top: 1px dashed #E0E0E0"] {
    animation: chartFadeIn 1s ease-out 0.3s backwards;
}

/* ===== EFECTOS EXTRA QUE SÍ FUNCIONAN ===== */

/* Efecto de brillo en los números */
.stat-number {
    position: relative;
    display: inline-block;
}

@keyframes glow {
    0% { text-shadow: 0 0 0 rgba(201, 162, 39, 0); }
    50% { text-shadow: 0 0 10px rgba(201, 162, 39, 0.5); }
    100% { text-shadow: 0 0 0 rgba(201, 162, 39, 0); }
}

.stat-item:hover .stat-number {
    animation: glow 1s infinite;
}

/* Efecto de pulsación para botones */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-primary:active,
.btn-secondary:active {
    animation: pulse 0.3s ease;
}

/* Efecto de entrada suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global timer styles - improved visibility and accessibility */
.timer-display {
    display: inline-block;
    min-width: 120px;
    padding: 10px 16px;
    background: linear-gradient(180deg, #0f3a63 0%, #0a2e4a 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(15,58,99,0.25);
    border: 2px solid rgba(255,255,255,0.06);
    letter-spacing: 0.5px;
}

/* Larger variant for prominent placements */
.timer-display.large {
    font-size: 22px;
    padding: 14px 20px;
    min-width: 140px;
}

/* Warning state - high contrast and animated pulse */
.time-warning {
    background: linear-gradient(180deg, #c0392b 0%, #e74c3c 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(231,76,60,0.25);
    animation: pulse-timer 1s infinite;
    border-color: rgba(255,255,255,0.12);
}

/* Subtle pulsing to draw attention when almost out of time */
@keyframes pulse-timer {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* Ensure timer is readable on small screens */
@media (max-width: 600px) {
    .timer-display {
        font-size: 16px;
        padding: 10px 12px;
        min-width: 100px;
    }
    .timer-display.large {
        font-size: 18px;
        min-width: 120px;
    }
}

.exam-card {
    animation: fadeInUp 0.5s ease forwards;
}

.exam-card:nth-child(2) {
    animation-delay: 0.1s;
}

/* Responsive */
@media (max-width: 768px) {
    .exam-section {
        grid-template-columns: 1fr;
    }
    
    .exam-actions {
        flex-direction: column;
    }
    
    .exam-card:hover {
        transform: translateY(-5px);
    }
}