/* ===== ADMIN BASE ===== */
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: #f4f6f9;
  color: #111;
   background-image: url('https://knfoods.com/wp-content/themes/knfoods/images/body-top-bg-min.jpg');
}
 
/* ===== HEADER ===== */
.admin-header {
  /* background: linear-gradient(90deg, #0c1524, #111c2f); */
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #fff;
  background: none;
}
 
.admin-header img {
  height: 42px;
}
 
.admin-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
 
/* ===== MAIN CARD ===== */
.admin-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
 
.admin-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
 
/* ===== TITLE ===== */
.admin-card h2 {
  margin: 0 0 20px;
  font-size: 22px;
}
 
/* ===== FILTER ===== */
.admin-filter {
  margin-bottom: 15px;
}
 
.admin-filter select {
  padding: 6px 10px;
}
 
/* ===== TABLE ===== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
 
.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}
 
.admin-table th {
  background: #f2f4f7;
  font-weight: 600;
}
 
.admin-table tr:hover {
  background: #fafafa;
}
 
/* ===== STATUS BADGES ===== */
.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}
 
.badge.pending {
  background: #ffc107;
  color: #000;
}
 
.badge.approved {
  background: #28a745;
  color: #fff;
}
 
.badge.rejected {
  background: #dc3545;
  color: #fff;
}
 
/* ===== ACTIONS ===== */
.action-select {
  padding: 6px;
}
 
.action-select:disabled {
  background: #eee;
  cursor: not-allowed;
}
 
.view-btn {
  margin-left: 8px;
  padding: 6px 14px;
  background: #5b5ef7;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}
button.btn-save {
 
  padding: 6px 14px;
  background: #5b5ef7;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  
}

.view-btn:hover {
  opacity: 0.9;
}
 
/* ===== PAGINATION ===== */
.pagination {
  margin-top: 20px;
  display: flex;
  gap: 6px;
  justify-content: center;
}
 
.pagination a {
  padding: 6px 12px;
  background: #e4e6eb;
  border-radius: 6px;
  text-decoration: none;
  color: #000;
}
 
.pagination a.active {
  background: #5b5ef7;
  color: #fff;
}
 
 
/* ===== LOGIN PAGE ===== */
.login-wrapper {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 30px 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
 
.login-card h2 {
  text-align: center;
  margin-bottom: 22px;
  font-size: 22px;
}
 
.login-group {
  margin-bottom: 16px;
}
 
.login-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}
 
.login-group input {
  width: 100%;
    padding-top: 12px;
      padding-bottom: 12px;
      padding-left: 12px;
  border-radius: 8px;
  border: 1px solid #cfd3dc;
  background: #eef4ff;
  font-size: 14px;
}
 
.login-group input:focus {
  outline: none;
  border-color: #5b5ef7;
  background: #fff;
}
 
.login-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: #4285f4;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
 
.login-btn:hover {
  opacity: 0.95;
}
 
.login-error {
  margin-top: 12px;
  color: #dc3545;
  font-size: 14px;
  text-align: center;
}
 
 
/* table css start  */
 
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
 
th, td {
  padding: 14px 12px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}
 
th {
  background: #f8fafc;
  text-align: left;
  font-weight: 600;
}
 
tr:hover {
  background: #f9fafb;
}
 
td.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
 
 
/* table css ends */
 
/* status badge css start  */
.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}
 
.badge.pending {
  background: #facc15;
  color: #000;
}
 
.badge.approved {
  background: #22c55e;
  color: #fff;
}
 
.badge.rejected {
  background: #ef4444;
  color: #fff;
}
/* status badge css end  */
 
.status-action {
  padding: 6px;
}
 
.btn-view {
  background: #6366f1;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}
 
 
 
/* pagination styling */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}
 
.pagination a {
  padding: 8px 12px;
  border-radius: 6px;
  background: #e5e7eb;
  text-decoration: none;
  color: #000;
}
 
.pagination a.active {
  background: #3b82f6;
  color: #fff;
}
 
 
/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
 
.modal-box {
  background: #fff;
  width: 420px;
  max-width: 90%;
  border-radius: 10px;
  padding: 0px;
}
 
.modal-box h3 {
  margin-bottom: 15px;
}
 
.modal-box p {
  margin: 6px 0;
  font-size: 14px;
}
 
.btn-close {
  margin-top: 15px;
  background: #6366f1;
  color: #fff;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
 
 
/* loader css */
#syncOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
 
.sync-loader {
  background: #fff;
  padding: 25px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
 
 
.status-pending {
  --accent: linear-gradient(90deg, #f59e0b, #f97316);
  --badge-bg: #fff7ed;
  --badge-text: #b45309;
}
.status-approved {
  --accent: linear-gradient(90deg, #22c55e, #16a34a);
  --badge-bg: #ecfdf5;
  --badge-text: #047857;
}
.status-rejected {
  --accent: linear-gradient(90deg, #ef4444, #b91c1c);
  --badge-bg: #fef2f2;
  --badge-text: #b91c1c;
}
 
 
:root {
  --overlay: rgba(15, 23, 42, 0.65);
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --text-main: #0f172a;
  --text-muted: #64748b;
}
/* STATUS THEMES */
.status-pending {
  --accent: linear-gradient(90deg, #f59e0b, #f97316);
  --badge-bg: #fff7ed;
  --badge-text: #b45309;
}
.status-approved {
  --accent: linear-gradient(90deg, #22c55e, #16a34a);
  --badge-bg: #ecfdf5;
  --badge-text: #047857;
}
.status-rejected {
  --accent: linear-gradient(90deg, #ef4444, #b91c1c);
  --badge-bg: #fef2f2;
  --badge-text: #b91c1c;
}
/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
/* Modal */
.modal-box {
  width: 95%;
  max-width: 620px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
  overflow: hidden;
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; */
  animation: slideUp 0.35s ease;
  font-family: Mulish, sans-serif;
  text-transform: capitalize;
}
/* Accent */
.modal-accent {
  height: 4px;
  background: var(--accent);
}
/* Header */
.modal-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
/* Avatar */
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
/* Title */
.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}
/* Status badge */
.status-badge {
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 18px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
/* Body */
.modal-body {
  padding: 8px 24px 22px;
  max-height: 380px;
  overflow-y: auto;
}
/* Section */
.section {
  margin-top: 18px;
}
.section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 10px;
  text-transform: uppercase;
}
/* Info row */
.info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 14px;
}
.info-row:last-child {
  border-bottom: none;
}
.info-label {
  color: var(--text-muted);
  font-weight: 500;
}
.info-value {
  color: var(--text-main);
  font-weight: 500;
  word-break: break-word;
}
/* Footer */
.modal-footer {
  padding: 5px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  background: #fafafa;
  margin-bottom: 11px;
}
.btn-close {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 10px 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Mobile */
@media (max-width: 520px) {
  .info-row {
    grid-template-columns: 1fr;
  }
}

div#errorModal .modal-box {

    padding: 35px 25px !important;

}
 
div#errorModal .modal-box h3 {

    color: #d70000;

}
 