/* 🌿 WARUNG KREASI ADMIN STYLE 🌿 */

/* ====== GLOBAL ====== */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, #fffaf2, #f0f8f3);
  margin: 0;
  padding: 0;
  color: #2d2d2d;
}

/* ====== LOGIN PAGE ====== */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #fdf6ec, #d5f0d2);
}

.login-box {
  background: #ffffff;
  padding: 45px 35px;
  border-radius: 16px;
  width: 360px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-align: center;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-box h2 {
  color: #2e7d32;
  font-weight: 700;
  margin-bottom: 5px;
}

.login-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  transition: 0.3s;
}

.login-box input:focus {
  border-color: #66bb6a;
  box-shadow: 0 0 5px rgba(102,187,106,0.4);
  outline: none;
}

.login-box button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #43a047, #66bb6a);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
}

.login-box button:hover {
  background: linear-gradient(90deg, #388e3c, #4caf50);
}

.error {
  background: #ffe6e6;
  color: #d32f2f;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ====== DASHBOARD ====== */
.admin-container {
  width: 90%;
  max-width: 1100px;
  margin: 50px auto;
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-left: 6px solid #81c784;
}

/* ====== HEADER ====== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 25px;
}

.admin-header h2 {
  color: #2e7d32;
  margin: 0;
}

.admin-user {
  font-size: 14px;
  color: #555;
}

.logout-btn {
  background: #c62828;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

.logout-btn:hover {
  background: #b71c1c;
}

/* ====== NAVIGATION ====== */
.admin-nav {
  margin-bottom: 25px;
  text-align: center;
}

.nav-btn {
  background: #66bb6a;
  color: white;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  margin: 0 5px;
  font-weight: 500;
  transition: 0.3s;
}

.nav-btn:hover {
  background: #43a047;
  transform: scale(1.05);
}

/* ====== TABLE ====== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 15px;
}

.data-table thead {
  background: #43a047;
  color: white;
}

.data-table th, .data-table td {
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.data-table tr:nth-child(even) {
  background: #f9fff8;
}

.data-table tr:hover {
  background: #e8f5e9;
}

/* ====== BUTTONS ====== */
.edit-btn {
  color: #2e7d32;
  font-weight: 500;
  text-decoration: none;
}

.edit-btn:hover {
  text-decoration: underline;
}

.delete-btn {
  color: #d32f2f;
  font-weight: 500;
  text-decoration: none;
}

.delete-btn:hover {
  text-decoration: underline;
}

/* ====== FORM ====== */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.admin-form input,
.admin-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: 0.3s;
}

.admin-form input:focus,
.admin-form textarea:focus {
  border-color: #66bb6a;
  outline: none;
  box-shadow: 0 0 5px rgba(102,187,106,0.4);
}

.admin-form button {
  width: 180px;
  background: linear-gradient(90deg, #43a047, #66bb6a);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.admin-form button:hover {
  background: linear-gradient(90deg, #388e3c, #4caf50);
  transform: scale(1.03);
}

/* ====== BACK BUTTON ====== */
.back-btn {
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
  color: #2e7d32;
  font-weight: 600;
}

.back-btn:hover {
  text-decoration: underline;
}

/* ====== FOOTER ====== */
.admin-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: #666;
}
