:root {
    --sansa-blue: #003f7f;
    --sansa-light-blue: #0077c8;
    --sansa-dark-blue: #002d72;
    --dark: #102033;
    --light: #f4f8fc;
    --white: #ffffff;
    --green: #22a447;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
}

a {
    transition: 0.2s ease;
}

.navbar {
    background: var(--white);
    padding: 14px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a,
.navbar a {
    text-decoration: none;
    color: var(--sansa-blue);
    font-weight: bold;
    white-space: nowrap;
}

.hero {
    min-height: 75vh;
    padding: 90px 60px;
    background:
        linear-gradient(rgba(0,35,80,0.85), rgba(0,35,80,0.85)),
        url("../images/hero-space.png");
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    line-height: 1.6;
}

.competition-date {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    font-weight: bold;
}

.btn {
    display: inline-block;
    width: fit-content;
    margin-top: 22px;
    padding: 16px 34px;
    background: var(--sansa-light-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 17px;
    border: none;
    cursor: pointer;
}

.section {
    padding: 60px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card,
.form-card {
    background: var(--white);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.card h3,
.form-card h2,
.form-container h1 {
    color: var(--sansa-blue);
}

.footer {
    background: var(--sansa-blue);
    color: var(--white);
    text-align: center;
    padding: 18px;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
}

.form-intro {
    margin-bottom: 30px;
    font-size: 18px;
}

.form-card {
    margin-bottom: 25px;
}

.form-card label {
    display: block;
    font-weight: bold;
    margin-top: 18px;
    margin-bottom: 8px;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    font-size: 15px;
}

.form-card textarea {
    min-height: 120px;
}

.checkbox-label {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    font-weight: normal !important;
}

.checkbox-label input {
    width: auto;
    margin-top: 4px;
}

.form-btn {
    font-size: 16px;
}

.error-box {
    background: #fff3f3;
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.field-error {
    color: #b71c1c !important;
    background-color: #ffebee;
    border-left: 4px solid #b71c1c;
    padding: 10px 12px;
    margin-top: 8px;
    margin-bottom: 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.stats-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px;
    background: var(--white);
    flex-wrap: wrap;
}

.stat-card {
    background: var(--white);
    width: 250px;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.stat-card h2 {
    margin: 0;
    font-size: 48px;
    color: var(--sansa-blue);
}

.stat-card p {
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

/* SUCCESS PAGE */

.success-container {
    max-width: 1250px;
    margin: 40px auto;
    padding: 20px;
}

.success-card {
    background: var(--white);
    border-radius: 22px;
    padding: 45px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.success-header {
    display: grid;
    grid-template-columns: 45% 55%;
    align-items: center;
    gap: 50px;
    margin-bottom: 35px;
}

.success-image img {
    width: 100%;
    max-width: 470px;
    height: auto;
    display: block;
}

.success-icon {
    font-size: 34px;
    margin-bottom: 10px;
}

.success-message h1 {
    font-size: 70px;
    color: var(--sansa-dark-blue);
    margin: 0 0 18px;
}

.success-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--green);
}

.success-message p {
    font-size: 20px;
    line-height: 1.6;
}

.reference-box {
    border: 2px solid var(--green);
    border-radius: 20px;
    padding: 30px;
    background: var(--white);
    position: relative;
}

.reference-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--sansa-dark-blue);
    word-break: break-word;
}

.reference-actions {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.copy-btn {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 14px 26px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.copy-message {
    display: none;
    margin-left: 12px;
    color: var(--green);
    font-weight: 700;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.share-card,
.next-steps-card {
    background: #f8fbff;
    border-radius: 18px;
    padding: 35px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    text-decoration: none;
    padding: 13px 22px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 700;
}

.whatsapp { background: #25D366; }
.facebook { background: #1877F2; }
.twitter { background: #000000; }

.success-actions {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.home-btn {
    background: var(--sansa-dark-blue);
    color: var(--white);
    text-decoration: none;
    padding: 16px 55px;
    border-radius: 10px;
    font-weight: 700;
}

/* COMPETITION RULES */

.rules-cta {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

.rules-cta-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.rules-cta h2 {
    color: var(--sansa-blue);
    font-size: 40px;
}

.rules-cta p {
    font-size: 20px;
    color: #555;
}

.rules-submit-btn {
    display: inline-block;
    margin: 0 auto;
}

.rules-help {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 20px;
}

.rules-help-card {
    background: var(--white);
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.rules-email {
    font-size: 20px;
    font-weight: bold;
    color: var(--sansa-blue);
}

/* MOBILE */

@media (max-width: 900px) {
    .success-header,
    .bottom-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .success-image img {
        margin: 0 auto;
    }

    .reference-actions {
        position: static;
        transform: none;
        margin-top: 20px;
    }

    .reference-number {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
    .logo img {
        height: 45px;
    }

    .hero {
        min-height: auto;
        padding: 55px 22px;
        text-align: center;
    }

    .hero h1 {
        font-size: 34px;
    }

    .section {
        padding: 30px 18px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .stats-section {
        flex-direction: column;
        align-items: center;
        padding: 30px 18px;
    }

    .stat-card {
        width: 100%;
        max-width: 320px;
    }

    .form-card {
        padding: 20px;
    }

    .btn,
    .form-btn,
    .copy-btn,
    .home-btn,
    .share-btn {
        width: 100%;
        text-align: center;
    }

    .success-card {
        padding: 22px;
    }

    .success-message h1 {
        font-size: 44px;
    }

    .success-text {
        font-size: 20px;
    }

    .reference-number {
        font-size: 26px;
    }

    .rules-cta h2 {
        font-size: 30px;
    }

    .rules-help-card {
        padding: 28px;
    }
}

/* ===============================
   Judge Portal Dashboard
================================= */

.judge-dashboard {
    min-height: 100vh;
    background: #f4f8fc;
    padding: 30px;
}

.judge-header {
    max-width: 1300px;
    margin: 0 auto 30px;
    background: #ffffff;
    border-radius: 18px;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.judge-header h1 {
    margin: 0;
    color: #003f7f;
    font-size: 32px;
}

.judge-header p {
    margin: 6px 0 0;
    color: #555;
}

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

.judge-link,
.judge-logout {
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.judge-link {
    color: #003f7f;
    background: #eef5ff;
}

.judge-logout {
    color: #ffffff;
    background: #003f7f;
}

.judge-welcome-card {
    max-width: 1300px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #003f7f, #005daa);
    color: white;
    border-radius: 22px;
    padding: 35px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: center;
    box-shadow: 0 12px 35px rgba(0,63,127,0.25);
}

.judge-profile {
    display: flex;
    align-items: center;
    gap: 24px;
}

.judge-profile img,
.judge-avatar {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.8);
    background: white;
}

.judge-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003f7f;
    font-size: 48px;
    font-weight: 800;
}

.judge-profile h2 {
    margin: 0 0 8px;
    font-size: 34px;
}

.judge-profile p {
    margin: 5px 0;
    font-size: 16px;
}

.judge-role {
    font-weight: 700;
    color: #d8ecff;
}

.judge-message {
    background: rgba(255,255,255,0.15);
    border-radius: 18px;
    padding: 25px;
}

.judge-message h3 {
    margin-top: 0;
    font-size: 24px;
}

.judge-message p {
    line-height: 1.6;
}

.judge-stats-grid {
    max-width: 1300px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.judge-stat-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.judge-stat-card span {
    color: #555;
    font-weight: 700;
}

.judge-stat-card h2 {
    margin: 12px 0 0;
    color: #003f7f;
    font-size: 46px;
}

.judge-progress-card {
    max-width: 1300px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.judge-progress-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.judge-progress-title h2 {
    margin: 0;
    color: #003f7f;
}

.judge-progress-title span {
    font-weight: 700;
    color: #555;
}

.judge-progress-bar {
    background: #e6eef8;
    border-radius: 20px;
    height: 20px;
    overflow: hidden;
}

.judge-progress-bar div {
    height: 100%;
    background: linear-gradient(90deg, #003f7f, #0077c8);
    border-radius: 20px;
}

.judge-main-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.judge-panel {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.judge-panel h2 {
    margin-top: 0;
    color: #003f7f;
}

.judge-table-wrapper {
    overflow-x: auto;
}

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

.judge-table th,
.judge-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e6eef8;
    text-align: left;
}

.judge-table th {
    color: #003f7f;
    font-size: 14px;
    text-transform: uppercase;
}

.judge-review-btn {
    background: #0077c8;
    color: white;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
}

.judge-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.judge-primary-btn,
.judge-secondary-btn {
    text-align: center;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 800;
    border: none;
}

.judge-primary-btn {
    background: #003f7f;
    color: white;
}

.judge-primary-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.judge-secondary-btn {
    background: #eef5ff;
    color: #003f7f;
}

.judge-tip {
    background: #f8fbff;
    border-left: 4px solid #0077c8;
    border-radius: 12px;
    padding: 18px;
    margin-top: 10px;
}

.judge-tip h3 {
    margin-top: 0;
    color: #003f7f;
}

.judge-empty-state {
    background: #f8fbff;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
}

@media (max-width: 900px) {
    .judge-welcome-card,
    .judge-main-grid {
        grid-template-columns: 1fr;
    }

    .judge-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .judge-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .judge-dashboard {
        padding: 15px;
    }

    .judge-profile {
        flex-direction: column;
        text-align: center;
    }

    .judge-profile h2 {
        font-size: 26px;
    }

    .judge-stats-grid {
        grid-template-columns: 1fr;
    }

    .judge-progress-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.judge-logout-form {
    margin: 0;
}

.judge-logout {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

/* ===============================
   Judge Review Workspace
================================= */

.judge-review-page {
    min-height: 100vh;
    background: #f4f8fc;
    padding: 30px;
}

.review-topbar {
    max-width: 1400px;
    margin: 0 auto 30px;
    background: #ffffff;
    border-radius: 18px;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.review-topbar h1 {
    margin: 0;
    color: #003f7f;
    font-size: 32px;
}

.review-topbar p {
    margin: 6px 0 0;
    font-weight: 700;
    color: #555;
}

.review-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 30px;
}

.review-preview-card,
.review-score-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.review-preview-card h2,
.review-score-card h2 {
    margin-top: 0;
    color: #003f7f;
}

.review-image-box {
    background: #f8fbff;
    border: 2px dashed #cfe0f5;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.review-image-box img {
    max-width: 100%;
    max-height: 650px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.review-description {
    background: #f8fbff;
    border-radius: 16px;
    padding: 22px;
    margin-top: 25px;
}

.review-description h3 {
    color: #003f7f;
    margin-top: 0;
}

.review-description p {
    line-height: 1.7;
}

.review-info-card {
    background: #f8fbff;
    border-left: 4px solid #0077c8;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 25px;
}

.review-info-card p {
    margin: 8px 0;
}

.score-group {
    display: grid;
    grid-template-columns: 1fr 90px 40px;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.score-group label {
    font-weight: 800;
    color: #102033;
}

.score-group input {
    padding: 12px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
}

.score-group span {
    font-weight: 800;
    color: #003f7f;
}

.comments-label {
    display: block;
    margin: 25px 0 8px;
    font-weight: 800;
}

.review-score-card textarea {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    resize: vertical;
    margin-bottom: 22px;
}

.full-width {
    width: 100%;
}

@media (max-width: 900px) {
    .review-layout {
        grid-template-columns: 1fr;
    }

    .review-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .judge-review-page {
        padding: 15px;
    }

    .review-preview-card,
    .review-score-card {
        padding: 20px;
    }

    .score-group {
        grid-template-columns: 1fr;
    }

    .score-group input {
        width: 100%;
    }
}

.review-button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .review-button-row {
        grid-template-columns: 1fr;
    }
}

.score-row {
    border-bottom: 1px solid #e6eef8;
    padding: 24px 0;
}

.score-row-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.score-row-title label {
    font-size: 20px;
    font-weight: 800;
    color: #102033;
}

.score-row-title span {
    font-size: 20px;
    font-weight: 800;
    color: #003f7f;
}

.score-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
}

.score-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #cfd8e3;
    background: #ffffff;
    color: #003f7f;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all .25s ease;
}

.score-btn:hover {
    background: #0077c8;
    color: white;
    transform: translateY(-2px);
}

.score-btn.active {
    background: #003f7f;
    color: white;
    border-color: #003f7f;
    box-shadow: 0 8px 18px rgba(0,93,170,.28);
}

.live-total-box {
    margin: 28px 0;
    padding: 22px 26px;
    background: #f8fbff;
    border: 1px solid #cfe0f5;
    border-left: 5px solid #003f7f;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-total-box span {
    font-weight: 800;
    color: #102033;
    font-size: 18px;
}

.live-total-box strong {
    font-size: 32px;
    color: #003f7f;
}

@media (max-width: 600px) {
    .score-buttons {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .score-btn {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
}

.recommendation-section {
    margin: 30px 0;
}

.recommendation-section h3 {
    color: #003f7f;
    margin-bottom: 16px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.recommendation-card {
    display: block;
    border: 2px solid #d7e3f4;
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    background: #ffffff;
    transition: all .25s ease;
}

.recommendation-card:hover {
    border-color: #0077c8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.recommendation-card input {
    display: none;
}

.recommendation-card:has(input:checked) {
    border-color: #003f7f;
    background: #eef5ff;
    box-shadow: 0 8px 22px rgba(0,63,127,0.18);
}

.recommendation-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.recommendation-card strong {
    display: block;
    color: #003f7f;
    font-size: 18px;
    margin-bottom: 6px;
}

.recommendation-card small {
    color: #555;
    line-height: 1.5;
}

.clickable-design {
    cursor: zoom-in;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 20, 50, 0.92);
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.image-modal.show {
    display: flex;
}

.image-modal img {
    max-width: 95%;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    background: white;
}

.image-modal-close {
    position: fixed;
    top: 25px;
    right: 35px;
    background: white;
    color: #003f7f;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    font-weight: 800;
}

.entry-navigation {
    max-width: 1400px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-progress-card {
    max-width: 1400px;
    margin: 0 auto 25px;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.review-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-progress-header h3 {
    margin: 0;
    color: #003f7f;
}

.review-progress-header span {
    font-weight: 700;
    color: #555;
}

.judge-progress-bar {
    width: 100%;
    height: 12px;
    background: #dce7f6;
    border-radius: 20px;
    overflow: hidden;
}

.judge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #005baa, #0077c8);
    transition: width .4s ease;
}

/* ===============================
   Judge Workspace Final Polish
================================= */

.review-progress-card {
    border-left: 5px solid #003f7f;
}

.entry-navigation .judge-secondary-btn {
    min-width: 160px;
}

.recommendation-card {
    position: relative;
}

.recommendation-check {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #003f7f;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.recommendation-card:has(input:checked) .recommendation-check {
    display: flex;
}

.recommendation-card:has(input:checked) {
    transform: translateY(-2px);
    border-color: #003f7f;
    box-shadow: 0 10px 28px rgba(0,63,127,0.22);
}

.save-feedback {
    display: none;
    margin: 20px 0;
    padding: 14px 18px;
    background: #ecfdf3;
    border-left: 5px solid #22a447;
    border-radius: 10px;
    color: #146c2e;
    font-weight: 800;
}

.save-feedback.show {
    display: block;
}

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

.view-toggle {
    display: inline-flex;
    gap: 8px;
    background: #eef5ff;
    padding: 6px;
    border-radius: 12px;
}

.view-toggle a {
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 9px;
    font-weight: 800;
    color: #003f7f;
}

.view-toggle a.active {
    background: #003f7f;
    color: #ffffff;
}

.judge-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.judge-entry-card {
    background: #f8fbff;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #dbe8f7;
}

.judge-entry-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 14px;
}

.judge-entry-card h3 {
    margin-top: 18px;
    margin-bottom: 14px;
    color: #003f7f;
}

@media (max-width: 800px) {
    .judge-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .judge-entry-grid {
        grid-template-columns: 1fr;
    }
}

.pagination-controls {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.pagination-controls a {
    background: #003f7f;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
}

.pagination-controls span {
    color: #555;
    font-weight: 800;
}

.pdf-preview-card {
    height: 220px;
    border: 2px dashed #d8e2ef;
    border-radius: 12px;
    background: #f8fbff;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    margin-bottom: 15px;
}

.pdf-icon {
    font-size: 52px;
    margin-top: 18px;
    margin-bottom: 14px;
    color: #003f7f;margin-bottom: 12px;
}

.pdf-preview-card h4 {
    color: #003f7f;
    margin: 0;
}

.pdf-preview-card p {
    color: #666;
    font-size: 14px;
    margin-top: 6px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 20, 45, 0.72);
    z-index: 9999;
    padding: 40px;
}

.preview-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-modal-content {
    background: #ffffff;
    width: min(1000px, 95vw);
    max-height: 90vh;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
}

.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: #f5f9ff;
    border-bottom: 1px solid #dbe8f7;
}

.preview-modal-header h2 {
    margin: 0;
    color: #003f7f;
}

.preview-modal-header p {
    margin: 6px 0 0;
    color: #555;
    font-weight: 700;
}

.preview-close {
    border: none;
    background: #003f7f;
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
}

.preview-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.preview-area {
    width: 100%;
    height: 52vh;
    min-height: 320px;
    background: #f8fbff;
    border-radius: 16px;
    border: 1px solid #dbe8f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-pdf {
    width: 100%;
    height: 100%;
    border: none;
}

.preview-details {
    display: flex;
    gap: 30px;
    margin-top: 18px;
}

.preview-details p {
    margin: 0;
}

@media (max-width: 700px) {
    .preview-area {
        height: 45vh;
        min-height: 260px;
    }

    .preview-modal-actions {
        flex-direction: column;
    }

    .preview-modal-actions a {
        width: 100%;
    }

    .preview-details {
        flex-direction: column;
        gap: 8px;
    }
}


.submission-preview-box {
    margin-bottom: 22px;
}

.preview-btn {
    width: 120px;
    justify-content: center;
}

.pdf-modal-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.pdf-open-btn {
    width: auto;
    padding: 12px 24px;
}

.preview-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.image-modal-preview,
.pdf-modal-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-modal-preview .preview-image,
.pdf-modal-preview .preview-image {
    max-height: calc(100% - 80px);
}

/* ==================================================
   Judge Dashboard – Final Layout Overrides
================================================== */

.judge-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.judge-panel-header h2 {
    margin: 0;
}

/* Search and sorting toolbar */

.judge-filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 170px auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 32px;
}

.judge-filter-bar input[type="text"],
.judge-filter-bar select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #c9d7e8;
    border-radius: 10px;
    background: #ffffff;
    color: #102033;
    font-family: inherit;
    font-size: 15px;
}

.judge-filter-bar input[type="text"]:focus,
.judge-filter-bar select:focus {
    outline: none;
    border-color: #0077c8;
    box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.12);
}

.judge-filter-bar .judge-primary-btn {
    min-height: 48px;
    padding: 11px 22px;
    cursor: pointer;
    white-space: nowrap;
}

/* Grid and list toggle */

.view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 12px;
    background: #eef5ff;
    white-space: nowrap;
}

.view-toggle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 9px;
    color: #003f7f;
    font-weight: 800;
    text-decoration: none;
}

.view-toggle a.active {
    background: #003f7f;
    color: #ffffff;
}

/* Entry cards */

.judge-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 28px;
}

.judge-entry-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border: 1px solid #d5e3f3;
    border-radius: 18px;
    background: #f8fbff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.judge-entry-card:hover {
    transform: translateY(-4px);
    border-color: #abc9ea;
    box-shadow: 0 14px 30px rgba(0, 63, 127, 0.12);
}

.judge-entry-card > img,
.judge-entry-card .pdf-preview-card {
    width: 100%;
    height: 260px;
    margin: 0;
    border-radius: 14px;
    background: #ffffff;
}

.judge-entry-card > img {
    display: block;
    object-fit: contain;
    padding: 10px;
}

.pdf-preview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d2dfef;
    text-align: center;
}

.pdf-icon {
    margin: 0 0 12px;
    color: #003f7f;
    font-size: 52px;
}

.pdf-preview-card h4 {
    margin: 0;
    color: #003f7f;
    font-size: 18px;
}

.pdf-preview-card p {
    margin: 7px 0 0;
    color: #666666;
    font-size: 14px;
}

/* Preview button and card content */

.card-actions {
    display: flex;
    align-items: center;
    margin: 18px 0 4px;
}

.preview-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 135px;
    min-height: 46px;
    padding: 11px 18px;
    cursor: pointer;
}

.judge-entry-card h3 {
    margin: 18px 0 12px;
    color: #003f7f;
    font-size: 23px;
    overflow-wrap: anywhere;
}

.judge-entry-card p {
    margin: 7px 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.judge-entry-card .judge-review-btn {
    align-self: flex-start;
    margin-top: 16px;
}

/* Pagination */

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.pagination-controls a,
.pagination-controls .current-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
}

.pagination-controls a {
    background: #eef5ff;
    color: #003f7f;
}

.pagination-controls a:hover {
    background: #dcecff;
}

.pagination-controls .current-page {
    background: #003f7f;
    color: #ffffff;
}

/* Preview modal */

.preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 30px;
    background: rgba(0, 20, 45, 0.76);
}

.preview-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-modal-content {
    display: flex;
    flex-direction: column;
    width: min(1040px, 96vw);
    max-height: 92vh;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.preview-modal-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
    border-bottom: 1px solid #dbe8f7;
    background: #f5f9ff;
}

.preview-modal-header h2 {
    margin: 0;
    color: #003f7f;
}

.preview-modal-header p {
    margin: 6px 0 0;
    color: #555555;
    font-weight: 700;
}

.preview-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #003f7f;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.preview-modal-body {
    overflow-y: auto;
    padding: 24px;
}

.preview-area {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52vh;
    min-height: 320px;
    overflow: hidden;
    border: 1px solid #dbe8f7;
    border-radius: 16px;
    background: #f8fbff;
}

.preview-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-modal-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.preview-modal-actions a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 190px;
    min-height: 48px;
    text-decoration: none;
}

.preview-details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2ebf5;
}

.preview-details p {
    margin: 0;
}

/* Responsive dashboard */

@media (max-width: 900px) {
    .judge-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .judge-filter-bar {
        grid-template-columns: 1fr 160px auto;
    }

    .judge-entry-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .judge-panel {
        padding: 20px;
    }

    .judge-filter-bar {
        grid-template-columns: 1fr;
        margin-bottom: 26px;
    }

    .judge-filter-bar .judge-primary-btn {
        width: 100%;
    }

    .view-toggle {
        width: 100%;
    }

    .view-toggle a {
        flex: 1;
    }

    .judge-entry-card {
        padding: 16px;
    }

    .judge-entry-card > img,
    .judge-entry-card .pdf-preview-card {
        height: 220px;
    }

    .preview-modal {
        padding: 12px;
    }

    .preview-modal-header {
        padding: 18px;
    }

    .preview-modal-body {
        padding: 16px;
    }

    .preview-area {
        height: 44vh;
        min-height: 250px;
    }

    .preview-modal-actions {
        flex-direction: column;
    }

    .preview-modal-actions a {
        width: 100%;
    }

    .preview-details {
        flex-direction: column;
        gap: 8px;
    }
}

#judgeEntriesPanel {
    position: relative;
}

#judgeEntriesPanel.entries-loading {
    pointer-events: none;
}

#judgeEntriesPanel.entries-loading::after {
    content: "Loading entries...";
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    color: #003f7f;
    font-size: 17px;
    font-weight: 800;
}

body.modal-open {
    overflow: hidden;
}

.file-upload-section {
    margin-top: 18px;
}

.file-help-text {
    display: block;
    margin-top: 8px;
    color: #5d6877;
    font-size: 13px;
    line-height: 1.5;
}

.file-validation-error {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-left: 4px solid #c62828;
    border-radius: 8px;
    background: #ffebee;
    color: #a71919;
    font-size: 14px;
    font-weight: 700;
}

.file-validation-error.show {
    display: block;
}

.file-preview-box {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #d4e1ef;
    border-radius: 14px;
    background: #f8fbff;
}

.image-preview-container {
    margin-bottom: 14px;
    text-align: center;
}

.image-preview-container img {
    display: block;
    max-width: 100%;
    max-height: 280px;
    margin: 0 auto;
    border-radius: 10px;
    object-fit: contain;
    background: #ffffff;
}

.pdf-selected-preview {
    margin-bottom: 14px;
    padding: 24px;
    border: 2px dashed #ccdaea;
    border-radius: 12px;
    text-align: center;
    color: #003f7f;
    background: #ffffff;
}

.pdf-selected-icon {
    display: block;
    margin-bottom: 8px;
    font-size: 42px;
}

.selected-file-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.selected-file-details strong {
    color: #003f7f;
    overflow-wrap: anywhere;
}

.selected-file-details span {
    font-size: 14px;
}

.selected-file-status.valid {
    color: #16823c;
    font-weight: 800;
}

.selected-file-status.invalid {
    color: #c62828;
    font-weight: 800;
}

button[type="submit"]:disabled,
input[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ==================================================
   Submission declaration modal
================================================== */

.guardian-information-note {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-left: 4px solid #0077c8;
    border-radius: 8px;
    background: #f3f8ff;
    color: #45566b;
    line-height: 1.55;
}

.form-general-errors {
    margin-top: 12px;
}

.form-general-errors p {
    margin: 6px 0 0;
    font-weight: 700;
}

.declaration-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    padding: 24px;
    background: rgba(0, 20, 45, 0.78);
}

.declaration-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.declaration-modal-content {
    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 760px;

    max-height: 90vh;

    background: #fff;
    border-radius: 20px;

    overflow: hidden;

    box-sizing: border-box;
}

.declaration-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    border-bottom: 1px solid #dbe8f7;
    background: #f5f9ff;
}

.declaration-modal-header h2 {
    margin: 0;
    color: #003f7f;
}

.declaration-modal-header p {
    margin: 6px 0 0;
    color: #555555;
}

.declaration-close {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #003f7f;
    color: #ffffff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.declaration-modal-body{
    flex:1;

    overflow-y:auto;

    padding:30px;

    box-sizing:border-box;
}

.declaration-modal-body h3 {
    margin-top: 0;
    color: #003f7f;
}

.declaration-modal-body ul {
    padding-left: 24px;
}

.declaration-modal-body li {
    margin-bottom: 9px;
}

.declaration-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #cfe0f5;
    border-radius: 12px;
    background: #f8fbff;
    font-weight: 700;
    cursor: pointer;
}

.declaration-checkbox input {
    flex-shrink: 0;
    width: auto;
    margin-top: 4px;
}

.declaration-modal-actions{
    display:flex;

    justify-content:flex-end;

    align-items:center;

    gap:15px;

    padding:20px 30px;

    border-top:1px solid #dbe8f7;

    background:#fff;

    box-sizing:border-box;

    width:100%;
}

.declaration-modal-actions button{

    width:180px;

    min-width:180px;

    max-width:180px;
}

.declaration-modal-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .declaration-modal {
        padding: 12px;
    }

    .declaration-modal-header,
    .declaration-modal-body,
    .declaration-modal-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .declaration-modal-actions {
        flex-direction: column-reverse;
    }

    .declaration-modal-actions button {
        width: 100%;
    }
}

.criteria-list {
    margin-top: 12px;
    padding-left: 20px;
}

.criteria-list li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #2f3b52;
}

/* =====================================
   Competition Rules Hero
===================================== */

.hero-rules {
    min-height: 360px;
    height: 360px;
}

.hero-rules .hero-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

.nav-links a.active {
    background: #0b4a8b;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 24px;
    box-shadow: 0 5px 14px rgba(11, 74, 139, 0.22);
}

.nav-links a {
    transition: all 0.25s ease;
}

.nav-links a:hover {
    color: #0b4a8b;
}

/* =========================================================
   Judge authentication
   ========================================================= */

.judge-login-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at top left,
            rgba(31, 102, 179, 0.16),
            transparent 38%
        ),
        linear-gradient(135deg, #f4f7fb 0%, #ffffff 100%);
    font-family: Arial, Helvetica, sans-serif;
}

