/* ===================== GLOBAL ===================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

/* ===========================
   INNVSN LOGIN - style.css
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rajdhani', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;

  /* ---- YOUR BACKGROUND IMAGE ---- */
  background-image: url('/inn.jpg'); /* <-- ilagay mo dito ang tamang path ng bg image mo */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark overlay para mas malinaw ang card */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 20, 0.45);
  z-index: 0;
}

/* ===========================
   LOGIN CARD
   =========================== */
.login-box {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  margin: 20px;
  padding: 44px 40px 36px;

  background: rgba(4, 15, 30, 0.88);
  border: 1px solid rgba(180, 130, 0, 0.35);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow:
    0 0 0 1px rgba(0, 120, 255, 0.06) inset,
    0 8px 60px rgba(0, 0, 0, 0.75),
    0 0 40px rgba(180, 130, 0, 0.07);

  animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Gold corner accents */
.login-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 22px;
  height: 22px;
  border-top: 2px solid #c8940a;
  border-left: 2px solid #c8940a;
  border-radius: 16px 0 0 0;
}

.login-box::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  border-bottom: 2px solid #c8940a;
  border-right: 2px solid #c8940a;
  border-radius: 0 0 16px 0;
}

/* Gold shimmer line on top */
.top-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8940a, transparent);
}

/* ===========================
   HEADING
   =========================== */
.login-box h2 {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
  text-shadow: 0 0 20px rgba(200, 148, 10, 0.4);
}

.login-box h2 span {
  color: #c8940a;
}

/* ===========================
   INPUT FIELDS
   =========================== */
.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-group input,
.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e8e8e8;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.input-group input::placeholder,
.login-box input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

.input-group input:focus,
.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
  border-color: rgba(200, 148, 10, 0.65);
  background: rgba(200, 148, 10, 0.05);
  box-shadow:
    0 0 0 3px rgba(200, 148, 10, 0.09),
    0 0 20px rgba(200, 148, 10, 0.06);
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(200, 148, 10, 0.65);
  font-size: 15px;
  pointer-events: none;
}

/* ===========================
   SHOW PASSWORD
   =========================== */
.show-pass {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 22px;
  cursor: pointer;
}

.show-pass input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #c8940a;
  cursor: pointer;
}

.show-pass span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  user-select: none;
}

/* ===========================
   LOGIN BUTTON
   =========================== */
.login-box button[type="submit"],
.login-box button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #1a6fff 0%, #0d4fd6 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.25s, background 0.25s;
  box-shadow: 0 4px 20px rgba(26, 111, 255, 0.4);
}

/* Shimmer sweep effect */
.login-box button[type="submit"]::before,
.login-box button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transition: left 0.5s;
}

.login-box button[type="submit"]:hover,
.login-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(26, 111, 255, 0.6);
  background: linear-gradient(135deg, #2d7fff 0%, #1a60e8 100%);
}

.login-box button[type="submit"]:hover::before,
.login-box button:hover::before {
  left: 100%;
}

.login-box button[type="submit"]:active,
.login-box button:active {
  transform: translateY(0);
}

/* ===========================
   ERROR TEXT
   =========================== */
.error-text {
  color: #ff5555;
  font-size: 13px;
  text-align: center;
  margin-top: 14px;
  min-height: 18px;
  letter-spacing: 0.04em;
}

/* ===========================
   DIVIDER & FOOTER
   =========================== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  margin: 24px 0 16px;
}

.footer-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-family: 'Orbitron', monospace;
}

.footer-text a {
  color: #c8940a;
  text-decoration: none;
}

/* ===================== HOME PAGE ===================== */
.home-page {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 40px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: rgba(17, 24, 39, 0.92);
  color: white;
}

.top-nav h2 {
  margin: 0;
  font-size: 24px;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-buttons button {
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  background: #2563eb;
  color: rgb(10, 10, 10);
  font-weight: bold;
}

.nav-buttons button:hover {
  background: #1d4ed8;
}

.hero {
  padding: 60px 30px;
  text-align: center;
}

.hero-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;

  background: transparent;     /* 馃敟 tanggal box /
  backdrop-filter: none;       / 馃敟 tanggal blur /
  box-shadow: none;            / 馃敟 tanggal shadow */
}


.hero-card h1 {
  margin-top: 0;
  font-size: 42px;
  color: #ffffff; /* puting text para makita */
}

.hero-card p {
  font-size: 18px;
  color: #e5e7eb; /* light gray text */
  margin-bottom: 28px;
}

.shortcut-card {
  background: rgba(255, 255, 255, 0.05); /* halos transparent */
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.shortcut-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #130f0f; /* puting text */
}

.shortcut-card p {
  color: #e5e7eb; /* light gray */
  margin-bottom: 16px;
}

