* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
}
body {
  background: #030a14;
  color: #f0faff;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Login Screen */
#login-screen {
  position: fixed;
  inset: 0;
  background: #030a14;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-box {
  background: rgba(0, 180, 220, 0.05);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(0, 200, 220, 0.12);
  text-align: center;
  width: 100%;
  max-width: 380px;
}
.login-box h2 {
  color: #00d4d4;
  margin-bottom: 20px;
  font-size: 24px;
}
.login-box input {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 212, 0.3);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  margin-bottom: 15px;
  outline: none;
  text-align: center;
  font-size: 15px;
}
.login-box button {
  width: 100%;
  padding: 14px;
  background: #00d4d4;
  border: none;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.2s, background 0.2s;
}
.login-box button:active {
  transform: scale(0.98);
}

/* Admin Layout */
#admin-dashboard {
  display: none;
  width: 100%;
  max-width: 900px;
  padding: 40px 20px;
}

header {
  border-bottom: 1px solid rgba(0, 212, 212, 0.2);
  padding-bottom: 20px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  font-size: 24px;
  color: #00d4d4;
}

.header-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-csv {
  background: rgba(0, 224, 160, 0.15);
  border: 1px solid rgba(0, 224, 160, 0.5);
  color: #00e0a0;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  transition: 0.2s;
}
.btn-csv:hover {
  background: rgba(0, 224, 160, 0.25);
}
.btn-out {
  background: transparent;
  border: 1px solid #ff5a5a;
  color: #ff5a5a;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  transition: 0.2s;
}
.btn-out:hover {
  background: rgba(255, 90, 90, 0.1);
}

/* Filter Bar Premium */
.filter-bar {
  gap: 15px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  width: 100%;
}
.f-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}
.f-item label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.f-item select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300D4D4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
.f-item select:hover {
  transform: translateY(-1px);
}
.f-item select option {
  background: #061020;
  color: #fff;
  font-weight: 500;
}

.l-kat {
  color: #00d4d4;
}
.s-kat {
  border-color: rgba(0, 212, 212, 0.3) !important;
}
.s-kat:focus {
  border-color: #00d4d4 !important;
  box-shadow: 0 0 15px rgba(0, 212, 212, 0.15) !important;
}
.l-prodi {
  color: #1a8fff;
}
.s-prodi {
  border-color: rgba(26, 143, 255, 0.3) !important;
}
.s-prodi:focus {
  border-color: #1a8fff !important;
  box-shadow: 0 0 15px rgba(26, 143, 255, 0.15) !important;
}
.l-status {
  color: #00e0a0;
}
.s-status {
  border-color: rgba(0, 224, 160, 0.3) !important;
}
.s-status:focus {
  border-color: #00e0a0 !important;
  box-shadow: 0 0 15px rgba(0, 224, 160, 0.15) !important;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: 0.2s;
}
.card:hover {
  border-color: rgba(0, 212, 212, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.c-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.c-title {
  font-weight: bold;
  font-size: 17px;
  color: #fff;
  line-height: 1.4;
}
.c-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.c-kat {
  font-size: 11px;
  background: rgba(0, 212, 212, 0.1);
  color: #00d4d4;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0, 212, 212, 0.3);
  font-weight: 600;
  display: inline-block;
}
.c-isi {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 8px;
}
.c-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.btn-edit {
  background: #005fd8;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  transition: background 0.2s;
}
.btn-edit:hover {
  background: #0070ff;
}
.btn-del {
  background: transparent;
  color: #ff5a5a;
  border: 1px solid #ff5a5a;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  transition: background 0.2s;
}
.btn-del:hover {
  background: rgba(255, 90, 90, 0.1);
}
.c-foot-btns {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Status Badges */
.badge {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  white-space: nowrap;
}
.bg-green {
  background: rgba(0, 224, 160, 0.12);
  color: #00e0a0;
  border: 1px solid rgba(0, 224, 160, 0.3);
}
.bg-orange {
  background: rgba(255, 157, 58, 0.12);
  color: #ff9d3a;
  border: 1px solid rgba(255, 157, 58, 0.3);
}
.bg-red {
  background: rgba(255, 90, 90, 0.12);
  color: #ff5a5a;
  border: 1px solid rgba(255, 90, 90, 0.3);
}

/* Modal Update */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
.modal-content {
  background: #061020;
  border: 1px solid rgba(0, 212, 212, 0.3);
  width: 100%;
  max-width: 450px;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.modal-content h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 20px;
}
.modal-content label {
  display: block;
  font-size: 12px;
  color: #00d4d4;
  margin-bottom: 8px;
  font-weight: bold;
}
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #030a14;
  color: #fff;
  outline: none;
  font-size: 14px;
}
.modal-content select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300D4D4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
.modal-content textarea {
  height: 110px;
  resize: vertical;
  line-height: 1.5;
}
.modal-content select:focus,
.modal-content textarea:focus {
  border-color: #00d4d4;
}

.btn-save {
  background: #00e0a0;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.btn-save:hover {
  background: #00ffb6;
}
.btn-cancel {
  background: transparent;
  color: #ff5a5a;
  border: 1px solid #ff5a5a;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-cancel:hover {
  background: rgba(255, 90, 90, 0.1);
}

#loading {
  text-align: center;
  color: #00d4d4;
  padding: 50px;
  display: none;
  font-weight: bold;
}

/* --- RESPONSIVE DESIGN (MOBILE FRIENDLY) --- */
@media (max-width: 768px) {
  #admin-dashboard {
    padding: 25px 15px;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 15px;
  }
  header h1 {
    font-size: 20px;
  }
  .header-btns {
    width: 100%;
    display: flex;
    gap: 10px;
  }
  .filter-bar {
    flex-direction: column;
    gap: 12px;
  }
  .f-item {
    width: 100%;
  }
  .f-item select {
    padding: 14px 16px;
    font-size: 15px;
  }
  .btn-csv,
  .btn-out {
    flex: 1;
    text-align: center;
    padding: 10px;
  }

  .c-head {
    flex-direction: column-reverse;
  }
  .badge {
    align-self: flex-start;
  }
  .c-title {
    font-size: 15px;
  }

  .c-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
  }
  .btn-edit,
  .btn-del {
    width: 100%;
    padding: 12px;
  }
  .c-foot-btns {
    width: 100%;
    display: flex;
    gap: 12px;
  }
}
