/* Subjects Table Styling */
.subjects-container {
    width: 100%;
    background-color: white;
    font-family: Arial, sans-serif;
}

.subjects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.subjects-table th,
.subjects-table td {
    padding: 8px;
    /* Increased padding slightly for readability */
    border-bottom: 1px solid #e0e0e0;
    /* Light gray border for rows */
    text-align: left;
}

.subjects-table .header-row {
    background-color: #5b8dd3;
    /* Header row blue */
    color: white;
    font-weight: bold;
}

.subjects-table .header-row th {
    border: none;
    padding: 10px 8px;
}

.subjects-table .section-header {
    background-color: #fef373;
    /* Yellow section header */
    color: black;
    font-weight: bold;
    text-transform: uppercase;
}

.subjects-table .section-header td {
    border: none;
    padding: 8px;
    /* Reduced vertical padding slightly */
    text-align: center;
    /* Centered section header text */
    letter-spacing: 0.5px;
}

/* Specific column alignments matching the image */
.subjects-table td:nth-child(1) {
    width: 5%;
}

/* Semester */
.subjects-table td:nth-child(2) {
    width: 15%;
}

/* Subject Code */
.subjects-table td:nth-child(3) {
    width: 40%;
}

/* Description */
.subjects-table td:nth-child(4) {
    width: 5%;
}

/* Credit */
.subjects-table td:nth-child(5) {
    width: 35%;
}

/* Faculty */

/* Remove profile-specific layout for subjects view if needed (handled by content-area flexibility) */
#student-subjects-view {
    display: block;
    /* Override flex if content-area is flex, though flex handles block children fine mainly */
}

#student-subjects-view .subjects-container {
    /* Ensure it takes full width */
    width: 100%;
}

/* Internal Marks Table Styling */
.internal-marks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.internal-marks-table th,
.internal-marks-table td {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.internal-marks-table .header-row {
    background-color: #5b8dd3;
    /* Header row blue */
    color: white;
    font-weight: bold;
}

.internal-marks-table .header-row th {
    border: none;
    padding: 10px 8px;
    text-align: left;
}

/* Align numeric marks to the right like typical financial/marks tables if desired,
   but image shows clear right alignment for "Marks Obtained" and "Max.Marks" headers and content. */
.internal-marks-table th:nth-child(3),
.internal-marks-table td:nth-child(3),
.internal-marks-table th:nth-child(4),
.internal-marks-table td:nth-child(4) {
    text-align: right;
    padding-right: 20px;
    /* Give some breathing room from the edge */
}

/* Column Widths to match Image visual proportions */
.internal-marks-table td:nth-child(1) {
    width: 15%;
}

/* Subject Code */
.internal-marks-table td:nth-child(2) {
    width: 45%;
}

/* Subject Description */
.internal-marks-table td:nth-child(3) {
    width: 20%;
}

/* Marks Obtained */
.internal-marks-table td:nth-child(4) {
    width: 20%;
}

/* Max.Marks */

#internal-marks-view {
    display: block;
    /* Similar to subjects view */
}

#internal-marks-view .subjects-container {
    width: 100%;
}

/* Exam Time Table Styling */
.exam-timetable-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.exam-timetable-table th,
.exam-timetable-table td {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.exam-timetable-table .header-row {
    background-color: #5b8dd3;
    color: white;
    font-weight: bold;
}

.exam-timetable-table .header-row th {
    border: none;
    padding: 10px 8px;
    text-align: left;
}

/* Column Widths based on visual estimation from image */
.exam-timetable-table th:nth-child(1),
.exam-timetable-table td:nth-child(1) {
    width: 10%;
}

/* Exam Date */
.exam-timetable-table th:nth-child(2),
.exam-timetable-table td:nth-child(2) {
    width: 10%;
}

/* Time */
.exam-timetable-table th:nth-child(3),
.exam-timetable-table td:nth-child(3) {
    width: 15%;
}

/* Subject Code */
.exam-timetable-table th:nth-child(4),
.exam-timetable-table td:nth-child(4) {
    width: 45%;
}

/* Subject Description */
.exam-timetable-table th:nth-child(5),
.exam-timetable-table td:nth-child(5) {
    width: 10%;
}

/* Semester */
.exam-timetable-table th:nth-child(6),
.exam-timetable-table td:nth-child(6) {
    width: 10%;
}

/* Subject Status */

#exam-timetable-view {
    display: block;
}

