/* Go2AI Student Result Portal Pro - Branded Styles */
.go2ai-pro-portal {
    --go2ai-primary: #0030F8;
    --go2ai-accent: #18E070;
    --go2ai-bg: #07102E;
    --go2ai-card: #050A1C;
    --go2ai-text: #FFFFFF;
    --go2ai-muted: #CBD5E1;
    --go2ai-border: rgba(255, 255, 255, 0.09);

    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 100vh;
    padding: 52px 20px 64px;
    border-radius: 0;
    background: radial-gradient(ellipse at 50% 16%, #10225C 0%, var(--go2ai-bg) 50%, #030714 100%);
    color: var(--go2ai-text);
    font-family: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}
.go2ai-pro-inner {
    max-width: 1160px;
    margin: 0 auto;
}
.go2ai-pro-portal * {
    box-sizing: border-box;
}

/* Light Mode Override */
.go2ai-pro-portal.go2ai-theme-light {
    --go2ai-bg: #F8FAFC;
    --go2ai-card: #FFFFFF;
    --go2ai-text: #0F172A;
    --go2ai-muted: #475569;
    --go2ai-border: #E2E8F0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* Branded Header (Exact match to dark midnight navy hero) */
.go2ai-pro-header {
    text-align: center;
    margin-bottom: 34px;
}
.go2ai-pro-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 18px;
    box-shadow: none;
}
.go2ai-pro-logo {
    height: 42px;
    max-width: 150px;
    width: auto;
    display: block;
    object-fit: contain;
}
.go2ai-pro-title {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.go2ai-theme-light .go2ai-pro-title {
    color: #0F172A;
}
.go2ai-pro-subtitle {
    margin: 0 auto;
    max-width: 560px;
    font-size: 14.5px;
    font-weight: 400;
    color: #D6E0F5;
    line-height: 1.5;
}
.go2ai-theme-light .go2ai-pro-subtitle {
    color: #475569;
}

/* Toolbar: Breadcrumb + Search */
.go2ai-pro-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 26px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--go2ai-border);
}
.go2ai-theme-light .go2ai-pro-toolbar {
    background: #FFFFFF;
}
.go2ai-pro-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.go2ai-crumb-btn {
    background: transparent;
    border: 1px solid var(--go2ai-border);
    color: var(--go2ai-muted);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.go2ai-crumb-btn:hover {
    border-color: var(--go2ai-accent);
    color: var(--go2ai-text);
}
.go2ai-crumb-btn.active {
    background: var(--go2ai-primary);
    border-color: var(--go2ai-primary);
    color: #FFFFFF;
}
.go2ai-crumb-sep {
    color: var(--go2ai-muted);
    font-size: 14px;
    font-weight: 700;
}
.go2ai-pro-search-wrap {
    flex: 1 1 240px;
    max-width: 340px;
}
.go2ai-pro-search {
    width: 100%;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1.5px solid var(--go2ai-border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--go2ai-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.go2ai-theme-light .go2ai-pro-search {
    background: #F8FAFC;
}
.go2ai-pro-search::placeholder {
    color: var(--go2ai-muted);
}
.go2ai-pro-search:focus {
    border-color: var(--go2ai-accent);
}

/* LEVEL 1 & 2: COVER CARD GRID (Matches User's Reference Screenshot) */
.go2ai-cover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.go2ai-cover-card {
    background: var(--go2ai-card);
    border: 1px solid var(--go2ai-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.go2ai-theme-light .go2ai-cover-card {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}
.go2ai-cover-card:hover {
    transform: translateY(-4px);
    border-color: var(--go2ai-accent);
    box-shadow: 0 18px 36px rgba(0, 48, 248, 0.22);
}
.go2ai-cover-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #001B87, #0030F8 60%, #10B981);
    overflow: hidden;
}
.go2ai-cover-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.go2ai-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(24, 224, 112, 0.35), transparent 55%),
                linear-gradient(135deg, #071447, #0030F8);
}
.go2ai-exam-num {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: #050A1E;
    background: var(--go2ai-accent);
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.go2ai-cover-placeholder-text {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.go2ai-corner-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FFFFFF;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.go2ai-corner-logo img {
    height: 20px;
    width: auto;
    display: block;
}
.go2ai-count-pill {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(5, 10, 30, 0.85);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.go2ai-green-pill {
    background: rgba(5, 10, 30, 0.88);
    color: var(--go2ai-accent);
    border-color: rgba(24, 224, 112, 0.45);
}
.go2ai-cover-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.go2ai-cover-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--go2ai-text);
    line-height: 1.35;
}
.go2ai-folder-ico,
.go2ai-doc-ico {
    margin-right: 6px;
}
.go2ai-cover-desc {
    margin: 0 0 16px;
    font-size: 13.5px;
    color: var(--go2ai-muted);
    line-height: 1.45;
}

/* Brand Primary Button (Royal Blue Pill like Screenshot) */
.go2ai-primary-btn {
    margin-top: auto;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: var(--go2ai-primary);
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(0, 48, 248, 0.32);
}
.go2ai-primary-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}
.go2ai-primary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* LEVEL 3: STUDENT CARDS GRID */
.go2ai-student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 18px;
}
.go2ai-student-card {
    background: var(--go2ai-card);
    border: 1px solid var(--go2ai-border);
    border-radius: 16px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.go2ai-student-card:hover {
    transform: translateY(-3px);
    border-color: var(--go2ai-accent);
}
.go2ai-student-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--go2ai-primary), var(--go2ai-accent));
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 6px 14px rgba(0, 48, 248, 0.25);
}
.go2ai-exam-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--go2ai-accent);
    background: rgba(24, 224, 112, 0.12);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.go2ai-theme-light .go2ai-exam-tag {
    color: #047857;
    background: #DCFCE7;
}
.go2ai-student-name {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--go2ai-text);
    line-height: 1.35;
}

