* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Tahoma", Arial, sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(45, 212, 191, 0.28), transparent 32%),
    radial-gradient(circle at 90% 25%, rgba(20, 184, 166, 0.16), transparent 18%),
    radial-gradient(circle at 10% 90%, rgba(37, 99, 235, 0.22), transparent 26%),
    linear-gradient(135deg, #020617 0%, #081326 48%, #031827 100%);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 35px 18px;
  position: relative;
}

.home {
  width: 100%;
  max-width: 760px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.logo {
  width: 230px;
  height: 230px;
  object-fit: contain;
  background: white;
  padding: 25px;
  border-radius: 32px;
  margin-bottom: 35px;
  box-shadow:
    0 0 35px rgba(45, 212, 191, 0.22),
    0 25px 65px rgba(0,0,0,0.45);
}

h1 {
  font-size: 76px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow: 0 12px 35px rgba(0,0,0,0.45);
}

.line {
  width: 95px;
  height: 5px;
  background: linear-gradient(90deg, #4f46e5, #22c55e);
  border-radius: 50px;
  margin: 0 auto 22px;
  box-shadow: 0 0 18px rgba(34,197,94,0.6);
}

.subtitle {
  color: #dbeafe;
  font-size: 26px;
  margin-bottom: 44px;
}

.card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    inset 0 0 40px rgba(255,255,255,0.03),
    0 35px 95px rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  border-radius: 34px;
  padding: 46px;
}

.login-btn {
  min-height: 135px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  text-decoration: none;
  color: white;
  padding: 28px 34px;
  border-radius: 20px;
  margin-bottom: 32px;
  transition: 0.3s;
  text-align: right;
  overflow: hidden;
  position: relative;
}

.login-btn:last-child {
  margin-bottom: 0;
}

.login-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.20), transparent 45%);
  pointer-events: none;
}

.login-btn span {
  display: block;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 12px;
}

.login-btn small {
  color: #dbeafe;
  font-size: 19px;
}

.student {
  background: linear-gradient(135deg, #2563eb, #312e81);
  border: 1px solid #60a5fa;
  box-shadow: 0 18px 40px rgba(37,99,235,0.35);
}

.supervisor {
  background: linear-gradient(135deg, #2dd4bf, #065f46);
  border: 1px solid #5eead4;
  box-shadow: 0 18px 40px rgba(45,212,191,0.28);
}

.icon {
  width: 95px;
  height: 95px;
  min-width: 95px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 42px;
  box-shadow: inset 0 0 25px rgba(255,255,255,0.10);
}

.login-btn:hover {
  transform: translateY(-6px) scale(1.015);
  filter: brightness(1.08);
}

.secure {
  margin-top: 30px;
  color: #dbeafe;
  font-size: 18px;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  z-index: 1;
}

.glow-1 {
  width: 260px;
  height: 260px;
  background: #14b8a6;
  top: 110px;
  right: 80px;
}

.glow-2 {
  width: 300px;
  height: 300px;
  background: #2563eb;
  bottom: 20px;
  left: 40px;
}

.wave {
  position: fixed;
  width: 520px;
  height: 260px;
  opacity: 0.28;
  z-index: 2;
  background-image:
    radial-gradient(circle, rgba(59,130,246,0.9) 1px, transparent 1px);
  background-size: 12px 12px;
  border-radius: 50%;
  filter: blur(0.2px);
}

.wave-left {
  left: -170px;
  top: 270px;
  transform: rotate(-12deg);
}

.wave-right {
  right: -180px;
  bottom: 180px;
  transform: rotate(12deg);
}

@media (max-width: 650px) {
  .logo {
    width: 160px;
    height: 160px;
  }

  h1 {
    font-size: 48px;
  }

  .subtitle {
    font-size: 20px;
  }

  .card {
    padding: 24px;
  }

  .login-btn {
    min-height: 115px;
    padding: 22px;
  }

  .login-btn span {
    font-size: 24px;
  }

  .login-btn small {
    font-size: 15px;
  }

  .icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    font-size: 32px;
  }
}
.form-page {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 5;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 17px;
}

.back-link:hover {
  color: white;
}

.form-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  border-radius: 30px;
  padding: 35px;
  text-align: center;
}

.form-logo {
  width: 115px;
  height: 115px;
  object-fit: contain;
  background: white;
  padding: 13px;
  border-radius: 22px;
  margin-bottom: 22px;
}

.form-card h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.form-card p {
  color: #cbd5e1;
  margin-bottom: 28px;
  font-size: 17px;
}

form input {
  width: 100%;
  padding: 17px;
  margin-bottom: 15px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.65);
  color: white;
  font-size: 17px;
  outline: none;
}