.judge-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    box-sizing: border-box;
}

.judge-login-card {
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(11, 42, 87, 0.16);
}

.judge-login-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    color: #ffffff;
    background: #0b2a57;
}

.judge-login-logo {
    width: 105px;
    height: auto;
    object-fit: contain;
}

.judge-login-header h1 {
    margin: 0 0 5px;
    font-size: 1.6rem;
}

.judge-login-header p {
    margin: 0;
    opacity: 0.88;
}

.judge-login-content {
    padding: 34px 32px;
}

.judge-login-content h2 {
    margin: 0 0 8px;
    color: #0b2a57;
    font-size: 1.55rem;
}

.judge-login-intro {
    margin: 0 0 25px;
    color: #526274;
}

.judge-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.judge-login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.judge-login-field label {
    color: #26384d;
    font-weight: 600;
}

.judge-login-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #c6cfda;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
}

.judge-login-field input:focus {
    border-color: #1f66b3;
    outline: 3px solid rgba(31, 102, 179, 0.14);
}

.judge-login-button {
    min-height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: #1f66b3;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.judge-login-button:hover {
    background: #0b2a57;
}

.judge-login-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-left: 4px solid #b42318;
    border-radius: 6px;
    color: #8a1c13;
    background: #fff1f0;
}

.judge-login-back {
    display: block;
    margin-top: 24px;
    color: #1f66b3;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

.judge-login-back:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .judge-login-header {
        flex-direction: column;
        text-align: center;
    }

    .judge-login-content {
        padding: 28px 22px;
    }
}


