.page-title {
  color: #0d47a1;
  margin-bottom: 20px;
}

.action-bar {
  background: white;
  padding: 15px;
  border-radius: 14px;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  background: #1565c0;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.btn.danger {
  background: #d32f2f;
}

.btn.success {
  background: #2e7d32;
}

/* ATTENDANCE SUMMARY CARDS */

.present-card {
  border-left: 6px solid #2e7d32;
}

.absent-card {
  border-left: 6px solid #d32f2f;
}

.leave-card {
  border-left: 6px solid #f57c00;
}

/* ATTENDANCE ROW COLORS */

.attendance-row.present {
  background: #f1fff4;
}

.attendance-row.absent {
  background: #fff1f1;
}

.attendance-row.leave {
  background: #fff8ec;
}

/* COMPACT ATTENDANCE TABLE */

.compact-table-card {
  padding: 0;
}

.compact-attendance-table {
  min-width: 520px;
}

.compact-attendance-table th,
.compact-attendance-table td {
  padding: 9px 10px;
  font-size: 14px;
}

/* FREEZE ROLL NUMBER COLUMN */

.attendance-table .sticky-roll {
  position: sticky;
  left: 0;
  z-index: 2;
  background: inherit;
}

.attendance-table thead .sticky-roll {
  background: #0d47a1;
  color: white;
  z-index: 3;
}

.attendance-row.present .sticky-roll {
  background: #f1fff4;
}

.attendance-row.absent .sticky-roll {
  background: #fff1f1;
}

.attendance-row.leave .sticky-roll {
  background: #fff8ec;
}

/* MODERN STATUS TAP BUTTON */

.status-tap-btn {
  border: none;
  min-width: 120px;
  padding: 14px 18px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.2s ease;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.18),
    0 4px 10px rgba(0,0,0,0.12);
}

