/* ==============================================================================
   Admin Dashboard & Login Portal - Pempek Palembang Ayuk Nina
   ============================================================================== */

/* 1. Login Screen Layout */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(circle at 50% 25%, #fef3c7 0%, #faf7f2 65%, #f1ebe1 100%);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-card {
  max-width: 440px;
  width: 100%;
  background: #ffffff;
  padding: 38px 32px;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(39, 16, 3, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1.5px solid #f1ece4;
  position: relative;
  box-sizing: border-box;
}

.login-header {
  text-align: center;
  margin-bottom: 26px;
}

.login-logo {
  height: 54px;
  width: auto;
  margin: 0 auto 14px;
  display: block;
}

.login-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #1c110b;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

/* Form Elements */
.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.form-input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.95rem;
  color: #0f172a;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: #d97706;
  outline: none;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
  background: #fffdfa;
}

.form-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Captcha Box */
.captcha-container {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.captcha-box-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-display {
  flex-grow: 1;
  background: #1c110b;
  color: #fde68a;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', monospace, sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-align: center;
  user-select: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  border: 1.5px solid #d97706;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.btn-reload-captcha {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn-reload-captcha:hover {
  background: #f8fafc;
  border-color: #991b1b;
  color: #991b1b;
}

.captcha-input {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Submit Button */
.btn-login-submit {
  width: 100%;
  margin-top: 14px;
  padding: 14px 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(185, 28, 28, 0.28);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(185, 28, 28, 0.38);
  background: linear-gradient(135deg, #991b1b 0%, #6b1515 100%);
}

.login-back-link {
  display: block;
  text-align: center;
  margin-top: 22px;
  font-size: 0.85rem;
  color: #991b1b;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-back-link:hover {
  color: #7f1d1d;
  text-decoration: underline;
}

/* 2. Admin Dashboard Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

.admin-sidebar {
  width: 260px;
  background: #1e1b18;
  color: #f1ede4;
  padding: 30px 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.admin-content {
  flex-grow: 1;
  padding: 36px 40px;
  overflow-x: auto;
}

.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-card .title {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .val {
  font-size: 1.8rem;
  font-weight: 900;
  color: #1e293b;
  margin-top: 6px;
}

.table-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  padding: 24px;
  margin-bottom: 30px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1.5px solid #e2e8f0;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.badge-status {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-block;
  letter-spacing: 0.3px;
}

.badge-baru { background: #dbeafe; color: #1e40af; }
.badge-diproses { background: #fef3c7; color: #b45309; }
.badge-selesai { background: #dcfce7; color: #15803d; }
.badge-dibatalkan { background: #fee2e2; color: #991b1b; }

@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
  .admin-content {
    padding: 20px;
  }
}