/* =========================================================
   Command Centre Reports
   ========================================================= */

.report-category-link {
    color: inherit;
    text-decoration: none;
}

.report-category-link:hover {
    border-color: #1f66b3;
    transform: translateY(-2px);
}

.report-open-button {
    display: block;
    width: 100%;
    padding: 11px 14px;
    box-sizing: border-box;
    border-radius: 8px;
    color: #ffffff;
    background: #1f66b3;
    text-align: center;
    font-weight: 700;
}

.report-filter-panel,
.report-results-section {
    margin-top: 20px;
    padding: 22px;
    border: 1px solid #dde6f1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(11, 42, 87, 0.06);
}

.report-filter-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.report-filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.report-filter-field label {
    color: #0b2a57;
    font-weight: 700;
}

.report-filter-field input,
.report-filter-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    box-sizing: border-box;
    border: 1px solid #cbd6e2;
    border-radius: 8px;
    background: #ffffff;
}

.report-filter-actions {
    display: flex;
    align-items: end;
    gap: 10px;
}

.report-reset-button,
.report-export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 22px;
    border-radius: 10px;

    background: #1f66b3;
    border: none;

    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none !important;

    transition: all .25s ease;
}

.report-export-button:visited,
.report-export-button:link {
    color: #ffffff !important;
}

.report-export-button:hover {
    background: #0b4f93;
    color: #ffffff !important;
}

.report-filter-button {
    background: #1f66b3;
    color: #ffffff !important;
    border: none;
    font-weight: 600;
}

.report-filter-button:hover {
    background: #0b4f93;
}

.report-export-button {
    color: #ffffff;
    background: #1f66b3;
}

.report-reset-button {
    color: #0b2a57;
    background: #edf2f7;
}

.report-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.report-results-header h2,
.report-results-header p {
    margin: 0;
}

.report-table-wrapper {
    overflow-x: auto;
}

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

.report-table th,
.report-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e4eaf1;
    text-align: left;
    white-space: nowrap;
}

.report-table th {
    color: #0b2a57;
    background: #f3f7fb;
}

.report-status-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    color: #0b2a57;
    background: #e8f1fb;
    font-size: 0.82rem;
    font-weight: 700;
}

.report-empty-state {
    padding: 35px !important;
    color: #6b7280;
    text-align: center !important;
}

.report-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
}

.report-pagination a {
    color: #1f66b3;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .report-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .report-filter-form {
        grid-template-columns: 1fr;
    }

    .report-filter-actions,
    .report-results-header {
        flex-direction: column;
        align-items: stretch;
    }

    .report-export-button {
        width: 100%;
    }
}

/* =========================================================
   Submission Report Dashboard
   ========================================================= */

.submission-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.submission-summary-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #dde6f1;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(11, 42, 87, 0.06);
}

.submission-summary-icon {
    display: flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf4fc;
    font-size: 1.3rem;
}

.submission-summary-card div {
    min-width: 0;
}

.submission-summary-card small {
    display: block;
    margin-bottom: 5px;
    overflow: hidden;
    color: #66778a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.submission-summary-card strong {
    display: block;
    color: #0b2a57;
    font-size: 1.45rem;
}

.submission-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.submission-analytics-card {
    padding: 22px;
    border: 1px solid #dde6f1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(11, 42, 87, 0.06);
}

.submission-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.submission-card-heading h2 {
    margin: 0 0 5px;
    color: #0b2a57;
    font-size: 1.1rem;
}

.submission-card-heading p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

.submission-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.submission-bar-row {
    min-width: 0;
}

.submission-bar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 6px;
    color: #36485d;
    font-size: 0.88rem;
}

.submission-bar-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.submission-bar-label strong {
    flex-shrink: 0;
    color: #0b2a57;
}

.submission-bar-track {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 20px;
    background: #edf1f6;
}

.submission-bar-fill {
    min-width: 4px;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f66b3, #438bd6);
}