#exam-timetable-view .subjects-container {
    width: 100%;
}

/* Fee Paid Details Table Styling */
.fee-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.fee-details-table th,
.fee-details-table td {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    white-space: normal;
    /* Allow wrapping */
}

/* Top Header Row (Dark Blue) */
.fee-details-table .header-row-top th {
    background-color: #5b8dd3;
    color: white;
    font-weight: bold;
    text-align: center;
    border: 1px solid #7ea6da;
    /* Subtle separator */
}

/* Second Header Row (Matched Blue) */
/* Actually the image shows the same blue for both header rows, just grouped. */
.fee-details-table .header-row-sub th {
    background-color: #5b8dd3;
    color: white;
    font-weight: bold;
    border-right: 1px solid #7ea6da;
    text-align: left;
}

/* Right align specific headers and data */
.fee-details-table .header-row-sub th:nth-child(4),
/* Amount */
.fee-details-table td:nth-child(4),
.fee-details-table .header-row-sub th:nth-child(8),
/* Amount */
.fee-details-table td:nth-child(8),
.fee-details-table .header-row-top th:last-child,
/* Due Header */
.fee-details-table td:last-child {
    text-align: right;
}

/* Column Widths (Approximate) */
.fee-details-table td:nth-child(1) {
    width: 5%;
}

/* Term */
.fee-details-table td:nth-child(2) {
    width: 10%;
}

/* Fee Type */
.fee-details-table td:nth-child(3) {
    width: 8%;
}

/* Due Starts */
.fee-details-table td:nth-child(4) {
    width: 8%;
}

/* Amount */
.fee-details-table td:nth-child(5) {
    width: 15%;
}

/* Receipt Date */
.fee-details-table td:nth-child(6) {
    width: 8%;
}

/* Mode */
.fee-details-table td:nth-child(7) {
    width: 25%;
}

/* Number */
.fee-details-table td:nth-child(8) {
    width: 8%;
}

/* Amount */
.fee-details-table td:nth-child(9) {
    width: 5%;
}

/* Due */

#fee-paid-view {
    display: block;
}

#fee-paid-view .subjects-container {
    width: 100%;
    overflow-x: auto;
    /* In case it's too wide */
}

/* Fee Due Details Table Styling */
.fee-due-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.fee-due-table th,
.fee-due-table td {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.fee-due-table .header-row {
    background-color: #5b8dd3;
    color: white;
    font-weight: bold;
}

.fee-due-table .header-row th {
    border: none;
    padding: 10px 8px;
    text-align: left;
    border-right: 1px solid #7ea6da;
}

.fee-due-table .header-row th:last-child {
    border-right: none;
}

/* Column Widths */
.fee-due-table th:nth-child(1),
.fee-due-table td:nth-child(1) {
    width: 10%;
}

/* Semester */
.fee-due-table th:nth-child(2),
.fee-due-table td:nth-child(2) {
    width: 25%;
}

/* Fee Type */
.fee-due-table th:nth-child(3),
.fee-due-table td:nth-child(3) {
    width: 20%;
}

/* Fee Due Starts From */
.fee-due-table th:nth-child(4),
.fee-due-table td:nth-child(4) {
    width: 20%;
}

/* Fee In Installments */
.fee-due-table th:nth-child(5),
.fee-due-table td:nth-child(5) {
    width: 25%;
}

/* Fee Due */

#fee-due-view {
    display: block;
}

#fee-due-view .subjects-container {
    width: 100%;
}

/* Other Details View Styling */
#other-details-view {
    display: block;
}

.other-details-container {
    display: flex;
    gap: 20px;
    height: 100%;
    align-items: flex-start;
    /* Do not stretch */
}

.od-sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.od-menu-item {
    padding: 12px;
    background-color: #5b8dd3;
    /* Default light blue */
    color: white;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    font-size: 11px;
    text-transform: uppercase;
    border: none;
}