.go2ai-pro-empty,
.go2ai-pro-no-match {
    text-align: center;
    padding: 36px 20px;
    border-radius: 14px;
    border: 1px dashed var(--go2ai-border);
    color: var(--go2ai-muted);
    font-size: 15px;
}

/* VERIFICATION MODAL */
.go2ai-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 30, 0.78);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.go2ai-modal-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: #FFFFFF;
    color: #0F172A;
    border-radius: 18px;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    animation: go2aiModalIn 0.18s ease-out;
}
@keyframes go2aiModalIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
.go2ai-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #F1F5F9;
    color: #475569;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.go2ai-modal-close:hover {
    background: #E2E8F0;
    color: #0F172A;
}
.go2ai-modal-logo {
    height: 36px;
    width: auto;
    margin: 0 auto 12px;
    display: block;
}
.go2ai-modal-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #0030F8;
    background: #EEF2FF;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.go2ai-modal-heading {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 800;
    color: #0F172A;
}
.go2ai-modal-sub {
    margin: 0 0 18px;
    font-size: 14px;
    color: #475569;
}
.go2ai-modal-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    margin-bottom: 12px;
    outline: none;
    text-align: center;
    font-weight: 600;
}
.go2ai-modal-input:focus {
    border-color: #0030F8;
    box-shadow: 0 0 0 3px rgba(0, 48, 248, 0.14);
}
.go2ai-modal-error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}
.go2ai-modal-success {
    margin-top: 12px;
    padding: 16px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 12px;
}
.go2ai-modal-success p {
    margin: 0 0 12px;
    font-size: 14.5px;
    font-weight: 700;
    color: #065F46;
}
.go2ai-accent-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: #10B981;
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
}
.go2ai-accent-btn:hover {
    background: #059669;
}


/* Clickable Student Card */
.go2ai-student-card.go2ai-view-result-trigger {
    cursor: pointer;
}
.go2ai-student-card.go2ai-view-result-trigger:focus {
    outline: 2px solid var(--go2ai-accent);
    outline-offset: 2px;
}

/* Password-style Student ID input */
.go2ai-pass-wrap {
    position: relative;
    margin-bottom: 12px;
}
.go2ai-pass-wrap .go2ai-pass-input {
    margin-bottom: 0;
    padding-right: 68px;
}
.go2ai-pass-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #EEF2FF;
    color: #0030F8;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 7px;
    cursor: pointer;
}
.go2ai-pass-toggle:hover {
    background: #DBEAFE;
}

/* Auto Pagination Bar (12 per page) */
.go2ai-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--go2ai-border);
}
.go2ai-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1.5px solid var(--go2ai-border);
    background: var(--go2ai-card);
    color: var(--go2ai-text);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}
.go2ai-page-btn:hover:not(:disabled) {
    border-color: var(--go2ai-accent);
    color: var(--go2ai-accent);
}
.go2ai-page-btn.active {
    background: var(--go2ai-primary);
    border-color: var(--go2ai-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 48, 248, 0.3);
}
.go2ai-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.go2ai-page-info {
    font-size: 13px;
    color: var(--go2ai-muted);
    margin-left: 8px;
    font-weight: 600;
}


/* Theme-Proof White Text Overrides for Dark Navy Mode */
.go2ai-pro-portal.go2ai-theme-dark,
.go2ai-pro-portal.go2ai-theme-dark .go2ai-pro-title,
.go2ai-pro-portal.go2ai-theme-dark h2.go2ai-pro-title,
.go2ai-pro-portal.go2ai-theme-dark .go2ai-cover-title,
.go2ai-pro-portal.go2ai-theme-dark h3.go2ai-cover-title,
.go2ai-pro-portal.go2ai-theme-dark .go2ai-student-name,
.go2ai-pro-portal.go2ai-theme-dark h4.go2ai-student-name,
.go2ai-pro-portal.go2ai-theme-dark .go2ai-primary-btn,
.go2ai-pro-portal.go2ai-theme-dark .go2ai-crumb-btn.active,
.go2ai-pro-portal.go2ai-theme-dark .go2ai-page-btn,
.go2ai-pro-portal.go2ai-theme-dark .go2ai-cover-placeholder-text {
    color: #FFFFFF !important;
}

.go2ai-pro-portal.go2ai-theme-dark .go2ai-pro-subtitle,
.go2ai-pro-portal.go2ai-theme-dark p.go2ai-pro-subtitle,
.go2ai-pro-portal.go2ai-theme-dark .go2ai-cover-desc,
.go2ai-pro-portal.go2ai-theme-dark p.go2ai-cover-desc,
.go2ai-pro-portal.go2ai-theme-dark .go2ai-crumb-btn,
.go2ai-pro-portal.go2ai-theme-dark .go2ai-page-info,
.go2ai-pro-portal.go2ai-theme-dark .go2ai-pro-empty {
    color: #E2E8F0 !important;
}