.submission-grade-bar {
    background: linear-gradient(90deg, #db8b18, #f3b544);
}

.submission-date-bar {
    background: linear-gradient(90deg, #16866b, #40b99c);
}

.submission-school-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.submission-school-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 9px;
    background: #f7f9fc;
}

.submission-school-rank {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0b2a57;
    background: #e5eef8;
    font-size: 0.8rem;
    font-weight: 700;
}

.submission-school-name {
    overflow: hidden;
    color: #33465b;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.submission-school-row strong {
    color: #0b2a57;
}

.submission-empty-message {
    margin: 0;
    padding: 20px;
    border-radius: 9px;
    color: #718096;
    background: #f7f9fc;
    text-align: center;
}

@media (max-width: 1200px) {
    .submission-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .submission-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .submission-analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .submission-summary-grid {
        grid-template-columns: 1fr;
    }

    .submission-summary-card {
        padding: 15px;
    }

    .submission-analytics-card {
        padding: 17px;
    }
}

/* =========================================================
   Submission Report Header
   ========================================================= */

.report-page-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 28px 30px;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.16),
            transparent 34%
        ),
        linear-gradient(135deg, #0b2a57, #1f66b3);
    box-shadow: 0 16px 36px rgba(11, 42, 87, 0.18);
}

.report-page-header::after {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border: 28px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    content: "";
}

.report-header-content {
    position: relative;
    z-index: 1;
}

.report-header-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);

    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;

    transition: all .25s ease;
}

.report-header-back:visited,
.report-header-back:link {
    color: #ffffff !important;
}

.report-header-back:hover {
    background: rgba(255,255,255,.18);
    color: #ffffff !important;
    text-decoration: none;
}

.report-header-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.report-header-icon {
    display: flex;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.8rem;
    backdrop-filter: blur(5px);
}

.report-header-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #d9eaff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-page-header h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.report-page-header p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.55;
}

@media (max-width: 580px) {
    .report-page-header {
        padding: 22px 18px;
    }

    .report-header-title-row {
        align-items: flex-start;
    }

    .report-header-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 1.35rem;
    }
}

.submission-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.submission-card-tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f2fc;
    color: #1f66b3;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Fix report filter buttons */

.report-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.report-filter-button,
.report-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    box-sizing: border-box;
}

.report-filter-button {
    border: 1px solid #1f66b3;
    background: #1f66b3;
    color: #ffffff !important;
    cursor: pointer;
}

.report-filter-button:hover {
    border-color: #164f8d;
    background: #164f8d;
    color: #ffffff !important;
}

.report-reset-button {
    border: 1px solid #cbd6e2;
    background: #f3f6fa;
    color: #33485e !important;
}

.report-reset-button:link,
.report-reset-button:visited {
    color: #33485e !important;
}

.report-reset-button:hover {
    border-color: #aebdcd;
    background: #e6edf5;
    color: #0b2a57 !important;
}

.report-consent-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.consent-yes {
    color: #146c43;
    background: #def7ea;
}

.consent-no {
    color: #9b2c2c;
    background: #fde8e8;
}

/* =========================================================
   Competition Reports Landing Page
   ========================================================= */

.reports-landing-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 30px;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.16),
            transparent 34%
        ),
        linear-gradient(135deg, #0b2a57, #1f66b3);
    box-shadow: 0 16px 36px rgba(11, 42, 87, 0.18);
}

.reports-landing-header::after {
    position: absolute;
    right: -65px;
    bottom: -95px;
    width: 230px;
    height: 230px;
    border: 30px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    content: "";
}

.reports-landing-header-content {
    position: relative;
    z-index: 1;
}

.reports-landing-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
}

.reports-landing-back:link,
.reports-landing-back:visited {
    color: #ffffff !important;
}

.reports-landing-back:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.17);
    transform: translateX(-2px);
}

.reports-landing-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.reports-landing-icon {
    display: flex;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.8rem;
}

.reports-landing-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #d9eaff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reports-landing-header h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.reports-landing-header p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.95rem;
    line-height: 1.55;
}

.reports-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.reports-overview h2 {
    margin: 0 0 5px;
    color: #0b2a57;
    font-size: 1.3rem;
}

.reports-overview p {
    margin: 0;
    color: #6b7c90;
}

.reports-overview-count {
    flex-shrink: 0;
    padding: 7px 13px;
    border-radius: 999px;
    color: #1f66b3;
    background: #e8f2fc;
    font-size: 0.76rem;
    font-weight: 700;
}

.reports-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.reports-module-card {
    display: flex;
    min-width: 0;
    min-height: 255px;
    flex-direction: column;
    padding: 23px;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(11, 42, 87, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.reports-module-card:hover {
    transform: translateY(-4px);
    border-color: #bfd2e7;
    box-shadow: 0 14px 30px rgba(11, 42, 87, 0.11);
}

.reports-module-card-active {
    border-top: 4px solid #1f66b3;
}

.reports-module-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.reports-module-icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #edf5fd;
    font-size: 1.35rem;
}

.reports-module-status {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.reports-status-available {
    color: #146c43;
    background: #def7ea;
}

.reports-status-planned {
    color: #846017;
    background: #fff3cd;
}

.reports-module-content {
    flex: 1;
}

.reports-module-content h2 {
    margin: 0 0 10px;
    color: #0b2a57;
    font-size: 1.15rem;
}

.reports-module-content p {
    margin: 0;
    color: #66788c;
    font-size: 0.9rem;
    line-height: 1.6;
}

.reports-module-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    padding: 10px 16px;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none !important;
}

.reports-module-button-primary {
    color: #ffffff !important;
    background: #1f66b3;
}

.reports-module-button-primary:link,
.reports-module-button-primary:visited {
    color: #ffffff !important;
}

.reports-module-button-primary:hover {
    color: #ffffff !important;
    background: #164f8d;
}

.reports-module-button-disabled {
    color: #7b8998;
    background: #edf1f5;
    cursor: not-allowed;
}

@media (max-width: 1150px) {
    .reports-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .reports-landing-header {
        padding: 23px 18px;
    }

    .reports-landing-title-row {
        align-items: flex-start;
    }

    .reports-landing-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 1.35rem;
    }

    .reports-overview {
        align-items: flex-start;
        flex-direction: column;
    }

    .reports-card-grid {
        grid-template-columns: 1fr;
    }

    .reports-module-card {
        min-height: auto;
    }
}

/* =========================================================
   Judging Progress Report
   ========================================================= */

.judging-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    color: #77879a;
    font-size: 0.75rem;
}

.judge-progress-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.judge-progress-row {
    padding: 14px;
    border: 1px solid #e5ebf2;
    border-radius: 11px;
    background: #f8fafc;
}

.judge-progress-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 9px;
}

.judge-progress-heading div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.judge-progress-heading strong {
    color: #0b2a57;
}

.judge-progress-heading span {
    color: #748397;
    font-size: 0.76rem;
}

/* =========================================================
   Scores and Rankings Report
   ========================================================= */

.ranking-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 16px;
    border: 1px solid #e4eaf1;
    border-radius: 10px;
    color: #40546a;
    background: #f8fafc;
}

.ranking-summary-row strong {
    color: #0b2a57;
    font-size: 1.05rem;
}

.ranking-position {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0b2a57;
    background: #e4eef9;
    font-weight: 700;
}

/* =========================================================
   Aggregated Scores and Rankings
   ========================================================= */

.rankings-table tbody tr {
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.rankings-table tbody tr:hover {
    background: #f7faff;
}

.ranking-top-three {
    position: relative;
}

.ranking-place-1 {
    background: #fffaf0;
}

.ranking-place-2 {
    background: #f8fafc;
}

.ranking-place-3 {
    background: #fff8f3;
}

.ranking-rank-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
}

.ranking-medal {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
}

.ranking-entry-name {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ranking-entry-name strong {
    color: #0b2a57;
}

.ranking-entry-name small {
    color: #7b8999;
    font-size: 0.74rem;
}

.ranking-score-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ranking-score-cell strong {
    color: #0b2a57;
    font-size: 1rem;
}

.ranking-score-cell small {
    color: #7b8999;
    font-size: 0.7rem;
    white-space: nowrap;
}

.ranking-judge-count {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid #dce6f1;
    border-radius: 999px;
    color: #40546a;
    background: #f5f8fb;
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
}

.recommendation-finalist {
    color: #176b43;
    border-color: #b7e2cb;
    background: #e9f8f0;
}

.recommendation-shortlisted {
    color: #866400;
    border-color: #ebd78a;
    background: #fff8dc;
}

.recommendation-not_selected {
    color: #9b2f2f;
    border-color: #efc1c1;
    background: #fff0f0;
}

.ranking-province-entry-count {
    display: block;
    margin-top: 2px;
    color: #8290a0;
    font-size: 0.7rem;
    font-weight: 400;
}

@media (max-width: 900px) {
    .rankings-table {
        min-width: 980px;
    }
}

/* =========================================================
   Competition Summary Dashboard
   ========================================================= */

.competition-summary-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.competition-summary-hero {
    overflow: hidden;
    position: relative;
    padding: 34px;
    border-radius: 20px;
    color: #ffffff;
    background:
        linear-gradient(
            120deg,
            #071d3c 0%,
            #0b2a57 52%,
            #176bb3 100%
        );
    box-shadow: 0 18px 45px rgba(11, 42, 87, 0.2);
}

.competition-summary-hero::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -70px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.competition-summary-hero-content {
    display: flex;
    position: relative;
    z-index: 1;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.competition-summary-hero h1 {
    margin: 12px 0 10px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
}

.competition-summary-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.competition-summary-hero .report-header-back {
    color: rgba(255, 255, 255, 0.82);
}

.competition-summary-status {
    display: flex;
    min-width: 185px;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.competition-summary-status div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.competition-summary-status small {
    color: rgba(255, 255, 255, 0.68);
}

.competition-summary-status strong {
    color: #ffffff;
}

.competition-status-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border: 3px solid rgba(91, 230, 154, 0.25);
    border-radius: 50%;
    background: #5be69a;
    box-shadow: 0 0 0 4px rgba(91, 230, 154, 0.12);
}

.competition-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.competition-kpi-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 15px;
    padding: 21px;
    border: 1px solid #e2e9f1;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(17, 49, 83, 0.06);
}

.competition-kpi-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #edf4fb;
    font-size: 1.35rem;
}

.competition-kpi-card div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.competition-kpi-card small {
    color: #748397;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.competition-kpi-card strong {
    color: #0b2a57;
    font-size: 1.65rem;
    line-height: 1.1;
}

.competition-kpi-card div > span {
    overflow: hidden;
    color: #8290a0;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competition-progress-panel,
.competition-dashboard-panel,
.competition-report-links {
    padding: 25px;
    border: 1px solid #e2e9f1;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 9px 28px rgba(17, 49, 83, 0.06);
}

.competition-progress-heading,
.competition-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.competition-progress-heading h2,
.competition-panel-heading h2,
.competition-report-links-heading h2 {
    margin: 4px 0 7px;
    color: #0b2a57;
}

.competition-progress-heading p,
.competition-panel-heading p,
.competition-report-links-heading p {
    margin: 0;
    color: #748397;
    line-height: 1.55;
}

.competition-section-label {
    color: #1f66b3;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.competition-panel-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    color: #1f66b3;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.competition-panel-link:hover {
    color: #0b2a57;
}

.competition-progress-track {
    overflow: hidden;
    height: 13px;
    margin-top: 23px;
    border-radius: 999px;
    background: #e8eef5;
}

.competition-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #1f66b3,
        #4ca4df
    );
    transition: width 0.45s ease;
}

.competition-progress-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 9px;
    color: #748397;
    font-size: 0.75rem;
}

.competition-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 20px;
}

.competition-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.competition-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 23px;
}

.competition-leaderboard-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 1px solid #e4eaf1;
    border-radius: 13px;
    background: #f8fafc;
}