.od-menu-item.active {
    background-color: #003366;
    /* Dark blue for active */
}

.od-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.od-panel-header {
    background-color: #003366;
    color: white;
    font-weight: bold;
    padding: 10px;
    font-size: 12px;
    text-transform: uppercase;
}

.od-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    background-color: #e0e0e0;
    /* Gray header for table columns? Image shows gray background for headers */
}

.od-table th {
    background-color: #dcdcdc;
    /* Light gray header background as in image */
    color: black;
    font-weight: bold;
    padding: 8px;
    text-align: left;
    border-bottom: 2px solid white;
    /* Visual separator */
}

.od-table td {
    background-color: white;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* Specific column styling from image */
.od-table th:nth-child(1) {
    width: 10%;
}

/* Pattern */
.od-table th:nth-child(2) {
    width: 30%;
}

/* Subject Code */
.od-table th:nth-child(3) {
    width: 60%;
}

/* Subject Description */
.od-table th:nth-child(3) {
    width: 60%;
}

/* Online Exam Results Styling */
#online-results-view {
    display: block;
    background-color: white;
    padding: 20px;
    font-family: 'Times New Roman', Times, serif;
    /* Looks more formal in the screenshot */
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
}

.college-name {
    font-size: 24px;
    font-weight: bold;
    text-decoration: underline;
    margin-bottom: 5px;
    color: black;
}

.college-loc {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: black;
}

.exam-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: black;
}

.officials {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    color: black;
}

.exam-session-bar {
    background-color: #003366;
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 5px;
    font-size: 12px;
    margin-bottom: 10px;
}

.student-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 15px;
}

.student-info-table td {
    padding: 5px;
    border: 1px solid #ccc;
    /* Looks like table borders are visible */
    background-color: white;
    color: black;
}

.student-info-table td:nth-child(odd) {
    /* Labels */
    font-weight: normal;
    /* Actually labels look normal/bold depending on cell */
    background-color: #f5f5f5;
    width: 15%;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-bottom: 20px;
}

.results-table th {
    background-color: #7dace6;
    /* A lighter blue as seen */
    color: white;
    font-weight: bold;
    padding: 5px;
    text-align: center;
    border: 1px solid white;
    text-transform: uppercase;
}

.results-table td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
    color: black;
}

.results-table td:nth-child(4) {
    /* Subject Description */
    text-align: left;
}

.disclaimer {
    font-size: 10px;
    margin-top: 20px;
    line-height: 1.4;
    color: black;
}

.disclaimer b {
    text-decoration: underline;
}

.results-viewed {
    text-align: right;
    margin-top: 20px;
    font-size: 12px;
    color: blue;
}

.results-viewed span {
    background-color: #dcebf7;
    padding: 2px 10px;
    border: 1px solid #ccc;
}

/* Exam Mark Details Styling */
#exam-mark-details-view {
    display: block;
}

#exam-mark-details-view .subjects-container {
    width: 100%;
    overflow-x: auto;
}

.exam-marks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-bottom: 20px;
}

.exam-marks-table th,
.exam-marks-table td {
    border: 1px solid #e0e0e0;
    padding: 6px;
    text-align: center;
}

.exam-marks-table .header-row {
    background-color: #5b8dd3;
    color: white;
    font-weight: bold;
}

.marks-section-header {
    background-color: #dcdcdc;
    /* Part III, Part IV etc */
    color: #003366;
    font-weight: bold;
    text-align: left;
    padding: 5px 10px;
}

.marks-sub-header {
    background-color: white;
    /* MC (MAJOR (CORE)) etc */
    color: black;
    font-weight: bold;
    text-align: left;
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
}

.marks-data-row td {
    background-color: white;
    color: black;
}

.marks-subtotal-row td {
    background-color: #fffacd;
    /* Light yellow base? Image uses brighter yellow for status */
    font-weight: bold;
    text-align: left;
    color: #d35400;
    /* Orange/Red color for labels 'Required Credits' etc */
}

