/* --- Result Search Form --- */
.srm-result-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.srm-form-group {
    margin-bottom: 15px;
}
.srm-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.srm-form-group input[type="text"],
.srm-form-group input[type="number"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
.srm-error-message {
    max-width: 500px;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #d9534f;
    background-color: #f2dede;
    color: #a94442;
    border-radius: 4px;
}


/* --- Certificate Styling --- */
.srm-certificate {
    border: 10px solid #ececec;
    padding: 30px;
    background: #fff;
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Times New Roman', Times, serif;
    color: #333;
}

.srm-cert-header {
    text-align: center;
    margin-bottom: 30px;
}
.srm-cert-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}
.srm-cert-header h3 {
    margin: 5px 0;
    font-size: 20px;
}
.srm-cert-header h4 {
    margin: 5px 0;
    font-size: 18px;
    font-weight: normal;
}

.srm-student-details,
.srm-marks-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.srm-student-details th,
.srm-student-details td {
    padding: 8px;
    text-align: left;
    font-size: 14px;
}
.srm-student-details th {
    font-weight: bold;
    width: 15%;
}
.srm-student-details td {
    width: 35%;
}

.srm-marks-table th,
.srm-marks-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}
.srm-marks-table thead th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.srm-marks-table tfoot th {
    font-weight: bold;
    text-align: right;
}
.srm-marks-table td:nth-child(2) {
    text-align: left; /* Align subject name to the left */
}

.srm-cert-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Print Styles --- */
@media print {
    body * {
        visibility: hidden;
    }
    .srm-certificate, .srm-certificate * {
        visibility: visible;
    }
    .srm-certificate {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        border: none;
        padding: 0;
    }
    .srm-print-button {
        display: none;
    }
}