.competition-leaderboard-place-1 {
    border-color: #ead49a;
    background: #fffaf0;
}

.competition-leaderboard-place-2 {
    border-color: #d7dde5;
    background: #f8fafc;
}

.competition-leaderboard-place-3 {
    border-color: #e6c4aa;
    background: #fff8f3;
}

.competition-leaderboard-position {
    font-size: 1.85rem;
    text-align: center;
}

.competition-leaderboard-entry {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.competition-leaderboard-entry strong {
    color: #0b2a57;
    font-size: 0.95rem;
}

.competition-leaderboard-entry span,
.competition-leaderboard-entry small {
    overflow: hidden;
    color: #7c8b9c;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competition-leaderboard-score {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 3px;
}

.competition-leaderboard-score strong {
    color: #0b2a57;
    font-size: 1.25rem;
}

.competition-leaderboard-score span {
    color: #8290a0;
    font-size: 0.7rem;
}

.competition-score-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.competition-score-summary div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px;
    border-radius: 11px;
    background: #edf4fb;
}

.competition-score-summary small {
    color: #66788c;
}

.competition-score-summary strong {
    color: #0b2a57;
    font-size: 1.15rem;
}

.competition-province-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 23px;
}

.competition-province-label {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 6px;
    color: #40546a;
    font-size: 0.77rem;
}

.competition-province-label strong {
    color: #0b2a57;
}

.competition-province-track {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #e8eef5;
}

.competition-province-fill {
    height: 100%;
    border-radius: inherit;
    background: #1f66b3;
}

.competition-highlight-box {
    display: flex;
    margin-top: 21px;
    padding: 15px;
    flex-direction: column;
    gap: 3px;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            #edf4fb,
            #f7fbff
        );
}

.competition-highlight-box span,
.competition-highlight-box small {
    color: #718196;
    font-size: 0.72rem;
}

.competition-highlight-box strong {
    color: #0b2a57;
    font-size: 1.05rem;
}

.competition-school-list,
.competition-recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 21px;
}

.competition-school-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 10px;
    background: #f8fafc;
}

.competition-school-position {
    display: inline-flex;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0b2a57;
    background: #e3eef9;
    font-size: 0.75rem;
    font-weight: 700;
}

.competition-school-name {
    overflow: hidden;
    color: #40546a;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competition-school-row strong {
    color: #0b2a57;
}

.competition-recent-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f5;
}

.competition-recent-row:last-child {
    border-bottom: 0;
}

.competition-recent-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf4fb;
}

.competition-recent-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.competition-recent-details strong {
    color: #0b2a57;
}

.competition-recent-details span,
.competition-recent-details small,
.competition-recent-row time {
    overflow: hidden;
    color: #8290a0;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competition-empty-state {
    padding: 30px 15px;
    color: #7b8999;
    text-align: center;
}

.competition-report-links-heading {
    margin-bottom: 20px;
}

.competition-report-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.competition-report-link-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e9f1;
    border-radius: 12px;
    color: inherit;
    background: #f8fafc;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.competition-report-link-card:hover {
    transform: translateY(-2px);
    border-color: #bdd3e8;
    box-shadow: 0 8px 20px rgba(17, 49, 83, 0.08);
}

.competition-report-link-card > span {
    font-size: 1.35rem;
}

.competition-report-link-card div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.competition-report-link-card strong {
    color: #0b2a57;
}

.competition-report-link-card small {
    overflow: hidden;
    color: #7e8c9c;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competition-report-link-card b {
    color: #1f66b3;
}

@media (max-width: 1100px) {
    .competition-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .competition-main-grid,
    .competition-secondary-grid {
        grid-template-columns: 1fr;
    }

    .competition-report-link-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .competition-summary-hero {
        padding: 25px 20px;
    }

    .competition-summary-hero-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .competition-summary-status {
        width: 100%;
        box-sizing: border-box;
    }

    .competition-kpi-grid {
        grid-template-columns: 1fr;
    }

    .competition-progress-heading,
    .competition-panel-heading {
        flex-direction: column;
    }

    .competition-progress-panel,
    .competition-dashboard-panel,
    .competition-report-links {
        padding: 19px;
    }

    .competition-leaderboard-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .competition-leaderboard-score {
        grid-column: 2;
        align-items: flex-start;
    }

    .competition-score-summary {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Competition Health and Action Required
   ========================================================= */

.competition-health-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(320px, 0.75fr);
    gap: 20px;
}

.competition-health-card,
.competition-actions-card {
    padding: 25px;
    border: 1px solid #e2e9f1;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 9px 28px rgba(17, 49, 83, 0.06);
}

.competition-health-card {
    overflow: hidden;
    position: relative;
}

.competition-health-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.competition-health-excellent::before {
    background: #1f9d62;
}

.competition-health-good::before {
    background: #1f66b3;
}

.competition-health-attention::before {
    background: #d59a00;
}

.competition-health-critical::before {
    background: #c84343;
}

.competition-health-heading,
.competition-actions-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.competition-health-heading h2,
.competition-actions-heading h2 {
    margin: 4px 0 0;
    color: #0b2a57;
}

.competition-actions-heading p {
    margin: 7px 0 0;
    color: #748397;
    line-height: 1.5;
}

.competition-health-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.competition-health-status span {
    font-size: 1.15rem;
    line-height: 0.5;
}

.competition-health-status-excellent {
    color: #176b43;
    background: #e4f7ed;
}

.competition-health-status-good {
    color: #155a98;
    background: #e6f1fb;
}

.competition-health-status-attention {
    color: #866400;
    background: #fff4c8;
}

.competition-health-status-critical {
    color: #9b2f2f;
    background: #fde7e7;
}

.competition-health-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 25px;
    margin-top: 25px;
}

.competition-health-ring {
    --health-ring-colour: #1f66b3;

    display: flex;
    width: 145px;
    height: 145px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        conic-gradient(
            var(--health-ring-colour)
            calc(var(--health-score) * 1%),
            #e8eef5 0
        );
}

.competition-health-excellent
.competition-health-ring {
    --health-ring-colour: #1f9d62;
}

.competition-health-good
.competition-health-ring {
    --health-ring-colour: #1f66b3;
}

.competition-health-attention
.competition-health-ring {
    --health-ring-colour: #d59a00;
}

.competition-health-critical
.competition-health-ring {
    --health-ring-colour: #c84343;
}

.competition-health-ring > div {
    display: flex;
    width: 108px;
    height: 108px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #edf1f5;
}

.competition-health-ring strong {
    color: #0b2a57;
    font-size: 1.65rem;
    line-height: 1;
}

.competition-health-ring small {
    margin-top: 6px;
    color: #7c8b9c;
    font-size: 0.68rem;
    font-weight: 600;
}

.competition-health-details h3 {
    margin: 0 0 7px;
    color: #0b2a57;
    font-size: 1.25rem;
}

.competition-health-details > p {
    margin: 0;
    color: #6f8093;
    line-height: 1.6;
}

.competition-health-strengths {
    display: flex;
    margin-top: 15px;
    flex-direction: column;
    gap: 8px;
}

.competition-health-strengths div {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #50647a;
    font-size: 0.77rem;
    line-height: 1.45;
}

.competition-health-strengths span {
    color: #1f9d62;
    font-weight: 800;
}

.competition-health-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 25px;
}

.competition-health-metrics div {
    display: flex;
    padding: 12px;
    flex-direction: column;
    gap: 4px;
    border-radius: 10px;
    background: #f6f9fc;
}

.competition-health-metrics span {
    color: #748397;
    font-size: 0.67rem;
}

.competition-health-metrics strong {
    color: #0b2a57;
    font-size: 1rem;
}

.competition-actions-count {
    display: inline-flex;
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0b2a57;
    background: #e8f1fa;
    font-size: 0.8rem;
    font-weight: 800;
}

.competition-alert-list {
    display: flex;
    margin-top: 22px;
    flex-direction: column;
    gap: 10px;
}

.competition-alert {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid;
    border-radius: 11px;
}

.competition-alert-icon {
    display: inline-flex;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 900;
}

.competition-alert p {
    margin: 3px 0 0;
    font-size: 0.76rem;
    line-height: 1.5;
}

.competition-alert-critical {
    border-color: #efc1c1;
    background: #fff1f1;
}

.competition-alert-critical
.competition-alert-icon {
    color: #ffffff;
    background: #c84343;
}

.competition-alert-critical p {
    color: #8d3333;
}

.competition-alert-warning {
    border-color: #ebd78a;
    background: #fff9df;
}

.competition-alert-warning
.competition-alert-icon {
    color: #ffffff;
    background: #d59a00;
}

.competition-alert-warning p {
    color: #725a12;
}

.competition-alert-information {
    border-color: #bfd7ec;
    background: #eef6fd;
}

.competition-alert-information
.competition-alert-icon {
    color: #ffffff;
    background: #1f66b3;
}

.competition-alert-information p {
    color: #315f87;
}

.competition-alert-success {
    border-color: #b7e2cb;
    background: #ecf9f2;
}

.competition-alert-success
.competition-alert-icon {
    color: #ffffff;
    background: #1f9d62;
}

.competition-alert-success p {
    color: #276849;
}

.competition-actions-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #edf1f5;
}

@media (max-width: 1100px) {
    .competition-health-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .competition-health-card,
    .competition-actions-card {
        padding: 19px;
    }

    .competition-health-main {
        grid-template-columns: 1fr;
    }

    .competition-health-score {
        display: flex;
        justify-content: center;
    }

    .competition-health-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .competition-health-heading,
    .competition-actions-heading {
        flex-direction: column;
    }
}

/* Competition Health Scale */

.competition-health-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #edf1f5;
}

.competition-health-scale span {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.competition-health-scale small {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.8;
}

.health-critical {
    color: #9b2f2f;
    background: #fde7e7;
}

.health-attention {
    color: #866400;
    background: #fff4c8;
}

.health-good {
    color: #155a98;
    background: #e6f1fb;
}

.health-excellent {
    color: #176b43;
    background: #e4f7ed;
}

/* =========================================================
   Finalists Report
   ========================================================= */

.finalists-report-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.finalists-report-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.finalists-hero-badge {
    display: flex;
    min-width: 210px;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.finalists-hero-badge > span {
    font-size: 1.55rem;
}

.finalists-hero-badge div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.finalists-hero-badge small {
    color: rgba(255, 255, 255, 0.68);
}

.finalists-hero-badge strong {
    color: #ffffff;
}

.finalists-summary-grid {
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
}

.finalists-filter-form {
    grid-template-columns:
        repeat(3, minmax(180px, 1fr))
        auto;
}

.finalists-content-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(270px, 0.3fr);
    gap: 20px;
    align-items: start;
}

.finalists-table-panel {
    min-width: 0;
}

.finalists-table {
    min-width: 1150px;
}

.finalist-rank {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0b2a57;
    background: #e7f0f9;
    font-size: 0.75rem;
    font-weight: 800;
}

.finalist-entry-name {
    display: flex;
    min-width: 150px;
    flex-direction: column;
    gap: 3px;
}

.finalist-entry-name strong {
    color: #0b2a57;
}

.finalist-entry-name small {
    color: #7c8b9c;
    font-size: 0.7rem;
}

.finalist-score {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.finalist-score strong {
    color: #0b2a57;
}

.finalist-score small,
.finalist-no-score {
    color: #7e8c9c;
    font-size: 0.7rem;
}

.finalist-status {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.finalist-status-provincial_finalist {
    color: #155a98;
    border-color: #bfd7ec;
    background: #eaf4fc;
}

.finalist-status-national_finalist {
    color: #755c00;
    border-color: #ead78e;
    background: #fff7d6;
}

.finalist-status-winner {
    color: #176b43;
    border-color: #b7e2cb;
    background: #e7f7ee;
}

.finalist-status-rejected {
    color: #9b2f2f;
    border-color: #efc1c1;
    background: #fff0f0;
}

.finalist-status-received,
.finalist-status-provincial_review {
    color: #52677e;
    border-color: #d4dee8;
    background: #f3f6f9;
}

.finalists-province-panel {
    position: sticky;
    top: 20px;
}

.finalists-province-list {
    display: flex;
    margin-top: 22px;
    flex-direction: column;
    gap: 15px;
}

.finalists-province-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 6px;
    color: #50647a;
    font-size: 0.77rem;
}

.finalists-province-heading strong {
    color: #0b2a57;
}

.finalists-province-track {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #e7edf4;
}

.finalists-province-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #1f66b3,
        #4ca4df
    );
}