.subtotal-label {
    color: #e67e22;
    /* Orange-ish text */
    font-weight: bold;
}

.status-not-completed {
    background-color: #ffff00;
    /* Bright yellow */
    color: red;
    font-weight: bold;
    text-align: center;
}

.status-completed {
    background-color: white;
    color: green;
    /* Assuming completed is green, though image has "Completed" as plain text in one spot? Image 4 shows "Completed" in white bg */
    font-weight: bold;
    text-align: center;
}

.total-summary-bar {
    background-color: #ffff00;
    color: red;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.credit-summary-box {
    float: right;
    width: 300px;
    margin-bottom: 20px;
}

.credit-summary-box table {
    width: 100%;
    border-collapse: collapse;
    font-weight: bold;
}

.credit-summary-box td {
    padding: 5px;
    text-align: right;
    border: 1px solid #ccc;
}

.subpart-credit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.subpart-credit-table th {
    background-color: #dcdcdc;
    padding: 8px;
    text-align: left;
    border: 1px solid #ccc;
    color: #003366;
}

.subpart-credit-table td {
    padding: 6px;
    border: 1px solid #ccc;
    background-color: activecaption;
}

.subpart-credit-table tr:nth-child(even) td {
    background-color: white;
    /* Alternating rows if needed, but image shows consistent white */
}

/* Specific alignment for marks table */
.exam-marks-table td:nth-child(3) {
    text-align: left;
}

/* Subject Description */
.exam-marks-table td:nth-child(1) {
    width: 5%;
}

/* Semester */
.exam-marks-table td:nth-child(2) {
    width: 10%;
}

/* Code */
.exam-marks-table td:nth-child(3) {
    width: 30%;
}

/* Desc */
.exam-marks-table td:nth-child(3) {
    width: 30%;
}

/* Online Payment Details Styling */
#online-payment-view {
    display: block;
}

#online-payment-view .subjects-container {
    width: 100%;
    overflow-x: auto;
}

.online-payment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.online-payment-table th,
.online-payment-table td {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    border-right: 1px solid #e0e0e0;
}

.online-payment-table th {
    background-color: #5b8dd3;
    color: white;
    font-weight: bold;
    border: 1px solid #7ea6da;
}

.online-payment-table td {
    background-color: white;
    color: black;
}

/* Specific column styling */
.online-payment-table th:nth-child(1),
.online-payment-table td:nth-child(1) {
    width: 5%;
}

/* Sl.No. */
.online-payment-table th:nth-child(2),
.online-payment-table td:nth-child(2) {
    width: 10%;
}

/* Receipt No. */
.online-payment-table th:nth-child(3),
.online-payment-table td:nth-child(3) {
    width: 10%;
}

/* Fee Type */
.online-payment-table th:nth-child(4),
.online-payment-table td:nth-child(4) {
    width: 10%;
}

/* Receipt Date */
.online-payment-table th:nth-child(5),
.online-payment-table td:nth-child(5) {
    width: 10%;
    text-align: right;
}

/* Receipt Amount */
.online-payment-table th:nth-child(6),
.online-payment-table td:nth-child(6) {
    width: 25%;
}

/* Payment Mode */
.online-payment-table th:nth-child(7),
.online-payment-table td:nth-child(7) {
    width: 30%;
}

/* Status */
/* Last column removed as per request */

/* Leave Application View Styling */
#leave-application-view {
    display: block;
}

#leave-application-view .subjects-container {
    width: 100%;
}

.leave-form-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.leave-form-table td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.leave-form-table td:first-child {
    width: 30%;
    background-color: white;
    /* Labels background */
    font-weight: normal;
    /* Labels are not bold in image */
    color: black;
    border-right: 1px solid #e0e0e0;
}

.leave-form-table td:last-child {
    width: 70%;
    background-color: white;
}