.shortcut-card button {
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  background: #111827;
  color: white;
  font-weight: bold;
}

/* ===================== DASHBOARD PAGE ===================== */
.dashboard-page {
  padding: 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
}

.topbar p {
  margin: 8px 0 0;
  color: #6b7280;
}

.topbar-buttons {
  display: flex;
  gap: 10px;
}

.logout-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.logout-btn:hover {
  background: #1d4ed8;
}

.boysweet-btn:hover {
  background: #1d4ed8;
}

/* Summary Cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.summary-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.summary-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #6b7280;
}

.summary-card p {
  margin: 0;
  font-size: 32px;
  font-weight: bold;
}

/* Form Section */
.form-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.form-section h2 {
  margin-top: 0;
}

.product-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.product-form input,
.product-form button {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.product-form button {
  background: #2563eb;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.product-form button:hover {
  background: #1d4ed8;
}

/* Table Section */
.table-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.table-top {
  margin-bottom: 16px;
}

.table-top input {
  width: 320px;
  max-width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 14px;
}

thead {
  background: #f9fafb;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.status-low {
  background: #fee2e2;
  color: #991b1b;
}

.status-normal {
  background: #ffedd5;
  color: #9a3412;
}

.status-high {
  background: #dcfce7;
  color: #166534;
}

/* Action Buttons */
.action-btn {
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  margin-right: 4px;
  font-size: 12px;
  font-weight: bold;
}

.edit-btn {
  background: #f59e0b;
}

.edit-btn:hover {
  background: #d97706;
}

.plus-btn {
  background: #16a34a;
}

.plus-btn:hover {
  background: #15803d;
}

.minus-btn {
  background: #dc2626;
}

.minus-btn:hover {
  background: #b91c1c;
}

.delete-btn {
  background: #7c3aed;
}

.delete-btn:hover {
  background: #6d28d9;
}

/* =============================================
   IDAGDAG ITO SA LOOB NG <style> TAG
   SA DASHBOARD.HTML
   ============================================= */

/* QTY MODAL */
.qty-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.qty-modal-overlay.open {
  display: flex;
}
.qty-modal-box {
  background: white;
  border-radius: 16px;
  padding: 28px;
  width: 360px;
  -shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.2s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.qty-modal-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 14px;
}
.qty-modal-icon.plus  { background: #dcfce7; }
.qty-modal-icon.minus { background: #fee2e2; }
.qty-modal-box h2 {
  font-size: 18px;
  font-weight: bold;
  color: #111827;
  text-align: center;
  margin-bottom: 4px;
}
.qty-modal-product {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 18px;
}
.qty-modal-current {
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.qty-modal-current span:first-child { color: #6b7280; }
.qty-modal-current span:last-child  { font-weight: bold; font-size: 16px; color: #111827; }
.qty-modal-box label {
  font-size: 12px;
  font-weight: bold;
  color: #374151;
  display: block;
  margin-bottom: 6px;
}
.qty-modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 6px;
}
.qty-modal-input:focus { border-color: #2563eb; }
.qty-modal-input.plus-focus:focus  { border-color: #16a34a; }
.qty-modal-input.minus-focus:focus { border-color: #dc2626; }
.qty-modal-preview {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 18px;
  min-height: 18px;
}
.qty-modal-preview.plus-preview  { color: #16a34a; }
.qty-modal-preview.minus-preview { color: #dc2626; }
.qty-modal-actions {
  display: flex;
  gap: 10px;
}
.qty-modal-actions button {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.qty-modal-actions button:hover { opacity: 0.88; }
.qty-btn-cancel { background: #e5e7eb; color: #374151; }
.qty-btn-confirm-plus  { background: #16a34a; color: white; }
.qty-btn-confirm-minus { background: #dc2626; color: white; }

/* ===================== DELETE MODAL ===================== */
.modal-overlay {
  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;
}

.delete-modal {
  width: 420px;
  max-width: 90%;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.delete-modal h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 24px;
}

.delete-modal p {
  margin-bottom: 14px;
  color: #374151;
}

.delete-modal label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 14px;
}

.delete-modal input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
}

.delete-error-text {
  color: #dc2626;
  font-size: 13px;
  min-height: 18px;
  margin-top: 10px;
  margin-bottom: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions button {
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  color: white;
  font-weight: bold;
}

.modal-actions button:first-child {
  background: #6b7280;
}

.modal-actions button:first-child:hover {
  background: #4b5563;
}

.modal-actions button:last-child {
  background: #b91c1c;
}

.modal-actions button:last-child:hover {
  background: #991b1b;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
  }

  .top-nav {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .hero-card h1 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .product-form {
    grid-template-columns: 1fr;
  }
}
