/* RESET */
* {
  box-sizing: border-box;
  font-family: "Poppins", system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #c9d7e4, #9edde1);
  color: #0f172a;
  display: flex;
  flex-direction: column;
}

/* NAV */
.top-nav {
  padding: 18px 28px;
  background: rgb(233, 236, 234);
  border-bottom: 1px solid #a1d9ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-nav h1 {
  margin: 0;
  font-size: 32px;
  color: #223772;
}

/* CENTER */
.center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CARD */
.login-card {
  width: 340px;
  background: rgb(216, 227, 229);
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(15,23,42,.12);
  text-align: center;
}

.login-card h2 {
  margin: 0;
  color: #1e3a8a;
}

.sub {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 22px;
}

/* INPUT */
input {
  width: 100%;
  padding: 13px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid #b8b9bb;
  background: #e9ebed;
  color: #0f172a;
}

input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* BUTTON */
button {
  width: 50%;
  padding: 13px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  font-weight: 600;
  cursor: pointer;
  position: center;
}

button:hover {
  filter: brightness(1.05);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* BUTTON LOADER */
.btn-loader {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hidden {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* LINKS */
.link {
  margin-top: 14px;
  font-size: 14px;
  color: #2563eb;
  cursor: pointer;
}

.link:hover {
  text-decoration: underline;
}

/* STATUS */
.status {
  margin-top: 10px;
  font-size: 14px;
  color: #476166;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(126, 120, 120, 0.35);
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: rgb(242, 252, 255);
  padding: 24px;
  border-radius: 16px;
  width: 320px;
  box-shadow: 0 25px 50px rgba(0,0,0,.2);
}

.secondary {
  background: #e5e7eb;
  color: #0f2457;
  margin-top: 8px;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 14px;
  font-size: 13px;
  color: #64748b;
}
.footer h1 {
  margin: 0;
  font-size: 16px;
  color: #5c5d5f;
}

/* ANIMATION */
.animate-in {
  animation: fadeUp .45s ease;
}

@keyframes fadeUp {
  from { opacity:0; transform: translateY(12px); }
  to { opacity:1; transform: translateY(0); }
}
/* PANEL */
.panel {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

.card {
  background: rgba(231, 242, 244, 0.945);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(101, 102, 104, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.card .button {
  width: auto;
  padding: 10px 16px;

} 


.card h2 {
  margin-top: 0;
  color: #001653d5;
}

/* FORM */
.form-row {
  display: flex;
  grid-template-columns: 2fr 1fr auto;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  align-items: center;
}

.form-row input {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 16px;
  
}
.form-row button {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 16px;
  background: #3b82f6;
  color: white;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
/* PRODUCT LIST */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.item-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto auto;
  gap: 10px;
  align-items: center;
  background: #f8fafc;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.item-row strong {
  color: #161d2c;
}

.item-row input {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

/* BUTTONS */
.item-row button {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.item-row button:hover {
  filter: brightness(1.05);
  transform: scale(1.1);
}
.item-row button:nth-child(3) {
  width: auto;
  background: #facc15;
  color: #78350f;

}

.item-row button:nth-child(4) {
  width: auto;
  background: #ef4444;
  color: white;
}

/* LOGOUT */
.logout-btn {
  margin: 20px auto;
  display: block;
  background: #334155;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .item-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
/* ADMIN LAYOUT */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

/* SIDEBAR */
.sidebar {
  width: 230px;
  background: white;
  border-right: 1px solid #e5e7eb;
  padding: 20px;
}

.logo {
  margin-bottom: 30px;
  color: #1e3a8a;
}

.sidebar nav a {
  display: block;
  padding: 12px;
  margin-bottom: 6px;
  text-decoration: none;
  color: #0f172a;
  border-radius: 8px;
}

.sidebar nav a:hover {
  background: #e0e7ff;
}

.sidebar nav a.active {
  background: #2563eb;
  color: white;
}

/* CONTENT */
.content {
  flex: 1;
  padding: 30px;
}

.content h1 {
  margin-top: 0;
  color: #1e3a8a;
}

/* CARD (REUSED) */
.card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 20px 40px rgba(15,23,42,.08);
  
}
/* MOBILE SIDEBAR */
@media (max-width: 800px) {
  .admin-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 10px;
  }

  .sidebar nav a {
    margin: 0;
    padding: 10px;
    font-size: 14px;
  }

  .content {
    padding: 16px;
  }
}
.danger-btn {
  width: auto;
  background: #d63c3c;
  color: white;
  padding: 13px ;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-bottom: 16px;
  position: center;
  font-weight: 600;
}
.danger-btn:hover {
  transform: translate(2px);
}


.bulk-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

#restoreBtn {
  width: auto;
  background: #10b981;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-bottom: 16px;
}
#restoreBtn:hover {
  transform: translate(-2px);
  
}
/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* variants */
.toast.success {
  background: #16a34a;
}

.toast.error {
  background: #dc2626;
}
.modal-box  {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  
}
.modal-box button {
  margin-top: 10px;
  width: 100px;
}
.modal-box .cancel-btn {
  background: #6b7280;
}
.modal-box .cancel-btn:hover {
  transform: translate(-2px);
}
.modal-box .confirm-btn {
  background: #ef4444;
  color: white;
}
.modal-box .confirm-btn:hover {
  transform: translate(2px);
}
.login-box {
  width: 300px;
  margin: 100px auto;
  padding: 25px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
  outline: none;
}

.login-box button {
  width: 100%;
  padding: 10px;
  border: none;
  background: #00ffcc;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.login-box button:hover {
  background: #00ccaa;
}

.demo-text {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 10px;
}
.watermark {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  color: #aaa;
}

.watermark a {
  color: #00ffcc;
  text-decoration: none;
}
.ihsan-watermark {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  z-index: 999;
  transition: 0.3s ease;
}

.ihsan-watermark a {
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.ihsan-watermark span {
  color: #00ffcc;
  font-weight: 600;
}

.ihsan-watermark:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.3);
}

.ihsan-watermark:hover span {
  text-shadow: 0 0 8px #00ffcc;
}