* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0f172a;
  color: #e5e7eb
}

a {
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  position: sticky;
  top: 0;
  z-index: 9
}

.topbar-right {
  display: flex;
  gap: 12px;
  align-items: center
}

.muted {
  color: #94a3b8
}

.panel {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25)
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px
}

.panel-head h1,
.login-card h1 {
  margin: 0 0 8px 0
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center
}

.login-card {
  width: 100%;
  max-width: 440px
}

.form-grid {
  display: grid;
  gap: 16px
}

.form-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.form-2col .full {
  grid-column: 1 / -1
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #fff;
  outline: none
}

input:focus {
  border-color: #3b82f6
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 12px;
  background: #1f2937;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700
}

.btn-primary {
  background: #2563eb
}

.btn-secondary {
  background: #334155
}

.btn-warning {
  background: #d97706
}

.btn-danger {
  background: #dc2626
}

.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-weight: 700
}

.alert.success {
  background: #14532d
}

.alert.error {
  background: #7f1d1d
}

.search-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px
}

.search-bar input {
  flex: 1;
  min-width: 240px
}

.student-grid {
  /* display: grid; */
  /* grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); */
  gap: 18px
}

.student-card {
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px
}

.photo-box {
  height: 260px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.student-info {
  padding: 16px 16px 8px
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .08)
}

.row span {
  color: #94a3b8
}

.row strong {
  text-align: right
}

.card-actions {
  display: flex;
  gap: 10px;
  padding: 16px
}

.empty-box,
.helper-box,
.demo-box {
  background: #0f172a;
  border: 1px dashed rgba(255, 255, 255, .15);
  border-radius: 14px;
  padding: 16px;
  color: #cbd5e1
}

.photo-preview {
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, .08)
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.center {
  text-align: center
}

pre {
  padding: 16px;
  border-radius: 14px;
  background: #020617;
  color: #93c5fd;
  overflow: auto
}

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

  .topbar {
    padding: 12px 16px
  }

  .container {
    padding: 16px
  }

  .card-actions {
    flex-direction: column
  }
}

.student-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.student-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.student-right {
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* 
.student-info .row {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 10px;
}

.student-info .row span {
    font-size: 12px;
    margin-bottom: 4px;
}

.student-info .row strong {
    font-size: 16px;
} */

.photo-box {
    width: 100%;
    max-width: 200px;
    height: 240px;
    overflow: hidden;
    border-radius: 12px;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}