@media (max-width: 1200px) {
    .finalists-content-grid {
        grid-template-columns: 1fr;
    }

    .finalists-province-panel {
        position: static;
    }

    .finalists-filter-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .finalists-report-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .finalists-hero-badge {
        width: 100%;
        box-sizing: border-box;
    }

    .finalists-summary-grid,
    .finalists-filter-form {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Shared Report Components
   ========================================================= */

.report-hero {
    display: flex;
    position: relative;
    overflow: hidden;
    min-height: 190px;
    box-sizing: border-box;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding: 34px;
    border-radius: 20px;
    color: #ffffff;
    background:
        linear-gradient(
            120deg,
            #071d3c 0%,
            #0b2a57 52%,
            #176bb3 100%
        );
    box-shadow: 0 18px 45px rgba(11, 42, 87, 0.2);
}

.report-hero::after {
    content: "";
    position: absolute;
    top: -110px;
    right: -70px;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.report-hero > * {
    position: relative;
    z-index: 1;
}

.report-hero h1 {
    margin: 12px 0 10px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.report-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.65;
}

.report-hero .report-header-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.report-hero .report-header-back:hover {
    color: #ffffff;
}

.report-hero .report-header-eyebrow {
    display: block;
    margin-top: 20px;
    color: #8fc8f1;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}


/* Summary cards */

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.report-summary-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 15px;
    padding: 21px;
    border: 1px solid #e2e9f1;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(17, 49, 83, 0.06);
}

.report-summary-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #edf4fb;
    font-size: 1.35rem;
}

.report-summary-card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.report-summary-card small {
    color: #748397;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-summary-card strong {
    color: #0b2a57;
    font-size: 1.65rem;
    line-height: 1;
}


/* Filter area */

.report-filter-panel {
    padding: 20px;
    border: 1px solid #e2e9f1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(17, 49, 83, 0.06);
}

.report-filter-form {
    display: grid;
    align-items: end;
    gap: 14px;
}

.report-filter-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.report-filter-field label {
    color: #304b69;
    font-size: 0.75rem;
    font-weight: 700;
}

.report-filter-field select,
.report-filter-field input {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #ccd9e6;
    border-radius: 9px;
    color: #304b69;
    background: #ffffff;
}

.report-filter-field select:focus,
.report-filter-field input:focus {
    outline: none;
    border-color: #1f66b3;
    box-shadow: 0 0 0 3px rgba(31, 102, 179, 0.12);
}

.report-filter-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.report-primary-button,
.report-secondary-button,
.report-export-button {
    display: inline-flex;
    min-height: 40px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.report-primary-button {
    border: 1px solid #1f66b3;
    color: #ffffff;
    background: #1f66b3;
}

.report-primary-button:hover {
    background: #174f8e;
}

.report-secondary-button {
    border: 1px solid #ccd9e6;
    color: #405b78;
    background: #ffffff;
}

.report-export-button {
    border: 1px solid #176b43;
    color: #ffffff;
    background: #176b43;
}

.report-export-button:hover {
    background: #125637;
}


/* Report panels */

.report-panel {
    padding: 24px;
    border: 1px solid #e2e9f1;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 9px 28px rgba(17, 49, 83, 0.06);
}

.report-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.report-panel-heading h2 {
    margin: 4px 0 6px;
    color: #0b2a57;
    font-size: 1.2rem;
}

.report-panel-heading p {
    margin: 0;
    color: #748397;
    font-size: 0.78rem;
    line-height: 1.5;
}

.report-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e4eaf1;
    border-radius: 12px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.report-table th {
    padding: 13px 14px;
    border-bottom: 1px solid #dce5ee;
    color: #4c6380;
    background: #f5f8fb;
    font-size: 0.68rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.report-table td {
    padding: 14px;
    border-bottom: 1px solid #edf1f5;
    color: #40546a;
    font-size: 0.76rem;
    vertical-align: middle;
}

.report-table tbody tr:last-child td {
    border-bottom: 0;
}

.report-table tbody tr:hover {
    background: #f8fbfe;
}

.report-empty-state {
    padding: 40px 20px !important;
    color: #7b8999 !important;
    text-align: center !important;
}


/* Finalists page refinements */

.finalists-report-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px 30px 40px;
}

.finalists-hero-badge {
    backdrop-filter: blur(8px);
}

.finalists-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}

.finalists-province-panel {
    min-height: 250px;
}

.finalists-province-panel .report-empty-state {
    margin-top: 20px;
    border-radius: 11px;
    background: #f7f9fc;
}


/* Pagination */

.report-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.report-pagination a {
    padding: 8px 12px;
    border: 1px solid #d5e0ea;
    border-radius: 8px;
    color: #1f66b3;
    background: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.report-pagination span {
    color: #748397;
    font-size: 0.75rem;
}


/* Responsive */

@media (max-width: 1200px) {
    .finalists-content-grid {
        grid-template-columns: 1fr;
    }

    .report-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finalists-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .finalists-report-page {
        padding: 18px 14px 30px;
    }

    .report-hero {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding: 26px 20px;
    }

    .report-summary-grid,
    .finalists-filter-form {
        grid-template-columns: 1fr;
    }

    .report-panel,
    .report-filter-panel {
        padding: 18px;
    }

    .report-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .report-primary-button,
    .report-secondary-button,
    .report-export-button {
        width: 100%;
    }
}

/* =========================================================
   Participation Report
   ========================================================= */

.participation-report-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px 30px 40px;
}

.participation-report-hero {
    align-items: flex-end;
}

.participation-hero-badge {
    display: flex;
    min-width: 220px;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.participation-hero-badge > span {
    font-size: 1.55rem;
}

.participation-hero-badge div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.participation-hero-badge small {
    color: rgba(255, 255, 255, 0.68);
}

.participation-hero-badge strong {
    color: #ffffff;
}

.participation-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.participation-filter-form {
    grid-template-columns:
        repeat(3, minmax(180px, 1fr));
}

.participation-filter-form .report-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.participation-main-grid,
.participation-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.participation-bar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.participation-bar-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 6px;
    color: #50647a;
    font-size: 0.77rem;
}

.participation-bar-heading strong {
    color: #0b2a57;
}

.participation-bar-track {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: #e7edf4;
}

.participation-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #1f66b3,
        #4ca4df
    );
}

.participation-grade-fill {
    background: linear-gradient(
        90deg,
        #176b76,
        #55aeb7
    );
}

.participation-age-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.participation-age-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    padding: 15px;
    border: 1px solid #e3eaf1;
    border-radius: 12px;
    background: #f8fafc;
}

.participation-age-card span {
    color: #748397;
    font-size: 0.72rem;
    font-weight: 700;
}

.participation-age-card strong {
    color: #0b2a57;
    font-size: 1.25rem;
}

.participation-age-track {
    overflow: hidden;
    height: 6px;
    border-radius: 999px;
    background: #e2e9f1;
}

.participation-age-track div {
    height: 100%;
    border-radius: inherit;
    background: #1f66b3;
}

.participation-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.participation-timeline-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 13px;
}

.participation-timeline-row time {
    color: #60748a;
    font-size: 0.74rem;
}

.participation-timeline-row strong {
    color: #0b2a57;
    text-align: right;
}

.participation-timeline-track {
    overflow: hidden;
    height: 11px;
    border-radius: 999px;
    background: #e7edf4;
}

.participation-timeline-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #0b2a57,
        #1f66b3
    );
}

.participation-table {
    min-width: 1050px;
}

@media (max-width: 1100px) {
    .participation-main-grid,
    .participation-secondary-grid {
        grid-template-columns: 1fr;
    }

    .participation-filter-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .participation-report-page {
        padding: 18px 14px 30px;
    }

    .participation-report-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .participation-hero-badge {
        width: 100%;
        box-sizing: border-box;
    }

    .participation-summary-grid,
    .participation-filter-form,
    .participation-age-grid {
        grid-template-columns: 1fr;
    }

    .participation-filter-form .report-filter-actions {
        grid-column: auto;
    }

    .participation-timeline-row {
        grid-template-columns: 80px minmax(0, 1fr) 30px;
    }
}

.hero-content{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:60px;

}

.hero-text{

    flex:1;

}


.hero-video video{

    width:100%;

    max-width:420px;

    border-radius:20px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.35);

}

@media (max-width:900px){

    .hero-content{

        flex-direction:column;

    }

}

.hero-animation video{

    animation:float 5s ease-in-out infinite;

}


.hero-video{

    animation:float 5s ease-in-out infinite;

}

@keyframes float{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-12px);

    }

    100%{

        transform:translateY(0);

    }

}

.hero-video{

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(8px);

    border-radius:24px;

    padding:20px;

    border:1px solid rgba(255,255,255,.15);

}

/* =====================================
   Redesigned Homepage Hero
===================================== */

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 70px 60px;

    display: flex;
    align-items: center;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(0, 34, 78, 0.96) 0%,
            rgba(0, 42, 88, 0.9) 48%,
            rgba(0, 39, 82, 0.74) 100%
        ),
        url("../images/hero-space.png");

    background-size: cover;
    background-position: center;
}

.home-hero-inner {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 90px;
}

.home-hero-copy {
    max-width: 820px;
}

.home-hero-eyebrow {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 9px 15px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.1);

    color: #dceeff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-hero-copy h1 {
    max-width: 760px;
    margin: 0 0 26px;

    color: #ffffff;
    font-size: clamp(3.4rem, 5.5vw, 5.7rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.home-hero-description {
    max-width: 760px;
    margin: 0;

    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;

    margin-top: 34px;
}

.home-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 56px;
    padding: 15px 30px;

    border-radius: 10px;
    background: #0786d4;
    box-shadow: 0 12px 28px rgba(0, 119, 200, 0.3);

    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}

.home-hero-button:hover {
    background: #0095e8;
    transform: translateY(-2px);
}

.home-hero-rules-link {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 4px;
}

.home-hero-rules-link:hover {
    border-bottom-color: #ffffff;
}

.home-hero-dates {
    display: inline-grid;
    grid-template-columns: auto 1px auto;
    align-items: center;
    gap: 24px;

    margin-top: 38px;
    padding: 17px 22px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(10px);
}

.home-date-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-date-item span {
    color: #d5e8f8;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-date-item strong {
    color: #ffffff;
    font-size: 1.05rem;
}

.home-date-divider {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.25);
}

