/* ================================
   🇮🇩 GLOBAL STYLE — MERAH PUTIH SOLID
================================ */
body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fffaf9;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Overlay pattern */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("/images/pattern-cubes.png");
  opacity: 0.08;
  z-index: -1;
}

/* ================================
   🌐 NAVBAR (HEADER) — MERAH SOLID
================================ */
.navbar {
  background: #b71c1c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar-brand,
.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-brand:hover {
  color: #ffeaea !important;
}

.navbar-toggler {
  border-color: #fff;
}
.navbar-toggler-icon {
  background-image: none;
}
.navbar-toggler-icon::before {
  content: "☰";
  color: #fff;
  font-size: 1.4rem;
}

/* 🔽 DROPDOWN MENU */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.dropdown-menu {
  background: #fffafa;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
  min-width: 200px;
  z-index: 999;
}

.dropdown-menu .dropdown-item {
  color: #b71c1c;
  padding: 10px 15px;
  transition: background 0.3s, color 0.3s;
}
.dropdown-menu .dropdown-item:hover {
  background: #ffebee;
  color: #d32f2f;
}

/* ================================
   🏫 HERO SECTION (HOME)
================================ */
.hero {
  position: relative;
  background: url("/images/school-bg.jpeg") no-repeat center center/cover;
  height: 100vh;
  color: #fff;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 0 10%;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(183, 28, 28, 0.8);
  z-index: 1;
}
.hero > div {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 3rem;
  font-weight: bold;
}
.hero p {
  font-size: 1.2rem;
  margin: 20px 0;
  max-width: 700px;
}
.hero .btn {
  background: #b71c1c;
  border: none;
  color: #fff;
  transition: transform 0.2s, background 0.3s;
}
.hero .btn:hover {
  background: #d32f2f;
  transform: translateY(-3px);
}

/* ================================
   👩‍🏫 HERO SISWA & GURU
================================ */
.hero-siswa, .hero-teacher {
  position: relative;
  background: url("/images/school-bg.jpeg") no-repeat center center/cover;
  height: 55vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-siswa::before,
.hero-teacher::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(183, 28, 28, 0.8);
  z-index: 1;
}
.hero-siswa > div,
.hero-teacher > div {
  position: relative;
  z-index: 2;
  animation: fadeInDown 1s ease;
}
.hero-siswa h1,
.hero-teacher h1 {
  font-size: 2.8rem;
  font-weight: bold;
}
.hero-siswa p,
.hero-teacher p {
  font-size: 1.2rem;
  margin-top: 10px;
}

/* ================================
   🧑‍🎓 TABEL SISWA
================================ */
.siswa-table {
  padding: 60px 0;
}
.siswa-table h2 {
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: #C1121F;
}
.siswa-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.siswa-table thead {
  background: #b71c1c;
  color: #fff;
}
.siswa-table th, .siswa-table td {
  padding: 12px 15px;
  text-align: center;
}
.siswa-table tbody tr:nth-child(even) {
  background: #ffebee;
}

/* ================================
   👩‍🏫 DATA GURU (KARTU)
================================ */
#guruList {
  margin-top: 20px;
}
.guru-card .card {
  border: none;
  border-radius: 15px;
  background: #fff;
  transition: all 0.4s ease;
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.guru-card .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.guru-card img {
  border: 4px solid #ffebee;
  margin-bottom: 15px;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.guru-card img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(183, 28, 28, 0.4);
}
.guru-card .card-body h5 {
  color: #b71c1c;
  font-size: 1.1rem;
  font-weight: bold;
}
.guru-card .card-body p {
  font-size: 0.95rem;
  margin: 5px 0;
  color: #444;
}

/* ================================
   🔍 SEARCH BAR GURU
================================ */
#searchGuru {
  border: 1px solid #b71c1c;
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 1rem;
  transition: all 0.3s;
}
#searchGuru:focus {
  outline: none;
  border: 1px solid #d32f2f;
  box-shadow: 0 0 8px rgba(211,47,47,0.5);
}

/* ================================
   📅 HERO JADWAL
================================ */
.hero-jadwal {
  position: relative;
  background: url("/images/school-bg.jpeg") no-repeat center center/cover;
  height: 55vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-jadwal::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(183, 28, 28, 0.8);
  z-index: 1;
}
.hero-jadwal > div {
  position: relative;
  z-index: 2;
  animation: fadeInDown 1s ease;
}
.hero-jadwal h1 {
  font-size: 2.8rem;
  font-weight: bold;
}
.hero-jadwal p {
  font-size: 1.2rem;
  margin-top: 10px;
}


