body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  background-color: #f4f7fe;
  color: #222;
}

.body-login{
  display:block !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background-color: #5e72e4;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background-color: #4a5ecf; }
.btn:active { transform: scale(0.98); }
.btn:disabled { background-color: #a0acf0; cursor: not-allowed; }

.dark-mode .btn:disabled { background-color: #374151; color: #6b7280; }

.sidebar {
  display: flex;
  flex-direction: column;
  width: 220px;
  min-height: 100vh;
  background-color: white;
  padding: 20px;
  border-right: 1px solid #ddd;
}

.sidebar h2 {
  margin-top: 0;
  color: #5e72e4;
}

.forgot-link {
    font-size: 0.82rem;
    color: var(--hope-primary);
    text-decoration: none;
    font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

.nav-btn {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border: none;
  background-color: #eef2ff;
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.nav-btn:hover {
  background-color: #dbe4ff;
}

.nav-btn.active {
  background-color: #5e72e4;
  color: white;
}

.main {
  flex: 1;
  padding: 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.topbar .nav-btn {
  width: auto;
  margin: 0;
  background-color: #5e72e4;
  color: white;
}

.card {
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.page {
  display: block;
}

.page-login{
  display:flex;
}

.hidden {
  display: none;
}

.dark-mode {
  background-color: #111827;
  color: white;
}

.dark-mode .sidebar {
  background-color: #1f2937;
  border-right: 1px solid #333;
}

.dark-mode .sidebar h2 {
  color: #8ea2ff;
}

.dark-mode .card {
  background-color: #1f2937;
  border: 1px solid #333;
}

.dark-mode .nav-btn {
  background-color: #374151;
  color: white;
}

.dark-mode .nav-btn:hover {
  background-color: #4b5563;
}

.dark-mode .nav-btn.active {
  background-color: #5e72e4;
  color: white;
}

.dark-mode .topbar .nav-btn {
  background-color: #5e72e4;
  color: white;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.inventory-table th,
.inventory-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.inventory-table th {
  background-color: #eef2ff;
  color: #333;
}

.inventory-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.dark-mode .inventory-table th,
.dark-mode .inventory-table td {
  border: 1px solid #444;
}

.dark-mode .inventory-table th {
  background-color: #374151;
  color: white;
}

.dark-mode .inventory-table tr:nth-child(even) {
  background-color: #283041;
}

.logo {
  width: 100%;
  max-width: 160px;
  margin-bottom: 20px;
}

.sidebar {
  text-align: center;
}



@media (max-width: 768px) {
  .inventory-grid {
    grid-template-columns: 1fr;
  }
}

.search-bar {
  display: flex;
  width: 300px;
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid #ccc;
}

.search-bar input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
}

.search-bar button {
  background: whitesmoke;
  color: white;
  border: none;
  padding: 0 15px;
  cursor: pointer;
}
.btn.btn-out {
  background-color: #e74c3c;
}
.btn.btn-out:hover {
  background-color: #c0392b;
}

.btn-remove {
  background-color: transparent;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: normal;
  border-radius: 6px;
}
.btn-remove:hover {
  background-color: #fdecea;
  color: #c0392b;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  transition: background-color 0.3s;
}

.dot.in {
  background-color: #2ecc71;
}

.status-label {
  font-size: 13px;
  color: #666;
}

.timer {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
  color: #5e72e4;
  margin-bottom: 16px;
}

.total-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  font-size: 13px;
  color: #666;
  gap: 6px;
}

.total-row strong {
  color: #222;
}

/* Dark mode additions */
.dark-mode .status-label { color: #9ca3af; }
.dark-mode .timer { color: #8ea2ff; }
.dark-mode .total-row { color: #9ca3af; }
.dark-mode .total-row strong { color: white; }