.home-video-column {
    width: 100%;
    max-width: 360px;
    justify-self: end;
}

.home-video-heading {
    margin-bottom: 14px;
    text-align: center;
}

.home-video-heading span {
    display: block;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
}

.home-video-heading small {
    display: block;
    margin-top: 4px;
    color: #c9def2;
    font-size: 0.83rem;
}

.home-video-frame {
    width: 100%;
    padding: 10px;

    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 26px;

    background: rgba(255, 255, 255, 0.09);
    box-shadow:
        0 25px 55px rgba(0, 15, 45, 0.45),
        0 0 50px rgba(0, 119, 200, 0.12);

    backdrop-filter: blur(10px);
}

.home-video-frame video {
    display: block;
    width: 100%;
    height: 500px;

    border-radius: 18px;
    background: #ffffff;
    object-fit: contain;
}

@media (max-width: 1000px) {
    .home-hero {
        min-height: auto;
        padding: 70px 35px;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .home-hero-copy {
        max-width: 900px;
        text-align: center;
        margin: 0 auto;
    }

    .home-hero-copy h1,
    .home-hero-description {
        max-width: 900px;
    }

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-dates {
        margin-left: auto;
        margin-right: auto;
    }

    .home-video-column {
        max-width: 330px;
        justify-self: center;
    }

    .home-video-frame video {
        height: 465px;
    }
}

@media (max-width: 600px) {
    .home-hero {
        padding: 52px 20px;
    }

    .home-hero-copy h1 {
        font-size: 2.75rem;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero-button {
        width: 100%;
    }

    .home-hero-rules-link {
        align-self: center;
    }

    .home-hero-dates {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .home-date-divider {
        width: 100%;
        height: 1px;
    }

    .home-video-column {
        max-width: 285px;
    }

    .home-video-frame video {
        height: 405px;
    }
}

/* ==========================================================
   Judge Portal – Anonymous Assignment Workflow
   Dashboard, Review Workspace & Completed Reviews
   ========================================================== */

/* ---------- Shared polish ---------- */

.judge-panel-subtitle {
    margin: 6px 0 0;
    color: #667085;
    line-height: 1.5;
}

.judge-primary-btn,
.judge-secondary-btn,
.judge-review-btn,
.judge-link,
.judge-logout {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.judge-primary-btn:hover,
.judge-review-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 63, 127, 0.18);
}

.judge-secondary-btn:hover,
.judge-link:hover {
    background: #dfeeff;
}

.judge-primary-btn:focus-visible,
.judge-secondary-btn:focus-visible,
.judge-review-btn:focus-visible,
.judge-link:focus-visible,
.judge-logout:focus-visible,
.score-btn:focus-visible,
.preview-btn:focus-visible {
    outline: 3px solid rgba(0, 119, 200, 0.25);
    outline-offset: 2px;
}

/* ---------- Continue where I left off ---------- */

.judge-continue-card {
    max-width: 1300px;
    margin: 0 auto 30px;
    padding: 24px 28px;
    border: 1px solid #b8d5f0;
    border-left: 6px solid #0077c8;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(0, 119, 200, 0.08),
            rgba(0, 63, 127, 0.03)
        ),
        #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 8px 24px rgba(0, 63, 127, 0.08);
}

.judge-continue-card h2 {
    margin: 6px 0;
    color: #003f7f;
    font-size: 26px;
    overflow-wrap: anywhere;
}

.judge-continue-card p {
    margin: 0;
    color: #667085;
    line-height: 1.5;
}

.judge-continue-eyebrow {
    color: #0077c8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* ---------- Anonymous dashboard cards ---------- */

.anonymous-entry-card {
    position: relative;
    overflow: hidden;
}

.anonymous-entry-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #003f7f, #0077c8);
}

.anonymous-entry-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.anonymous-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eaf3fb;
    color: #003f7f;
    font-size: 13px;
    font-weight: 800;
}

.anonymous-code-block {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #d8e6f4;
    border-radius: 13px;
    background: #ffffff;
}

.anonymous-code-block small {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.anonymous-code-block h3 {
    margin: 0;
    color: #003f7f;
    font-size: 22px;
    overflow-wrap: anywhere;
}

.judge-draft-badge,
.judge-pending-badge,
.submitted-status-pill,
.draft-status-pill,
.recommendation-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
}

.judge-draft-badge,
.draft-status-pill {
    padding: 7px 10px;
    background: #fff4d8;
    color: #8a5a00;
    font-size: 12px;
}

.judge-pending-badge {
    padding: 7px 10px;
    background: #edf3f8;
    color: #5c6775;
    font-size: 12px;
}

.submitted-status-pill {
    padding: 8px 11px;
    background: #dcf6e7;
    color: #166b3a;
    font-size: 12px;
}

.judge-anonymous-tip {
    border-left-color: #22a447;
}

/* ---------- Review page anonymous identity ---------- */

.review-anonymous-label {
    display: inline-block;
    margin-bottom: 7px;
    color: #0077c8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.entry-navigation-status {
    min-width: 180px;
    text-align: center;
}

.entry-navigation-status span,
.entry-navigation-status strong {
    display: block;
}

