html, body {
    height: 100%;
    margin: 0;
}


.details-table input,
.details-table select,
.details-table textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.details-table {
    table-layout: fixed;
}


.page {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* DEFAULT */
#divmain {
    flex: 1;
    background: #f4f6f9;
    overflow: auto;
}

/* LOGIN MODE – FORCE CENTERING */
#divmain.centered {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
}


/* ===== COLORED LIGHT SIDEBAR ===== */
#divmenu {
    width: 7cm;
    background: linear-gradient(180deg, #eaf2ff, #f5f9ff);
    color: #1f2937;
    padding: 22px 16px;
    box-sizing: border-box;

    display: none;                 /* hidden on login */
    flex-direction: column;

    border-right: 1px solid #dbeafe;
}

.login-card h2 {
    color: #2f2c7e;   
    font-weight: 700;
}


.login-card h3 {
    color: #f58220;   
    font-weight: 600;
}


/* Menu title */
.menu-title 
{
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 26px;
    padding-bottom: 12px;
    color: #1e40af;
    border-bottom: 2px solid #bfdbfe;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Menu list */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Menu item */
.menu-list li {
    padding: 13px 14px;
    margin-bottom: 8px;

    font-size: 14.5px;
    font-weight: 500;

    border-radius: 10px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;   /* ← THIS fixes it */

    background: #ffffff;
    color: #1f2937;

    box-shadow: 0 1px 3px rgba(0,0,0,0.08);

    transition:
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* Hover */
.menu-list li:hover {
    background: #dbeafe;
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(37,99,235,0.25);
    color: #1e40af;
}

/* Active */
.menu-list li.active {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(37,99,235,0.35);
}

.student-details {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 28px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 22px;
    color: #1e3a8a;
}

/* TABLE WITHOUT BORDERS */
.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr {
    height: 44px;
}

.details-table td {
    vertical-align: top;
    padding: 6px 8px;
}
.details-table .label {
    width: 30%;
}

.details-table .value {
    width: 70%;
}


.details-table .locked{
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  outline: none;
}
.details-table .locked:read-only{
  cursor: not-allowed;
}


.options-section {
    display: block;
    width: 100%;
}

.options-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
}

.marks-section {
    max-width: 800px;
}

.row {
    margin-bottom: 12px;
}

.row label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.row input {
    width: 100%;
    padding: 6px;
}

.marks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.marks-grid input {
    width: 100%;
    margin-top: 4px;
}

button {
    margin-top: 15px;
    padding: 8px 16px;
    background: #1f4fa3;
    color: #fff;
    border: none;
    cursor: pointer;
}
#btsave {
    padding: 6px 14px;
    font-size: 14px;
    width: auto;
    height: auto;
}

.table-heading {
    text-align: center;
    margin: 15px 0 8px 0;
    font-weight: bold;
    text-transform: uppercase;
}

.center {
    text-align: center;
}




.student-details-wrapper {
    display: flex;
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 24px;
    justify-content: flex-start;
    align-items: flex-start;
}

.student-details-wrapper,
.student-details {
    overflow-x: hidden;
}



/* STUDENT DETAILS — BIGGER + LEFT ALIGNED */
.student-details-wrapper .details-table {
    flex: 1 1 auto;            /* allow growth */
    min-width: 60%;            /* force wider presence */
    max-width: none;
    margin: 0;                 /* no auto-centering */
}



.student-details-wrapper .options-table {
    flex: 0 0 60%;
    margin: 0;
}
.student-details-wrapper .details-table,
.student-details-wrapper .options-table {
    flex: 1 1 50%;
    max-width: 50%;
    width: 50%;
    background: #ffffff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin: 0;
}





.details-table td:first-child,
.options-table td:first-child,
.options-table th:first-child {
    width: 35%;
    font-weight: 600;
    white-space: nowrap;
}

.details-table td:last-child,
.options-table td:last-child,
.options-table th:last-child {
    width: 65%;
}


.options-table th,
.options-table td {
    text-align: center;
    vertical-align: middle;
}


/* BORDERED OPTIONS TABLE */
.options-table.bordered {
    border-collapse: collapse;
    width: 100%;
}

.options-table.bordered th,
.options-table.bordered td {
    border: 1px solid #d1d5db;   /* clean light gray */
    padding: 10px 12px;
    text-align: center;
    vertical-align: middle;
}

/* Header styling */
.options-table.bordered thead th {
    background: #f1f5f9;
    font-weight: 700;
    color: #1f2937;
}

/* Row hover (professional touch) */
.options-table.bordered tbody tr:hover {
    background: #f8fafc;
}
.marks-box {
    box-sizing: border-box;
    max-width: 900px;
    width: 100%;
}


.marks-box {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}



/* Optional: title cleanup */
.section-title {
    font-family: Verdana, sans-serif;
    font-size: 15px;
    color: maroon;
    display: block;
    margin-bottom: 12px;
}


.section-heading {
    margin: 24px 0 10px;
    font-size: 16px;
    font-weight: 600;
	color: #7a1f1f;
	border-left: 4px solid #7a1f1f;
    padding-left: 10px;
}

.menu-logo {
    text-align: center;
    margin-bottom: 14px;
}

.menu-logo img {
    max-width: 200px;      
    height: auto;
}
.options-table caption,
.options-caption {
    caption-side: top;
    display: table-caption;
    text-align: left;

    font-size: 16px;
    font-weight: 600;
    color: #7a1f1f;

    padding-bottom: 10px;
    margin-bottom: 10px;

    border-left: 4px solid #7a1f1f;
    padding-left: 10px;
    margin-top: 20px;
}

.rank-table {
    border-collapse: collapse;
    font-size: 15px;
}

.rank-table td {
    border: 1px solid #8b5a2b; /* brown border */
    padding: 8px 10px;
}

.rank-table .label {
    font-weight: 600;
    width: 130px;
}

.rank-table .colon {
    width: 15px;
    text-align: center;
    font-weight: 600;
}

.rank-table .value {
    font-weight: 700;      /* bold */
    color: #8b5a2b;  
    text-align: center;
          /* brown */
}

#plustwomarktable {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
#plustwomarktable input,
#plustwomarktable select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}


#divmenu {
    display: none;   
}


