.siswa {
  padding: 20px;
  background: var(--light-color);
  margin-top: 4rem;
  max-width: 100%;
  margin: 4rem auto;
}

.guru .container{
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

.search-box {
  position: relative;
  width: 320px;
  margin: 0 auto 30px;
}

.search-box i {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #888;
  font-size: 14px;
}

.search-box input {
  width: 100%;
  padding: 12px 18px 12px 45px;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.search-box input:focus {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* Container */
.card-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

/* Card */
.card {
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.student-card {
  width: 280px;
  background: #ffffff;
  border-radius: 16px;
  text-decoration: none;
  color: #333;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.student-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Header */
.card-header {
  position: relative;
  background: linear-gradient(135deg, #4e73df, #1cc88a);
  height: 100px;
}

/* Avatar */
.card-header img {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  border: 4px solid white;
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  object-fit: cover;
  transition: all 0.3s ease;
}

/* Hover Effect */
.student-card:hover .card-header img {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.2);
}

/* Status Badge */
.status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 20px;
  color: #fff;
}

.status.active {
  background-color: #1cc88a;
}

/* Body */
.card-body {
  padding: 60px 20px 20px;
  text-align: center;
}

.card-body h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.class {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

/* Footer */
.card-footer {
  padding: 12px;
  text-align: center;
  background: #f8f9fc;
  font-size: 14px;
  font-weight: 500;
  color: #4e73df;
}

/* style modal add siswa */
.modalAddSiswa {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background: #fff;
    width: 400px;
    margin: 8% auto;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-submit {
    width: 100%;
    padding: 10px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-submit:hover {
    background: #45a049;
}

/* Animasi */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-10px);}
    to {opacity: 1; transform: translateY(0);}
}