.entry-navigation-status span {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.entry-navigation-status strong {
    margin-top: 4px;
    color: #003f7f;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.review-progress-header p {
    margin: 5px 0 0;
    color: #667085;
    line-height: 1.45;
}

/* ---------- Review messages ---------- */

.judge-review-messages {
    max-width: 1400px;
    margin: 0 auto 20px;
}

.judge-review-message {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #d9e4ef;
    background: #ffffff;
    color: #344054;
    font-weight: 700;
}

.judge-review-message + .judge-review-message {
    margin-top: 10px;
}

.judge-review-message.success {
    border-color: #a7dfbe;
    background: #edf9f2;
    color: #146c43;
}

.judge-review-message.error {
    border-color: #efb4b4;
    background: #fff1f1;
    color: #a12c2c;
}

.judge-review-message.warning {
    border-color: #efd49a;
    background: #fff9e9;
    color: #815d00;
}

/* ---------- Draft / Submitted banners ---------- */

.submitted-review-banner,
.draft-review-banner {
    max-width: 1400px;
    margin: 0 auto 22px;
    border-radius: 15px;
}

.submitted-review-banner {
    padding: 18px 20px;
    border: 1px solid #a9dfbe;
    background: #edf9f2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.submitted-review-banner strong {
    color: #146c43;
    font-size: 16px;
}

.submitted-review-banner p {
    margin: 5px 0 0;
    color: #46715a;
}

.draft-review-banner {
    padding: 15px 18px;
    border: 1px solid #ebcd8e;
    border-left: 5px solid #d89210;
    background: #fff8e9;
    color: #765309;
}

.draft-review-banner strong {
    margin-right: 8px;
}

/* ---------- Anonymous preview card ---------- */

.anonymous-entry-heading {
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #edf6ff, #f8fbff);
    border: 1px solid #d2e4f5;
}

.anonymous-entry-heading span {
    display: block;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.anonymous-entry-heading h2 {
    margin: 5px 0 7px;
    font-size: 28px;
    overflow-wrap: anywhere;
}

.anonymous-entry-heading p {
    margin: 0;
    color: #667085;
    line-height: 1.5;
}

.anonymous-review-note {
    margin-top: 22px;
    padding: 16px 18px;
    border-left: 4px solid #22a447;
    border-radius: 12px;
    background: #f0faf4;
}

.anonymous-review-note strong {
    color: #146c43;
}

.anonymous-review-note p {
    margin: 5px 0 0;
    color: #4d6e5a;
    line-height: 1.55;
}

/* ---------- Scorecard polish ---------- */

.scorecard-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.scorecard-heading h2 {
    margin-bottom: 5px;
}

.scorecard-heading p {
    margin: 0;
    color: #667085;
}

.anonymous-info-card {
    border-left-color: #22a447;
}

.score-guidance {
    margin: -8px 0 16px;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.score-btn:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.score-btn:disabled:hover {
    transform: none;
}

.review-score-card textarea:disabled {
    background: #f4f6f8;
    color: #475467;
    cursor: not-allowed;
}

.recommendation-card:has(input:disabled) {
    cursor: default;
}

.recommendation-card:has(input:disabled):hover {
    transform: none;
}

.recommendation-help {
    margin: -8px 0 16px;
    color: #667085;
    line-height: 1.5;
}

.submission-warning {
    margin-top: 24px;
    padding: 15px 17px;
    border: 1px solid #ead09b;
    border-radius: 12px;
    background: #fff9ed;
}

.submission-warning strong {
    color: #7c5900;
}

.submission-warning p {
    margin: 5px 0 0;
    color: #765f2c;
    line-height: 1.5;
}

.review-button-row-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.submit-review-btn {
    border: 1px solid #b9cce1;
    background: #ffffff;
    color: #003f7f;
}

/* ---------- Completed reviews ---------- */

.completed-review-summary {
    max-width: 1300px;
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.completed-summary-card {
    padding: 22px;
    border: 1px solid #dce6f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.05);
}

.completed-summary-card span,
.completed-summary-card strong {
    display: block;
}

.completed-summary-card span {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.completed-summary-card strong {
    margin-top: 7px;
    color: #003f7f;
    font-size: 32px;
    line-height: 1;
}

.completed-reviews-panel {
    max-width: 1300px;
    margin: 0 auto;
}

.completed-reviews-table td {
    vertical-align: middle;
}

.anonymous-review-code {
    color: #003f7f;
    overflow-wrap: anywhere;
}

.recommendation-status {
    padding: 7px 10px;
    background: #edf2f7;
    color: #475467;
    font-size: 12px;
}

.recommendation-status.finalist {
    background: #fff3cf;
    color: #835b00;
}

.recommendation-status.shortlisted {
    background: #e5f1ff;
    color: #155b99;
}

.recommendation-status.not-selected {
    background: #f1f3f5;
    color: #5f6670;
}

.completed-review-note {
    max-width: 1300px;
    margin: 22px auto 0;
    padding: 17px 19px;
    border-left: 4px solid #0077c8;
    border-radius: 12px;
    background: #eef6ff;
}

.completed-review-note strong {
    color: #003f7f;
}

.completed-review-note p {
    margin: 5px 0 0;
    color: #526377;
    line-height: 1.55;
}

.judge-empty-icon {
    margin-bottom: 10px;
    font-size: 34px;
}

/* ---------- Better desktop balance ---------- */

@media (min-width: 1100px) {
    .review-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(430px, 0.8fr);
    }
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
    .judge-continue-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .judge-continue-card .judge-primary-btn {
        width: 100%;
    }

    .review-button-row-three {
        grid-template-columns: 1fr;
    }

    .completed-review-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .submitted-review-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .submitted-review-banner .judge-secondary-btn {
        width: 100%;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 650px) {
    .judge-header,
    .judge-welcome-card,
    .judge-progress-card,
    .judge-continue-card,
    .judge-panel,
    .review-topbar,
    .review-progress-card,
    .review-preview-card,
    .review-score-card,
    .completed-summary-card {
        border-radius: 14px;
    }

    .judge-header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .judge-header-actions .judge-link,
    .judge-header-actions .judge-logout-form,
    .judge-header-actions .judge-logout {
        width: 100%;
    }

    .judge-header-actions .judge-link,
    .judge-header-actions .judge-logout {
        text-align: center;
    }

    .judge-welcome-card {
        padding: 24px 20px;
    }

    .judge-profile img,
    .judge-avatar {
        width: 88px;
        height: 88px;
    }

    .judge-avatar {
        font-size: 36px;
    }

    .judge-message {
        padding: 19px;
    }

    .judge-message h3 {
        font-size: 20px;
    }

    .judge-stat-card {
        padding: 21px;
    }

    .judge-stat-card h2 {
        font-size: 36px;
    }

    .judge-continue-card {
        padding: 20px;
    }

    .judge-continue-card h2 {
        font-size: 22px;
    }

    .anonymous-entry-topline {
        align-items: flex-start;
    }

    .entry-navigation {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .entry-navigation > div:first-child,
    .entry-navigation > div:last-child {
        min-width: 0;
    }

    .entry-navigation-status {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
        background: #eef5ff;
    }

    .entry-navigation > div:first-child {
        grid-column: 1;
        grid-row: 2;
    }

    .entry-navigation > div:last-child {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }

    .entry-navigation .judge-secondary-btn {
        min-width: 0;
        width: 100%;
        padding-inline: 10px;
    }

    .review-progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }

    .scorecard-heading {
        flex-direction: column;
    }

    .score-buttons {
        display: grid;
        grid-template-columns: repeat(5, minmax(42px, 1fr));
        gap: 8px;
    }

    .score-btn {
        width: 100%;
        max-width: none;
    }

    .live-total-box {
        padding: 18px;
    }

    .live-total-box strong {
        font-size: 26px;
    }

    .completed-review-summary {
        grid-template-columns: 1fr;
    }

    .completed-reviews-table {
        min-width: 720px;
    }
}

/* ---------- Small phones ---------- */

@media (max-width: 420px) {
    .judge-dashboard,
    .judge-review-page {
        padding: 10px;
    }

    .judge-header,
    .review-topbar,
    .judge-progress-card,
    .judge-panel,
    .review-preview-card,
    .review-score-card {
        padding: 18px;
    }

    .judge-profile h2,
    .review-topbar h1 {
        font-size: 24px;
    }

    .score-buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .score-btn {
        min-width: 0;
        height: 40px;
        font-size: 13px;
    }

    .anonymous-entry-heading h2 {
        font-size: 22px;
    }

    .preview-modal {
        padding: 8px;
    }
}

/* ==========================================================
   Judge Dashboard – Final Empty / Disabled State Refinements
   ========================================================== */

/* Keep the entries panel compact while there is nothing to review */
#judgeEntriesPanel:has(.judge-empty-state) {
    min-height: 0;
}

/* Improve the empty judging state */
#judgeEntriesPanel .judge-empty-state {
    min-height: 190px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
    background: #f7faff;
}

#judgeEntriesPanel .judge-empty-state h3 {
    margin: 0 0 10px;
    color: #003f7f;
    font-size: 17px;
}

#judgeEntriesPanel .judge-empty-state p {
    max-width: 520px;
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

/* Make disabled actions clearly look unavailable */
.judge-primary-btn.disabled,
.judge-primary-btn:disabled {
    background: #d9e2ec;
    border-color: #d9e2ec;
    color: #7b8794;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    opacity: 1;
}

/* Don't give disabled buttons a hover effect */
.judge-primary-btn.disabled:hover,
.judge-primary-btn:disabled:hover {
    background: #d9e2ec;
    box-shadow: none;
    transform: none;
}

/* Mobile */
@media (max-width: 650px) {
    #judgeEntriesPanel .judge-empty-state {
        min-height: 160px;
        padding: 26px 18px;
    }
}

/* ==========================================================
   Judge Review Workspace – Final Layout Refinements
   ========================================================== */

@media (min-width: 1100px) {
    .review-score-card {
        position: sticky;
        top: 20px;
        align-self: start;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
}

/* Keep the scorecard scrollbar subtle */
.review-score-card {
    scrollbar-width: thin;
    scrollbar-color: #b7c8da transparent;
}

.review-score-card::-webkit-scrollbar {
    width: 7px;
}

.review-score-card::-webkit-scrollbar-thumb {
    background: #b7c8da;
    border-radius: 20px;
}

.review-score-card::-webkit-scrollbar-track {
    background: transparent;
}

/* Make score buttons easier to tap */
.score-btn {
    min-width: 44px;
    min-height: 44px;
}

/* Make final action hierarchy clearer */
.review-button-row-three .judge-primary-btn {
    background: #003f7f;
}

.review-button-row-three .submit-review-btn {
    border: 1px solid #003f7f;
    background: #ffffff;
    color: #003f7f;
}

/* Keep draft as the quietest action */
.review-button-row-three .judge-secondary-btn:first-child {
    background: #eef5ff;
    color: #003f7f;
}

/* ==========================================================
   Review Entry – Final Desktop Layout
   ========================================================== */

.review-workspace {
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
    gap: 20px;
}

.review-design-card,
.review-score-card {
    min-width: 0;
}

/* Never horizontally scroll the scoring panel */
.review-score-card {
    overflow-x: hidden;
}

/* Score buttons must fit within their criterion */
.score-options {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
}

.score-btn {
    min-width: 0;
    width: 100%;
    height: 36px;
    padding: 0;
}

.review-design-image img {
    display: block;
    width: 100%;
    max-width: 520px;
    max-height: 560px;
    object-fit: contain;
    margin: 0 auto;
}

.review-button-row-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.review-button-row-three > * {
    width: 100%;
    min-width: 0;
}

@media (max-width: 1050px) {
    .review-workspace {
        grid-template-columns: 1fr;
    }

    .review-score-card {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 650px) {
    .score-options {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .score-btn {
        min-height: 42px;
    }

    .review-button-row-three {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Judge Portal – Final Submission Modal
   ========================================================== */

.submit-review-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    padding: 24px;
    background: rgba(3, 22, 48, 0.72);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.submit-review-modal.active {
    display: flex;
}

.submit-review-modal-card {
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.submit-review-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #e8f5ee;
    color: #148447;
    font-size: 25px;
    font-weight: 900;
}

.submit-review-modal-header span {
    color: #0077c8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.submit-review-modal-header h2 {
    margin: 7px 0 8px;
    color: #003f7f;
    font-size: 25px;
}

.submit-review-modal-header p {
    margin: 0;
    color: #667085;
    line-height: 1.55;
}

.submit-review-summary {
    margin: 22px 0;
    padding: 4px 18px;
    border: 1px solid #d9e5f1;
    border-radius: 14px;
    background: #f8fbff;
}

.submit-review-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #e3ebf4;
}

.submit-review-summary-row:last-child {
    border-bottom: none;
}

.submit-review-summary-row span {
    color: #667085;
    font-size: 13px;
}

.submit-review-summary-row strong {
    color: #003f7f;
    text-align: right;
}

.submit-review-warning {
    padding: 15px 17px;
    border: 1px solid #ecd090;
    border-left: 5px solid #d89210;
    border-radius: 12px;
    background: #fff8e8;
}

.submit-review-warning strong {
    color: #7a5500;
}

.submit-review-warning p {
    margin: 6px 0 0;
    color: #735f31;
    line-height: 1.5;
}

.submit-review-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.submit-review-modal-actions button {
    min-height: 46px;
    cursor: pointer;
}

.submit-review-modal-actions .judge-primary-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

@media (max-width: 520px) {

    .submit-review-modal {
        padding: 14px;
    }

    .submit-review-modal-card {
        padding: 22px;
        border-radius: 18px;
    }

    .submit-review-modal-actions {
        grid-template-columns: 1fr;
    }

    .submit-review-summary-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .submit-review-summary-row strong {
        text-align: left;
    }
}

.rules-hero-inner {
    width: min(1180px, 92%);
    min-height: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.rules-hero-inner h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
}

.rules-hero-description {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
}

.rules-dates-card {
    display: inline-flex;
    align-items: center;
    margin-top: 28px;
    padding: 16px 22px;

    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.rules-date-item {
    min-width: 150px;
}

.rules-date-item span {
    display: block;
    margin-bottom: 5px;

    color: #d5e2f3;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rules-date-item strong {
    display: block;

    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.rules-date-divider {
    width: 1px;
    height: 42px;
    margin: 0 24px;

    background: rgba(255, 255, 255, 0.30);
}


/* Mobile */

@media (max-width: 600px) {

    .rules-dates-card {
        width: 100%;
        box-sizing: border-box;
        padding: 15px 17px;
    }

    .rules-date-item {
        min-width: 0;
        flex: 1;
    }

    .rules-date-item strong {
        font-size: 0.9rem;
        white-space: normal;
    }

    .rules-date-divider {
        margin: 0 16px;
    }
}

@media (max-width: 700px) {

    .rules-hero-inner {
        min-height: auto;
        padding: 58px 0;
    }

    .rules-hero-inner h1 {
        font-size: 2.7rem;
    }

    .rules-hero-description {
        font-size: 1rem;
    }

    .rules-deadline-badge {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================
   COMPETITION HERO DATES
========================================= */

.hero-rules .rules-dates-card {
    display: flex;
    align-items: center;
    width: fit-content;
    margin-top: 34px;
    padding: 17px 22px;

    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-rules .rules-date-item {
    display: flex;
    flex-direction: column;
    min-width: 145px;
}

.hero-rules .rules-date-item span {
    display: block;
    margin-bottom: 5px;

    color: #d8e3f2;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.hero-rules .rules-date-item strong {
    display: block;

    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;

    white-space: nowrap;
}

.hero-rules .rules-date-divider {
    display: block;
    width: 1px;
    height: 44px;

    margin: 0 24px;

    background: rgba(255, 255, 255, 0.35);
}


/* Mobile */

@media (max-width: 600px) {

    .hero-rules .rules-dates-card {
        width: 100%;
        max-width: 390px;
        box-sizing: border-box;

        padding: 15px 17px;
    }

    .hero-rules .rules-date-item {
        min-width: 0;
        flex: 1;
    }

    .hero-rules .rules-date-item strong {
        font-size: 14px;
        white-space: normal;
    }

    .hero-rules .rules-date-divider {
        margin: 0 16px;
    }
}

/* Reduce space before the Ready to Reach for the Stars section */
.rules-cta {
	 margin-top: 0;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* =========================================================
   ENTRIES CLOSED PAGE
   ========================================================= */

.entries-closed-page {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background:
        radial-gradient(
            circle at top right,
            rgba(0, 112, 192, 0.10),
            transparent 35%
        ),
        #f4f8fc;
}

.entries-closed-card {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border-radius: 20px;
    padding: 55px 60px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 45, 90, 0.12);
    border-top: 5px solid #0070c0;
}

.entries-closed-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f4fb;
    color: #0070c0;
    font-size: 34px;
    font-weight: 700;
}

.entries-closed-card h1 {
    margin: 0 0 20px;
    color: #002b5c;
    font-size: 38px;
    line-height: 1.2;
}

.entries-closed-lead {
    font-size: 19px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 22px;
}

.entries-closed-card p {
    line-height: 1.7;
    color: #5b6775;
    margin: 12px 0;
}

.entries-closed-home {
    display: inline-block;
    margin-top: 30px;
    padding: 13px 30px;
    background: #0070c0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s ease;
}

.entries-closed-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 112, 192, 0.22);
}

@media (max-width: 700px) {
    .entries-closed-page {
        padding: 35px 16px;
    }

    .entries-closed-card {
        padding: 38px 24px;
    }

    .entries-closed-card h1 {
        font-size: 30px;
    }

    .entries-closed-lead {
        font-size: 17px;
    }
}