/* Form Inputs */
.leave-select {
    width: 200px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.leave-input-date {
    width: 100px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    display: inline-block;
}

.calendar-icon {
    width: 20px;
    vertical-align: middle;
    margin-left: 5px;
    cursor: pointer;
}

.leave-input-text {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    /* Ensure padding doesn't overflow width */
}

.leave-textarea {
    width: 100%;
    height: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    resize: vertical;
    box-sizing: border-box;
}

.print-btn-container {
    text-align: center;
    margin-top: 20px;
}

.print-btn {
    background-color: #f44336;
    /* Red color */
    color: white;
    padding: 8px 30px;
    border: none;
    border-radius: 4px;
    /* Rounded corners */
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
}



/* Hour Wise Attendance View */
#hour-attendance-view {
    display: block;
    height: 100%;
    /* Important for scrolling */
    overflow: hidden;
    /* Main view hidden, inner scroll */
}

.hour-attendance-container {
    display: flex;
    height: 100%;
    gap: 10px;
}

.ha-left-panel {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 11px;
}

.ha-right-panel {
    width: 65%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow: hidden;
}

.ha-chart-box {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: white;
    text-align: center;
    height: 250px;
    /* Placeholder for chart */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Mock Pie Chart */
.ha-pie-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    /* 76% Present (Blue), 24% Absent (Orange) */
    background: conic-gradient(#5bc0de 0% 76%, #e67e22 76% 100%);
    margin: 0 auto;
    position: relative;
}

.ha-pie-chart::before {
    content: "24%";
    position: absolute;
    top: 30%;
    left: 25%;
    transform: translate(-50%, -50%);
    color: #5d4037;
    /* Darker contrast for orange bg */
    font-size: 12px;
    font-weight: bold;
}

.ha-pie-chart::after {
    content: "76%";
    position: absolute;
    top: 60%;
    left: 65%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

.ha-stats-table {
    width: 100%;
    border-collapse: collapse;
}

.ha-stats-table td {
    padding: 5px;
}

.ha-stats-table td:first-child {
    font-weight: bold;
    color: #555;
    vertical-align: top;
}

.ha-stats-table td:last-child {
    font-weight: bold;
    text-align: right;
    color: #333;
    font-size: 12px;
}

.ha-status-bar {
    background-color: #ffff00;
    color: red;
    font-weight: bold;
    text-align: center;
    padding: 5px;
    margin-top: 5px;
    border: 1px solid #ccc;
}

.ha-legends {
    font-size: 10px;
    line-height: 1.4;
    color: #333;
    background-color: white;
    padding: 5px;
}

/* Right Panel Scroll Table */
.ha-scroll-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: white;
    position: relative;
}

.ha-table {
    width: 100%;
    border-collapse: separate;
    /* For rounded corners/spacing if needed, but standard collapse is fine */
    border-spacing: 2px;
    font-size: 11px;
    table-layout: fixed;
}

.ha-table th {
    background-color: #337ab7;
    /* Bootstrap primary blue approx */
    color: white;
    padding: 8px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.ha-table td {
    padding: 5px;
    text-align: center;
    height: 25px;
    border-bottom: 2px solid white;
    /* Space between rows */
}

.ha-date-cell {
    background-color: #337ab7;
    color: white;
    font-weight: bold;
    text-align: left !important;
    padding-left: 10px !important;
}

/* Status Cells */
.status-p {
    background-color: #dcebf7;
    /* Light Blue */
    color: #337ab7;
    font-weight: bold;
    border-right: 2px solid white;
}

.status-a {
    background-color: #f2dede;
    /* Light Red */
    color: #a94442;
    font-weight: bold;
    border-right: 2px solid white;
}

.status-sl {
    background-color: #dcebf7;
    /* Same as Present usually or distinct? Image has SL in light blue */
    color: #337ab7;
    font-weight: bold;
    border-right: 2px solid white;
}

/* Empty cell handling */
.status-empty {
    background-color: white;
}

/* Life Skill Table - Mini Table */
.ha-mini-table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
    margin-bottom: 5px;
}

.ha-mini-table th {
    background-color: #337ab7;
    color: white;
    text-align: left;
    padding: 5px;
}

.ha-mini-table td {
    padding: 5px;
    border: 1px solid #ccc;
    background-color: #dcebf7;
    text-align: center;
}

.ha-mini-table tr:last-child td {
    background-color: #f2dede;
    /* Absent row */
    color: #a94442;
}

#login-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.login-header {
    background-color: #003366;
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid white;
}

