* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #172033;
}

.page {
  min-height: 100vh;
  padding: 28px 18px;
}

.hero {
  max-width: 900px;
  margin: 0 auto 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7a5a12;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 36px;
}

.subtitle {
  margin: 10px auto 0;
  max-width: 540px;
  color: #667085;
  line-height: 1.5;
}

.subtitle-left {
  margin: 8px 0 0;
  color: #667085;
  line-height: 1.5;
}

.launcher {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.app-card {
  border: 1px solid #e6e8ee;
  background: #ffffff;
  border-radius: 22px;
  padding: 26px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.07);
  transition: 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: #c9a227;
}

.icon {
  font-size: 34px;
}

.app-card h2 {
  margin: 16px 0 8px;
}

.app-card p {
  margin: 0;
  color: #667085;
}

.section-header {
  max-width: 1100px;
  margin: 0 auto 16px;
  background: #ffffff;
  border: 1px solid #e6e8ee;
  border-radius: 22px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

.back-btn {
  border: none;
  background: #f2f4f7;
  color: #1d2939;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.module-actions {
  max-width: 1100px;
  margin: 0 auto 16px;
  display: flex;
  gap: 12px;
}

.primary-action,
.secondary-action {
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
}

.primary-action {
  background: #1d2939;
  color: #ffffff;
}

.secondary-action {
  background: #c9a227;
  color: #111827;
}

.table-card {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e6e8ee;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

.table-title {
  margin-bottom: 14px;
}

.table-title h2 {
  margin: 0;
}

.table-title p {
  margin: 5px 0 0;
  color: #667085;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #eaecf0;
  padding: 12px;
  text-align: left;
  font-size: 14px;
}

th {
  background: #f9fafb;
  color: #344054;
}

td {
  color: #475467;
}

.empty {
  text-align: center;
  color: #98a2b3;
  padding: 22px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  padding: 18px;
  overflow-y: auto;
  z-index: 10;
}

.modal.show {
  display: block;
}

.modal-box {
  max-width: 850px;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e6e8ee;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.modal-header h2 {
  margin: 0;
}

.close-btn {
  border: none;
  background: #f2f4f7;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 12px;
  align-items: center;
}

label {
  font-weight: 700;
  color: #344054;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  color: #172033;
  background: white;
}

input[readonly] {
  background: #f2f4f7;
  color: #475467;
  font-weight: 700;
  cursor: not-allowed;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.submit-btn {
  margin-top: 22px;
  width: 100%;
  border: none;
  border-radius: 14px;
  background: #1d2939;
  color: white;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
}

.submit-btn:hover,
.primary-action:hover {
  background: #111827;
}

.secondary-action:hover {
  background: #b8921f;
}

.message {
  margin: 14px 0 0;
  font-weight: 700;
}

.message.success {
  color: #027a48;
}

.message.error {
  color: #b42318;
}

@media (max-width: 700px) {
  h1 {
    font-size: 30px;
  }

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

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

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

  label {
    margin-top: 6px;
  }

  .modal-box {
    margin: 10px auto;
    padding: 18px;
  }
}

.mini-action {
  border: none;
  border-radius: 10px;
  background: #1d2939;
  color: white;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.mini-action:hover {
  background: #111827;
}

.disabled-action {
  background: #98a2b3 !important;
  cursor: not-allowed;
  color: white;
}

.admitted-row {
  background: #f9fafb;
  opacity: 0.72;
}

.small-muted {
  margin-top: 5px;
  font-size: 12px;
  color: #667085;
}

.filter-row {
  max-width: 1100px;
  margin: 0 auto 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid #d0d5dd;
  background: #ffffff;
  color: #344054;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.active {
  background: #1d2939;
  color: #ffffff;
  border-color: #1d2939;
}

.status-pill {
  border: none;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.status-in-class {
  background: #dcfae6;
  color: #027a48;
}

.status-left {
  background: #fee4e2;
  color: #b42318;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-danger-action {
  border: none;
  border-radius: 10px;
  background: #b42318;
  color: white;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.mini-danger-action:hover {
  background: #7a271a;
}
.status-on-leave {
  background: #fef0c7;
  color: #b54708;
}


.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f5f7fb;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border: 1px solid #e6e8ee;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.12);
}

.login-card h1 {
  margin-bottom: 8px;
}

.login-form {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.top-bar {
  max-width: 900px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logout-btn {
  border: none;
  background: #fee4e2;
  color: #b42318;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.logout-btn:hover {
  background: #fecdca;
}