.status-tap-btn.present {
  background: linear-gradient(180deg, #43a047, #2e7d32);
}

.status-tap-btn.absent {
  background: linear-gradient(180deg, #ef5350, #d32f2f);
}

.status-tap-btn.leave {
  background: linear-gradient(180deg, #ffb74d, #f57c00);
  color: white;
}

.status-tap-btn:active {
  transform: scale(0.96);
}

.status-tap-btn:hover {
  opacity: 0.96;
}

/* BOTTOM SAVE BUTTON */

.bottom-save-bar {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.bottom-save-btn {
  width: 100%;
  max-width: 420px;
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
}

/* MOBILE */

@media(max-width:768px) {
  .status-tap-btn {
    min-width: 95px;
    padding: 11px 14px;
    font-size: 12px;
  }

  .compact-attendance-table th,
  .compact-attendance-table td {
    padding: 8px;
    font-size: 13px;
  }
}
/* =====================================
   ADMISSIONS MODULE
===================================== */

.pending-card {
  border-left: 6px solid #f57c00;
}

.approved-card {
  border-left: 6px solid #2e7d32;
}

.rejected-card {
  border-left: 6px solid #d32f2f;
}

.admissions-table {
  min-width: 950px;
}

.admission-row.pending {
  background: #fff8ec;
}

.admission-row.approved {
  background: #f1fff4;
}

.admission-row.rejected {
  background: #fff1f1;
}

.admission-status {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.admission-status.pending {
  background: #f57c00;
}

.admission-status.approved {
  background: #2e7d32;
}

.admission-status.rejected {
  background: #d32f2f;
}

.admission-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-btn {
  border: none;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
}

.mini-btn.pending {
  background: #f57c00;
}

.mini-btn.approved {
  background: #2e7d32;
}

.mini-btn.rejected {
  background: #d32f2f;
}
/* =====================================
   ONLINE ADMISSION FORM
===================================== */

.admission-form-card {
  background: white;
  padding: 26px;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.admission-form-card label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 700;
}

.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.group-btn {
  border: 2px solid #dce3ee;
  background: white;
  padding: 18px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.group-btn.active {
  background: #0d47a1;
  color: white;
  border-color: #0d47a1;
}

.subject-chip-box {
  border: 1px solid #dce3ee;
  padding: 18px;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subject-chip {
  border: 2px solid #1565c0;
  background: #eef5ff;
  color: #0d47a1;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.subject-chip.selected {
  background: #0d47a1;
  color: white;
}

.subject-chip.locked {
  background: #2e7d32;
  border-color: #2e7d32;
  color: white;
  cursor: not-allowed;
}

.color-0 { border-color: #f57c00; color: #9a4a00; background: #fff8ec; }
.color-1 { border-color: #1565c0; color: #0d47a1; background: #eef5ff; }
.color-2 { border-color: #00a878; color: #006b4f; background: #eafff8; }
.color-3 { border-color: #7b1fa2; color: #6a1b9a; background: #f7ecff; }
.color-4 { border-color: #d81b60; color: #c2185b; background: #fff0f6; }
.color-5 { border-color: #00897b; color: #00695c; background: #e8fffb; }

.selection-info {
  margin: 12px 0;
  color: #52657d;
  font-weight: 600;
}

.selected-box {
  background: #f4f7fb;
  padding: 16px;
  border-radius: 14px;
  margin: 18px 0;
}

.submit-application-btn {
  width: 100%;
  padding: 15px;
  font-size: 17px;
  border-radius: 12px;
}

@media(max-width:768px) {
  .form-two-col {
    grid-template-columns: 1fr;
  }

  .group-grid {
    grid-template-columns: 1fr 1fr;
  }

  .group-btn {
    font-size: 14px;
    padding: 14px;
  }

  .admission-form-card {
    padding: 16px;
  }
}
/* =====================================
   ADMIN PAGE
===================================== */

.admin-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0;
}

.admin-actions-grid .btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border-radius: 12px;
}
/* =====================================
   ACADEMIC CYCLE BUTTONS
===================================== */

.cycle-main-btn {
  width: 100%;
  padding: 18px;
  margin: 10px 0;
  font-size: 17px;
  font-weight: 900;
  border-radius: 14px;
}
/* Admission approval roll input */

.roll-input {
  width: 80px;
  padding: 8px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
}

.admission-status.fee_submitted,
.admission-status.approved_waiting_roll,
.admission-status.enrolled {
  background: #2e7d32;
}

.admission-row.fee_submitted,
.admission-row.approved_waiting_roll,
.admission-row.enrolled {
  background: #f1fff4;
}
/* =====================================
   TEACHER MARKS ENTRY
===================================== */

.teacher-marks-table {
  min-width: 620px;
}

.marks-input {
  width: 90px;
  padding: 10px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}

.marks-input:focus {
  border-color: #1565c0;
}

.admin-edited-star {
  color: #d32f2f;
  font-size: 20px;
  font-weight: 900;
  margin-left: 5px;
}
/* =====================================
   SUBJECT MARKS SETUP TABLE
===================================== */

.subject-marks-setup-table {
  min-width: 520px;
}

.subject-total-input,
.subject-passing-input {
  width: 110px;
  padding: 9px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
}
/* =====================================
   MARKS INPUT COLOR CODING
===================================== */

.marks-input.marks-pass {
  background: #f1fff4;
  border-color: #2e7d32;
  color: #2e7d32;
}

.marks-input.marks-fail {
  background: #fff1f1;
  border-color: #d32f2f;
  color: #d32f2f;
}

.marks-input.marks-absent {
  background: #fff8ec;
  border-color: #f57c00;
  color: #f57c00;
}

.marks-input.marks-empty {
  background: white;
}
/* =====================================
   ACTIVE TEST PANEL
===================================== */

.active-test-panel {
  background: white;
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.active-test-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
}

.active-label {
  font-size: 12px;
  font-weight: 900;
  color: #52657d;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.edit-active-btn {
  border: none;
  background: #eef5ff;
  color: #0d47a1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

.active-status-chip {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: white;
  margin-top: 12px;
}

.active-status-chip.active {
  background: #2e7d32;
}

.active-status-chip.completed {
  background: #d32f2f;
}

.active-status-chip.inactive {
  background: #777;
}

.active-subjects-box {
  margin-top: 18px;
}

.active-subjects-table {
  min-width: 420px;
}

/* =====================================
   SUBJECT CRITERIA CARD
===================================== */

.subject-criteria-card {
  background: #f4f7fb;
  padding: 16px;
  border-radius: 16px;
  margin-top: 16px;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.criteria-box {
  background: white;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
}

.criteria-box h3 {
  color: #0d47a1;
  font-size: 26px;
}

/* =====================================
   MARKS INPUT COLOR CODING
===================================== */

.marks-input.marks-pass {
  background: #f1fff4;
  border-color: #2e7d32;
  color: #2e7d32;
}

.marks-input.marks-fail {
  background: #fff1f1;
  border-color: #d32f2f;
  color: #d32f2f;
}

.marks-input.marks-absent {
  background: #fff8ec;
  border-color: #f57c00;
  color: #f57c00;
}

.marks-input.marks-empty {
  background: white;
}

/* =====================================
   MOBILE IMPROVEMENT
===================================== */

@media(max-width:768px) {
  .active-test-top {
    flex-direction: column;
  }

  .criteria-grid {
    grid-template-columns: 1fr 1fr;
  }

  .edit-active-btn {
    width: 40px;
    height: 40px;
  }
}
/* =====================================
   MARKS PORTAL UI
===================================== */

.active-test-panel {
  background: white;
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.active-test-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.active-label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #5f6f84;
}

.active-status-chip {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: white;
}

.active-status-chip.active {
  background: #2e7d32;
}

.active-status-chip.completed {
  background: #d32f2f;
}

.active-status-chip.inactive {
  background: #607d8b;
}

.active-test-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.criteria-box {
  background: #f4f7fb;
  padding: 16px;
  border-radius: 16px;
  text-align: center;
}

.criteria-box h3 {
  color: #0d47a1;
  font-size: 22px;
  margin-bottom: 4px;
}

.complete-test-line {
  margin-top: 18px;
}

.form-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.subject-marks-setup-table {
  min-width: 520px;
}

.subject-marks-setup-table td,
.subject-marks-setup-table th {
  padding: 10px;
}

.subject-total-input,
.subject-passing-input {
  width: 110px;
  padding: 10px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
}

.subject-passing-input {
  background: #f4f7fb;
}

.small-section-title {
  margin-bottom: 14px;
  color: #0d47a1;
}

.compact-action-bar {
  align-items: center;
}

/* =====================================
   MOBILE IMPROVEMENTS
===================================== */

@media(max-width:768px) {

  .active-test-top {
    flex-direction: column;
  }

  .active-test-meta-grid {
    grid-template-columns: 1fr;
  }

  .form-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .subject-total-input,
  .subject-passing-input {
    width: 90px;
    padding: 8px;
  }

  .criteria-box h3 {
    font-size: 18px;
  }
}
.teacher-marks-table {
  min-width: 620px;
}

.marks-input {
  width: 90px;
  padding: 10px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}

.admin-edited-star {
  color: #d32f2f;
  font-size: 20px;
  font-weight: 900;
  margin-left: 5px;
}

.marks-input.marks-pass {
  background: #f1fff4;
  border-color: #2e7d32;
  color: #2e7d32;
}

.marks-input.marks-fail {
  background: #fff1f1;
  border-color: #d32f2f;
  color: #d32f2f;
}

.marks-input.marks-absent {
  background: #fff8ec;
  border-color: #f57c00;
  color: #f57c00;
}

.marks-input.marks-empty {
  background: white;
}
.position-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.giant-result-wrapper {
  overflow-x: auto;
}

.giant-result-table {
  min-width: 1100px;
}

.result-cell {
  font-weight: 800;
  text-align: center;
}

.result-cell.pass {
  background: #f1fff4;
  color: #2e7d32;
}

.result-cell.fail,
.result-cell.missing {
  background: #fff1f1;
  color: #d32f2f;
}

.result-cell.absent {
  background: #fff8ec;
  color: #f57c00;
}

.result-cell.na {
  background: #f4f7fb;
  color: #777;
}

.giant-result-table .sticky-roll {
  position: sticky;
  left: 0;
  background: white;
  z-index: 3;
}

.giant-result-table .sticky-name {
  position: sticky;
  left: 70px;
  background: white;
  z-index: 3;
}

.giant-result-table thead .sticky-roll,
.giant-result-table thead .sticky-name {
  background: #0d47a1;
  color: white;
}
/* =====================================
   ADMISSION ENROLL / UNDO BUTTONS
===================================== */

.enroll-btn {
  background: #2e7d32;
}

.undo-enroll-btn {
  background: #d32f2f;
}

.roll-input:disabled {
  background: #f1f1f1;
  color: #777;
  cursor: not-allowed;
}
/* =====================================
   PROFESSIONAL HOMEPAGE
===================================== */

.homepage {
  max-width: 1250px;
}

.college-hero {
  background: linear-gradient(135deg, #0d47a1, #1565c0);
  color: white;
  border-radius: 24px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}

.hero-label,
.active-label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.hero-content h1 {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-text {
  font-size: 17px;
  line-height: 1.7;
  max-width: 680px;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 22px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.hero-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.hero-mini-stats div {
  background: rgba(255,255,255,0.16);
  padding: 14px;
  border-radius: 16px;
  text-align: center;
}

.hero-mini-stats strong {
  display: block;
  font-size: 24px;
}

.hero-mini-stats span {
  font-size: 12px;
  opacity: 0.9;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.home-stat-card {
  background: white;
  padding: 22px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.home-stat-card h3 {
  font-size: 30px;
  color: #0d47a1;
}

.home-section {
  margin: 42px 0;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  color: #0d47a1;
  font-size: 30px;
  margin-bottom: 6px;
}

.section-heading p {
  color: #52657d;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.program-home-card {
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  border-top: 5px solid #1565c0;
}

.program-home-card h3 {
  color: #0d47a1;
  margin-bottom: 10px;
}

.program-home-card p {
  line-height: 1.55;
  color: #333;
}

.program-warning {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff8ec;
  color: #f57c00;
  font-size: 12px;
  font-weight: 800;
}

.faculty-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.faculty-home-card {
  background: white;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.faculty-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef5ff;
  border: 4px solid #e3f2fd;
  margin-bottom: 12px;
}

.faculty-placeholder {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;
  margin: 0 auto 12px;
  border: 4px solid #e3f2fd;
}

.faculty-home-card h3 {
  color: #0d47a1;
  font-size: 16px;
  margin-bottom: 8px;
}

.faculty-home-card p {
  font-size: 13px;
  color: #52657d;
  margin-bottom: 5px;
}

.home-contact {
  background: white;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.home-contact h2 {
  color: #0d47a1;
  margin-bottom: 8px;
}

/* Mobile Homepage */
@media(max-width:768px) {
  .college-hero {
    grid-template-columns: 1fr;
    padding: 24px;
    border-radius: 18px;
  }

  .hero-content h1 {
    font-size: 27px;
  }

  .hero-text {
    font-size: 14px;
  }

  .hero-mini-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .home-stat-card {
    padding: 16px;
  }

  .home-stat-card h3 {
    font-size: 22px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .faculty-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media(max-width:430px) {
  .faculty-home-grid {
    grid-template-columns: 1fr;
  }

  .home-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* =====================================
   FACULTY MANAGEMENT
===================================== */

.faculty-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 12px;
}

.faculty-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.faculty-preview-box {
  margin-top: 20px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.faculty-preview {
  width: 140px;
  height: 140px;
  object-fit: cover;

  border-radius: 20px;

  border: 4px solid #e3f2fd;

  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.faculty-placeholder-big {
  width: 140px;
  height: 140px;

  border-radius: 20px;

  background: linear-gradient(
    135deg,
    #1565c0,
    #0d47a1
  );

  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  font-weight: 700;

  border: 4px solid #e3f2fd;
}

.faculty-management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 16px;
}

.faculty-management-card {
  background: white;

  border-radius: 18px;

  padding: 18px;

  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.faculty-management-card img {
  width: 90px;
  height: 90px;

  border-radius: 50%;

  object-fit: cover;

  display: block;

  margin: 0 auto 12px;
}

.faculty-management-card h3 {
  color: #0d47a1;
  margin-bottom: 6px;
}

.faculty-management-card p {
  margin-bottom: 6px;
}

.faculty-card-actions {
  margin-top: 14px;

  display: flex;
  gap: 8px;

  flex-wrap: wrap;
}
.home-program-list {
  padding-left: 18px;
  margin-top: 6px;
}

.home-program-list li {
  margin-bottom: 5px;
}