:root {
  --gold: #d4af37;
  --dark-bg: #121212;
  --sidebar-bg: #1b1b1b;
  --sidebar-width: 210px;
  --topbar-height: 56px;
}

body {
  background-color: var(--dark-bg);
  color: var(--gold);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

a {
  color: var(--gold);
  text-decoration: none;
}

.login-container, .form-container, .dashboard-container, .pos-container {
  max-width: 600px;
  margin: 5% auto;
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

h1, h2, h3 {
  text-align: center;
  margin-bottom: 20px;
}

input, button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 6px;
  font-size: 16px;
}

input {
  background: #2b2b2b;
  color: #fff;
}

button {
  background: var(--gold);
  color: var(--dark-bg);
  cursor: pointer;
}

button:hover {
  background: #e2c866;
}

.btn, .btn-outline, .btn-small {
  display: inline-block;
  margin: 10px 5px;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.btn {
  background: var(--gold);
  color: var(--dark-bg);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-small {
  background: #333;
  color: var(--gold);
  font-size: 14px;
  padding: 5px 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #444;
}

.product-list li {
  padding: 10px;
  background: #2b2b2b;
  margin-bottom: 5px;
  cursor: pointer;
}

.product-list li:hover {
  background: #3d3d3d;
}

.error {
  color: #ff4c4c;
  text-align: center;
}

.success {
  color: #00c851;
  text-align: center;
}

/* DASHBOARD NAVIGATION & LAYOUT */

.topbar {
  background: #111;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid #232323;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar img {
  height: 34px;
}
.logout-btn {
  background: none;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 16px;
  border-radius: 7px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-left: 12px;
}
.logout-btn:hover {
  background: var(--gold);
  color: #181818;
}
.sidebar-toggle {
  width: 50px;
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 30px;
  margin-left: 14px;
  cursor: pointer;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  box-shadow: 2px 0 14px 0 #00000045;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 5;
}
.sidebar a {
  display: block;
  color: #ccc;
  padding: 13px 24px;
  text-decoration: none;
  font-size: 17px;
  border-radius: 0 16px 16px 0;
  transition: background 0.2s, color 0.2s;
}
.sidebar a:hover, .sidebar a.active {
  background: #232323;
  color: var(--gold);
}

.main-content {
  margin-left: var(--sidebar-width);
  padding: 36px 32px 20px 32px;
  min-height: calc(100vh - var(--topbar-height));
  transition: margin 0.3s;
}

/* CHART */
canvas {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 15px;
}

/* --- MOBILE STYLES --- */
@media (max-width: 900px) {
  .topbar{
            margin-top: 7vh;
  }
  .filter-form { flex-direction: column; }
  .sidebar {
    display: none !important;
  }
  .main-content {
    margin-left: 0;
    padding: 19px 4vw 15px 4vw;
  }
  .sidebar-toggle {
    display: block !important;
  }
  .logout-btn {
    display: none !important;
  }
  .mobile-btn-none {
    display: none !important;
  }
}

/* Hamburger mobile sidebar */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 15;
  background: rgba(0,0,0,0.35);
  transition: opacity 0.2s;
}
.sidebar-backdrop.active { display: block; }

.sidebar-mobile {
  position: fixed;
  top: var(--topbar-height);
  right: 0;
  width: 78vw;
  max-width: 320px;
  height: 100vh;
  background: var(--sidebar-bg);
  box-shadow: -2px 4px 20px #0009;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 22;
  padding-top: 26px;
  padding-bottom: 40px;
  transform: translateX(100%);
  transition: transform 0.22s;
}
.sidebar-mobile.open {
  transform: translateX(0%);
}
.sidebar-mobile a {
  color: #ccc;
  font-size: 17px;
  padding: 12px 28px;
  border-radius: 12px 0 0 12px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.sidebar-mobile a:hover, .sidebar-mobile a.active {
  background: #232323;
  color: var(--gold);
}
@media (max-width: 500px) {
  .topbar img { height: 70%; }
  .main-content { padding: 12px 2vw 10px 2vw; }
}
.filter-form {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}
.filter-form input, .filter-form button {
  padding: 8px;
  border-radius: 5px;
  border: none;
}
.filter-form button {
  background: var(--gold);
  color: #111;
  cursor: pointer;
}
.summary {
  margin: 15px 0;
  font-size: 16px;
  color: var(--gold);
}

.form-container {
  max-width: 400px;
  margin: 48px auto;
  background: #1a1a1a;
  padding: 28px 26px;
  border-radius: 10px;
  color: #eee;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.11);
}
.form-container h2 { margin-bottom: 20px; text-align: center; font-size: 23px; }
.form-container input, .form-container button {
  width: 100%;
  padding: 12px;
  margin: 7px 0 14px 0;
  border: none;
  border-radius: 6px;
  font-size: 16px;
}
.form-container input {
  background: #2b2b2b;
  color: #fff;
}
.form-container button, .btn {
  background: var(--gold);
  color: var(--dark-bg);
  font-weight: bold;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.18s;
}
.form-container button:hover, .btn:hover {
  background: #e2c866;
}
.btn-outline {
  display: block;
  text-align: center;
  margin: 14px auto 0 auto;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 10px 0;
  width: 100%;
  background: transparent;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.16s, color 0.16s;
}
.btn-outline:hover {
  background: var(--gold);
  color: #121212;
}
.success {
  color: #00c851;
  margin-bottom: 15px;
  text-align: center;
  font-size: 16px;
}

@media (max-width: 600px) {
  .form-container {
    max-width: 98vw;
    padding: 16px 2vw;
  }
}

input[type="text"] {
    width: 94%;
}

input[type="number"] {
    width: 94%;
}

input[type="date"] {
    width: 95%;
}