/* ================================
   ⚙️ FOOTER — MERAH SOLID
================================ */
footer {
  background: #b71c1c;
  color: #fff;
  padding: 20px;
  text-align: center;
  letter-spacing: 0.5px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
footer a {
  color: #ffeaea;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* ================================
   ✨ ANIMATIONS
================================ */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}


/* ================================
   🛠️ ADMIN PANEL — FIX & ENHANCEMENT
================================ */

/* Wrapper utama admin agar tidak mepet navbar */
.admin-container {
  padding: 40px 20px;
}

/* Card form & card tabel */
.admin-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #ffffff;
}

/* Header card */
.admin-card-header {
  padding: 15px 20px;
  font-weight: 600;
  background: #b71c1c;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* Card body */
.admin-card-body {
  padding: 25px;
}

/* Form label */
.admin-form label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #b71c1c;
}

/* Form input */
.admin-form .form-control {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #d7d7d7;
  transition: 0.3s;
}

.admin-form .form-control:focus {
  border-color: #b71c1c;
  box-shadow: 0 0 6px rgba(183,28,28,0.4);
}

/* Tombol tambah */
.admin-btn-add {
  background: #b71c1c;
  border: none;
  padding: 10px 25px;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
}

.admin-btn-add:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}

/* TABEL */
.admin-table-wrapper {
  margin-top: 20px;
}

.admin-table table {
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.95rem;
  background: #fff;
}

.admin-table thead {
  background: #b71c1c;
  color: #fff;
}

.admin-table th {
  padding: 12px;
  font-weight: 600;
}

.admin-table td {
  padding: 10px;
  vertical-align: middle;
}

.admin-table tbody tr:nth-child(even) {
  background: #fff5f5;
}

/* Foto guru */
.admin-photo {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffebee;
}

/* Tombol hapus */
.btn-delete {
  background: #d32f2f;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  color: white;
  font-size: 0.85rem;
  transition: 0.3s;
}

.btn-delete:hover {
  background: #b71c1c;
}

/* Success alert */
.alert-success {
  background: #e8f5e9;
  border-left: 5px solid #43a047;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 500;
}

/* Fix container agar tidak terlalu melebar */
.container-admin-limit {
  max-width: 1100px;
  margin: auto;
}

/* ================================
   👩‍🏫 EDIT GURU — FORM & LAYOUT
================================ */

.edit-guru-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.edit-guru-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #b71c1c;
  margin-bottom: 25px;
  border-left: 6px solid #b71c1c;
  padding-left: 10px;
}

.edit-guru-form {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

/* FOTO GURU */
.edit-guru-photo-box {
  width: 260px;
  text-align: center;
}

.edit-guru-photo-box img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #ffebee;
  box-shadow: 0 4px 10px rgba(183, 28, 28, 0.2);
}

.edit-guru-photo-box input[type="file"] {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

/* FORM INPUTS */
.edit-guru-fields {
  flex: 1;
  min-width: 320px;
}

.edit-guru-fields .input-group {
  margin-bottom: 18px;
}

.edit-guru-fields label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #b71c1c;
}

.edit-guru-fields input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cfcfcf;
  font-size: 15px;
  transition: 0.2s;
}

.edit-guru-fields input:focus {
  border-color: #b71c1c;
  box-shadow: 0 0 6px rgba(183,28,28,0.4);
}

/* BUTTONS */
.edit-guru-btn-save {
  background: #b71c1c;
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
}

.edit-guru-btn-save:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}

.edit-guru-btn-back {
  background: #777;
  color: #fff;
  padding: 12px 25px;
  border-radius: 10px;
  margin-left: 10px;
  display: inline-block;
  text-decoration: none;
  transition: 0.3s;
}

.edit-guru-btn-back:hover {
  background: #5f5f5f;
}

/* RESPONSIVE FIX */
@media(max-width: 768px) {
  .edit-guru-form {
    flex-direction: column;
  }
  .edit-guru-photo-box {
    width: 100%;
  }
  .edit-guru-photo-box img {
    height: 300px;
  }
}

