/* Core Stylesheet for ICAI Exam Results Replica */

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Outer layout wrapper to resemble browser layout in screenshots */
.site-wrapper {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background-color: #ffffff;
}

/* Centered main container (exact 522px wide to match screenshots) */
.main-container {
    width: 522px;
    margin: 20px auto;
    border: 1px solid #d3d3d3;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* Header purple banner styling */
.header-banner {
    background-color: #94008e;
    color: #ffffff;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 70px;
    width: 100%;
}

.header-logo {
    width: 56px;
    height: 56px;
    margin-right: 10px;
    display: block;
}

.header-text {
    flex-grow: 1;
    text-align: center;
    margin-right: 56px; /* Offset the logo width to center text in banner */
}

.header-title {
    font-size: 17px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 11.5px;
    margin: 3px 0 0 0;
    font-weight: normal;
    letter-spacing: 0.2px;
}

/* Full-width Banner Rows (CHECK RESULTS / CHECK MERIT LIST) */
.banner-row {
    background-color: #f5f5f5;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    color: #94008e;
    font-size: 12.5px;
    font-weight: bold;
    padding: 4px 8px;
    text-align: left;
    box-sizing: border-box;
    width: 100%;
}

/* Padded Links Area on Homepage */
.links-list {
    padding: 10px 8px;
    box-sizing: border-box;
    background-color: #ffffff;
    text-align: left;
}

.link-item {
    margin-bottom: 12px;
    line-height: 1.35;
}

.link-item:last-child {
    margin-bottom: 3px;
}

.exam-link {
    color: #000000;
    font-weight: bold;
    text-decoration: underline;
    font-size: 12.5px;
    cursor: pointer;
}

.exam-link:hover {
    color: #0000ee;
}

.exam-link-inactive {
    color: #000000;
    font-weight: bold;
    text-decoration: underline;
    font-size: 12.5px;
    cursor: pointer;
}

.exam-link-inactive:hover {
    color: #0000ee;
}

.exam-suffix {
    font-size: 12.5px;
    color: #333333;
    font-weight: normal;
}

.announce-date {
    font-size: 10.5px;
    font-style: italic;
    color: #529a65; /* Exact green shade from screenshot pixel analysis */
    margin-top: 2px;
    font-weight: bold;
}

/* Padded content area for login and results subpages */
.content-area {
    padding: 10px 8px 20px 8px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    background-color: #ffffff;
}

/* Page subtitle ("Foundation - Result" or "Foundation Exam May 2026, Result") */
.page-subtitle {
    color: #9a0d94;
    font-size: 15px;
    font-weight: bold;
    margin: 10px 0 15px 0;
    text-align: center;
}

.page-subtitle-results {
    color: #9a0d94;
    font-size: 15px;
    font-weight: bold;
    margin: 10px 0 15px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Logout link positioning */
.logout-link {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 12px;
    color: #0000ee;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

/* Forms layout table */
.form-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
}

.form-table td {
    padding: 5px 4px;
    vertical-align: middle;
    font-size: 12.5px;
}

.form-label {
    text-align: right;
    font-weight: bold;
    width: 48%;
    padding-right: 12px !important;
}

.form-input-cell {
    text-align: left;
    width: 52%;
}

.form-table input[type="text"], 
.form-table input[type="number"] {
    width: 140px;
    height: 18px;
    padding: 2px 4px;
    font-size: 12px;
    border: 1px solid #7a7a7a;
    box-sizing: border-box;
    font-family: inherit;
}

/* Instruction labels */
.instruction-text {
    font-size: 12px;
    font-weight: bold;
    margin: 15px 0 10px 0;
    text-align: center;
}

/* Captcha area styling */
.captcha-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    gap: 8px;
}

.captcha-image-box {
    width: 90px;
    height: 24px;
    border: 1px solid #7a7a7a;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-style: italic;
    color: #0000ff;
    font-size: 15px;
    letter-spacing: 2px;
    user-select: none;
    box-shadow: inset 0px 0px 3px rgba(0,0,0,0.1);
}

.captcha-input {
    width: 90px !important;
    height: 24px !important;
}

.captcha-subtext {
    font-size: 10.5px;
    font-style: italic;
    color: #555555;
    margin-top: 2px;
    margin-bottom: 12px;
}

/* Button section styling */
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.btn {
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    box-sizing: border-box;
    height: 20px;
    line-height: 18px;
    padding: 0 10px;
}

.btn-clear {
    background-color: #0c044d; /* Navy blue hex from pixel analysis */
    width: 58px;
}

.btn-submit {
    background-color: #94008e; /* Purple hex from pixel analysis */
    width: 63px;
}

/* Standard blue links */
.link-home {
    font-size: 12.5px;
    color: #0000ee;
    text-decoration: underline;
    cursor: pointer;
    font-weight: normal;
    margin-top: 15px;
    display: inline-block;
}

/* Results table styling */
.results-table {
    width: 100%;
    margin: 10px auto;
    border-collapse: collapse;
    border: 1px solid #ccc;
    font-size: 12.5px;
    text-align: left;
}

.results-table th, .results-table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    vertical-align: middle;
}

.results-table th {
    background-color: #94008e;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.results-table tr:nth-child(even) {
    background-color: #ffffff;
}

.results-table tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Specific alignments for results */
.results-table td.center {
    text-align: center;
}

.results-table td.right {
    text-align: right;
}

.results-table td.bold {
    font-weight: bold;
}

.result-status-row {
    font-weight: bold;
    font-size: 13px;
}

/* Bottom navigation links on results page */
.results-nav {
    margin-top: 25px;
    font-size: 12.5px;
}

.results-nav a {
    color: #0000ee;
    text-decoration: underline;
    cursor: pointer;
}

.results-nav span {
    color: #000000;
    margin: 0 5px;
}

/* Disclaimer container and content */
.disclaimer-container {
    width: 100%;
    box-sizing: border-box;
}

.disclaimer-banner {
    background-color: #94008e;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: bold;
    text-align: center;
    padding: 4px 0;
    width: 100%;
}

.disclaimer-text {
    font-size: 8.5px;
    color: #000000;
    text-align: justify;
    line-height: 1.35;
    padding: 8px 8px 10px 8px;
    margin: 0;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* General classes */
.hidden {
    display: none !important;
}

/* Error message warning */
.error-message {
    color: red;
    font-size: 12px;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
}