.login-header img {
    height: 240px;
    /* Increased by x3 from 80px */
}

.login-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}

.login-box {
    width: 600px;
    background-color: white;
    /* border: 1px solid #ccc; */
}

.login-box-header {
    background-color: #003366;
    color: white;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px 5px 0 0;
}

.login-form {
    padding: 20px;
}

.login-row {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.login-label {
    width: 150px;
    text-align: right;
    padding-right: 20px;
    font-weight: bold;
    color: #003366;
    font-size: 13px;
}

.login-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    background-color: #e8f0fe;
    /* Light blue input bg */
    border-radius: 3px;
}

.captcha-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    font-weight: bold;
    color: #555;
    letter-spacing: 3px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="30"><line x1="0" y1="0" x2="100" y2="30" stroke="gray" opacity="0.2" /><line x1="0" y1="30" x2="100" y2="0" stroke="gray" opacity="0.2" /></svg>');
    /* Simple noise */
    padding: 5px 10px;
    border: 1px dashed #ccc;
    display: inline-block;
    margin-right: 10px;
    user-select: none;
}

.login-btn {
    width: 100%;
    background-color: #d9534f;
    /* Bootstrap danger red approx */
    color: white;
    padding: 10px;
    border: 1px solid #d43f3a;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.login-btn:hover {
    background-color: #c9302c;
}

.login-note {
    background-color: #d9edf7;
    color: #31708f;
    padding: 15px;
    font-size: 12px;
    font-weight: bold;
    border-top: 1px solid #bce8f1;
    border-bottom: 1px solid #bce8f1;
    margin-top: auto;
    /* Push to bottom if flex container surrounds it, or just margin */
}

.login-footer {
    background-color: #003366;
    color: white;
    padding: 5px 15px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

/* Mobile Responsiveness for Subjects and Attendance */
@media screen and (max-width: 768px) {

    /* Keep Hour Wise Attendance Side-by-Side as per screenshot */
    .hour-attendance-container {
        flex-direction: row;
        /* Force Row */
        gap: 5px;
        overflow-x: hidden;
    }

    .ha-left-panel {
        width: 130px;
        /* Fixed small width for chart */
        flex-shrink: 0;
    }

    .ha-right-panel {
        flex: 1;
        /* Take remaining space */
        min-width: 0;
        overflow-x: auto;
        /* Scroll table */
    }

    .ha-chart-box {
        height: auto;
        padding: 2px;
    }

    /* Shrink Chart for Mobile */
    .ha-pie-chart {
        width: 80px;
        height: 80px;
        margin-top: 5px;
    }

    .ha-pie-chart::after {
        font-size: 10px;
    }

    /* Scrollable Tables General */
    .subjects-container {
        overflow-x: auto;
        width: 100%;
    }

    /* Force tables to be wide enough to be readable, triggering scroll */
    .subjects-table,
    .internal-marks-table,
    .exam-mark-details-table,
    .fee-details-table,
    .fee-due-table,
    .exam-timetable-table,
    .od-table {
        min-width: 500px;
    }

    .ha-table {
        min-width: 400px;
        /* Ensure attendance table scrolls */
    }

    .subjects-table td,
    .subjects-table th {
        padding: 4px;
        font-size: 10px;
    }

    /* Login Page Mobile */
    #login-page {
        width: 100%;
        height: 100vh;
    }

    .login-box {
        width: 90%;
        max-width: 320px;
    }

    /* Online Exam Results Responsive */
    #online-results-view .student-info-table,
    #online-results-view .results-table {
        min-width: 600px;
        /* Force scroll */
    }

    #online-results-view .result-header .college-name {
        font-size: 16px;
    }

    #online-results-view .result-header .college-loc {
        font-size: 10px;
    }

    /* Online Payment Details Responsive (if table exists) */
    #online-payment-view table {
        display: block;
        overflow-x: auto;
        min-width: 100%;
    }

    #online-payment-view table th,
    #online-payment-view table td {
        white-space: nowrap;
        padding: 5px;
    }
}