:root {
    --primary-red: rgb(215, 19, 19);
    --bg-gradient: linear-gradient(to right, rgb(167, 187, 212), rgb(204, 218, 237));
    --card-bg: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;
    --border-color: rgb(170, 170, 170);
    --input-focus: #1976d2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0 0;
}

.main-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 40px;
}


.header-logo {
    margin-bottom: 25px;
}

.header-logo img {
    height: 60px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}


.result-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 800px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 35px 50px;
    border: 1px solid #bbb;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.wbbse-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
}


.card-header h1 {
    color: var(--primary-red);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-header h2 {
    color: #444;
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 4px;
}

.card-header p.notice {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.form-group label {
    flex: 0 0 180px;
    font-weight: bold;
    color: #222;
    font-size: 15px;
}

.input-container {
    flex: 1;
    max-width: 500px;
}

input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: #f9f9f9;
    color: #444;
}

input[type="text"]::placeholder {
    color: #999;
}

.example-text {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

.button-container {
    text-align: center;
    margin-top: 35px;
}

.btn-view {
    background: rgb(255, 254, 243);
    color: var(--primary-red);
    border: 1.6px solid var(--primary-red);
    padding: 8px 30px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view:hover {
    background: var(--primary-red);
    color: #ffffff;
}

.divider {
    height: 1px;
    background: #ddd;
    margin: 25px 0;
}

.disclaimer {
    font-size: 13.5px;
    color: #444;
    line-height: 1.5;
    text-align: left;
}

.disclaimer strong {
    color: #222;
}

@media (max-width: 600px) {
    .result-card {
        padding: 20px 15px;
        width: 95%;
        margin: 0 auto;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;

        margin-bottom: 15px;
    }

    .form-group label {
        flex: none;
        margin-bottom: 8px;
        font-size: 14px;
        text-align: left;
    }

    .input-container {
        width: 100%;
        max-width: none;
    }

    input[type="text"] {
        font-size: 16px;

        padding: 10px 12px;
    }
}

.site-footer {
    background-color: #000;
    color: #fff;
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    font-size: 13px;
    margin-top: auto;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ccc;
}

.footer-links span {
    color: #555;
    font-size: 10px;
}

.copyright {
    color: #888;
    margin-top: 10px;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    z-index: 1000;
    overflow-y: auto;
}

.modal-content-wrapper {
    background: #fff;
    width: 95%;
    max-width: 800px;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 5px;
    font-size: 32px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
    z-index: 1010;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-red);
}



.result-table-header {
    background: #0d47a1;
    color: #fff;
    padding: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid #ddd;
}

.info-table,
.marksheet-table,
.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td,
.marksheet-table td,
.marksheet-table th,
.summary-table td,
.summary-table th {
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 14px;
    text-align: left;
}

.info-table td:first-child {
    font-weight: 700;
    width: 40%;
}

.marksheet-table th,
.summary-table th {
    background: #0d47a1;
    color: #fff;
    text-align: center;
    font-weight: 700;
}

.marksheet-table td:nth-child(2),
.marksheet-table td:nth-child(3),
.summary-table td {
    text-align: center;
}

.modal-disclaimer {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin: 20px 0;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-secondary {
    background: #fff;
    color: var(--primary-red);
    border: 1.5px solid var(--primary-red);
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: #fff;
}

@media print {
    .modal-overlay {
        position: absolute;
        background: none;
        padding: 0;
    }

    .modal-buttons,
    .main-content,
    .site-footer {
        display: none !important;
    }
}

.result-display {
    margin-top: 30px;
    padding-top: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.student-name {
    color: #000;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.roll-info {
    color: #444;
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 500;
}

.marks-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.marks-table th,
.marks-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.marks-table th {
    background-color: #f1f1f1;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.marks-table tbody tr:last-child td {
    border-bottom: none;
}

.marks-table tr:hover {
    background-color: #f9f9f9;
}

.total-row td,
.status-row td {
    font-weight: 700;
    background-color: #fcfcfc;
    border-top: 2px solid #ccc;
}

.total-row td {
    color: #000;
}

.status-row td {
    color: #333;
}

.pass {
    color: #1b5e20 !important;
    font-weight: 800;
}

.fail {
    color: #b71c1c !important;
    font-weight: 800;
}

.print-btn-container {
    text-align: center;
    margin-top: 40px;
}

@media print {
    body {
        background: #fff;
        padding: 0;
    }

    .main-content,
    .site-footer,
    .no-print,
    .header-logo,
    .divider,
    form {
        display: none !important;
    }

    .result-card {
        box-shadow: none;
        border: none;
        max-width: 100%;
        padding: 0;
    }

    .result-display {
        display: block !important;
    }

    .btn-secondary {
        padding: 10px 15px;

    }
}

margin-top: 10px;
}