form input::placeholder {
  color: #94a3b8;
}

form input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

form button {
  width: 100%;
  padding: 17px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: white;
  font-size: 19px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}
.dashboard-page {
  width: 100%;
  max-width: 950px;
  position: relative;
  z-index: 5;
}

.dashboard-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  border-radius: 30px;
  padding: 35px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  align-items: center;
}

.dashboard-header h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

.dashboard-header p {
  color: #cbd5e1;
}

.count-box {
  min-width: 95px;
  min-height: 95px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 18px 40px rgba(34,197,94,0.25);
}

.count-box span {
  font-size: 32px;
  font-weight: bold;
}

.count-box small {
  color: #dbeafe;
}

.student-card {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  margin-bottom: 18px;
  overflow: hidden;
}

.student-name {
  width: 100%;
  background: transparent;
  color: white;
  border: none;
  padding: 20px;
  font-size: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.achievement-badge {
  background: linear-gradient(135deg, #22c55e, #2563eb);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 16px;
  box-shadow: 0 0 18px rgba(34,197,94,0.35);
}

.student-details {
  display: none;
  padding: 0 20px 22px;
  color: #dbeafe;
}

.student-details.show {
  display: block;
}

.student-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.achievement-open {
  margin-top: 15px;
  padding: 14px 22px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  color: white;
  font-size: 17px;
  cursor: pointer;
}

.achievement-box {
  display: none;
  margin-top: 18px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(94, 234, 212, 0.25);
}

.achievement-box.show {
  display: block;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.checkbox-grid label {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
}

.checkbox-grid input {
  display: none;
}

.checkbox-grid input:checked + span {
  background: linear-gradient(135deg, #22c55e, #2563eb);
  color: white;
}

.checkbox-grid span {
  display: block;
  padding: 10px;
  border-radius: 10px;
}

.save-achievement {
  margin-top: 20px;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.empty-message {
  color: #cbd5e1;
  text-align: center;
}

@media (max-width: 650px) {
  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }

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

  .checkbox-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.badge-zero {
  background: linear-gradient(135deg, #64748b, #334155);
}

.badge-low {
  background: linear-gradient(135deg, #22c55e, #2563eb);
}

.badge-cup {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.45);
}

.badge-king {
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #1f2937;
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.65);
}
.student-actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.back-students-btn {
  padding: 14px 22px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 17px;
  cursor: pointer;
}

.back-students-btn:hover {
  background: rgba(255,255,255,0.15);
}
.message-box {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 17px;
  text-align: center;
  font-weight: bold;
  animation: popMessage 0.25s ease;
}

.message-box.show {
  display: block;
}

.message-box.success {
  background: linear-gradient(135deg, rgba(34,197,94,0.22), rgba(20,184,166,0.18));
  color: #dcfce7;
  border: 1px solid rgba(34,197,94,0.55);
  box-shadow: 0 0 22px rgba(34,197,94,0.18);
}

.message-box.error {
  background: linear-gradient(135deg, rgba(239,68,68,0.22), rgba(190,18,60,0.18));
  color: #fee2e2;
  border: 1px solid rgba(248,113,113,0.55);
  box-shadow: 0 0 22px rgba(239,68,68,0.18);
}

@keyframes popMessage {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}   
.admin-stats {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.admin-form {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 30px;
}

.admin-form h3,
.section-title {
  margin-bottom: 18px;
  font-size: 24px;
}

.admin-row {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.admin-row strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.admin-row small {
  color: #cbd5e1;
}

.delete-btn {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: bold;
}

.delete-btn:hover {
  filter: brightness(1.1);
}

@media (max-width: 650px) {
  .admin-row {
    flex-direction: column;
    align-items: stretch;
  }
}
.student-score-box {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.absence-badge {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 0 18px rgba(0,0,0,0.22);
}

.absence-zero {
  background: linear-gradient(135deg, #64748b, #334155);
  color: white;
}

.absence-low {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: white;
}

.absence-mid {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: white;
}

.absence-high {
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: white;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.45);
}

.attendance-open {
  margin-top: 15px;
  padding: 14px 22px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: white;
  font-size: 17px;
  cursor: pointer;
}

.save-absence {
  margin-top: 20px;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.absence-grid input:checked + span {
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: white;
}
.logout-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 18px;
}

.logout-btn:hover {
  filter: brightness(1.1);
}
.shake {
  animation: shakeForm 0.42s ease;
}

@keyframes shakeForm {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.admin-login-message {
  background: linear-gradient(135deg, rgba(37,99,235,0.22), rgba(15,23,42,0.72));
  color: #dbeafe;
  border: 1px solid rgba(96,165,250,0.55);
  box-shadow: 0 0 24px rgba(37,99,235,0.22);
  line-height: 1.8;
}

.supervisor-message {
  line-height: 1.7;
}
.support-footer{
    margin-top:40px;
    display:flex;
    justify-content:center;
    padding:20px;
}

.support-card{
    width:100%;
    max-width:420px;
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.15);
    border-radius:18px;
    padding:18px;
    text-align:center;
    color:#fff;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.support-card h3{
    margin-bottom:12px;
    color:#4ade80;
}

.support-card p{
    font-size:14px;
    line-height:1.8;
    color:#d6d6d6;
}

.support-phone{
    margin-top:15px;
    font-size:22px;
    font-weight:bold;
    letter-spacing:1px;
    color:#ffffff;
}

.version{
    margin-top:15px;
    font-size:12px;
    color:#9ca3af;
}
@media (max-width: 700px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    display: block;
    min-height: 100vh;
    padding: 18px 12px;
  }

  .dashboard-page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .dashboard-card {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 22px 16px;
    border-radius: 26px;
  }

  .top-bar {
    width: 100%;
    max-width: 430px;
    margin: 0 auto 16px;
    display: flex;
    justify-content: flex-end;
  }

  .logout-btn {
    width: auto;
    min-width: 135px;
    margin: 0;
    padding: 12px 18px;
    font-size: 15px;
  }

  .dashboard-header {
    text-align: center;
    display: block;
  }

  .dashboard-header h2 {
    font-size: 34px;
    line-height: 1.4;
  }

  .count-box {
    width: 100%;
    max-width: 260px;
    margin: 22px auto;
  }

  .student-card {
    width: 100%;
    margin-bottom: 18px;
  }

  .student-name {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    text-align: right;
    padding: 18px;
  }

  .student-name > span:first-child {
    font-size: 22px;
    line-height: 1.5;
    word-break: break-word;
  }

  .student-score-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    min-width: 95px;
  }

  .achievement-badge,
  .absence-badge {
    font-size: 15px;
    padding: 8px 14px;
    min-width: 82px;
    text-align: center;
  }

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

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

  .student-actions button {
    width: 100%;
  }

  .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.checkbox-grid label {
  padding: 8px;
}

.checkbox-grid span {
  padding: 9px 0;
}
.checkbox-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.achievement-box {
  padding: 16px 10px;
}
}
.pages-row{

display:flex;

gap:10px;

margin-top:15px;

}

.pages-row input{

flex:1;

padding:12px;

border-radius:12px;

border:none;

}

.pages-list{

margin-top:18px;

display:flex;

flex-direction:column;

gap:10px;

}

.page-item{

display:flex;

justify-content:space-between;

align-items:center;

background:#1f2937;

padding:12px 15px;

border-radius:12px;

color:white;

}

.page-item button{

background:#ef4444;

border:none;

padding:7px 10px;

border-radius:8px;

color:white;

cursor:pointer;

}
.pages-badge {
  background: linear-gradient(135deg, #0ea5e9, #1e3a8a);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: bold;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pages-open,
.save-pages,
.add-page-btn {
  padding: 14px 22px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
  font-size: 17px;
  cursor: pointer;
}

.pages-hint {
  color: #cbd5e1;
  font-size: 15px;
  margin-bottom: 14px;
}

.pages-row {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.pages-row input {
  flex: 1;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.65);
  color: white;
  font-size: 16px;
}

.pages-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  padding: 12px 15px;
  border-radius: 12px;
  color: white;
}

.page-item button {
  background: #ef4444;
  border: none;
  padding: 7px 10px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

.save-pages {
  width: 100%;
  margin-top: 16px;
}

@media (max-width: 700px) {
  .pages-row {
    flex-direction: column;
  }

  .pages-open,
  .save-pages,
  .add-page-btn {
    width: 100%;
  }
}.student-status-labels {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.student-status-labels span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  background: rgba(255,255,255,0.12);
  color: white;
}

.admin-row.status-new {
  border: 1px solid rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.25);
}

.admin-row.status-danger {
  border: 1px solid rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.35);
}

.admin-row.status-good {
  border: 1px solid rgba(34, 197, 94, 0.75);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
}

.admin-row.status-gold {
  border: 1px solid rgba(250, 204, 21, 0.9);
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.35);
}

.admin-row.status-mid {
  border: 1px solid rgba(251, 146, 60, 0.8);
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.25);
}
.admin-filter-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.filter-card {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  cursor: pointer;
  text-align: center;
}

.filter-card span {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.filter-card strong {
  display: block;
  font-size: 24px;
}

.filter-card.active {
  border-color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}