/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f7f9fc;
  color: #2d3436;
}

/* SIDEBAR */
.sidebar {
  width: 250px;
  background: #fff;
  height: 100vh;
  padding: 20px;
  border-right: 1px solid #e0e0e0;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
}

.sidebar h2 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #ff6f00;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 10px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar li:hover,
.sidebar li.active {
  color: #ff6f00;
  font-weight: bold;
}

/* HEADER */
.navbar {
  height: 60px;
  background: #ff6f00;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  margin-left: 250px;
}

.navbar h1 {
  font-size: 18px;
}

.navbar .user {
  display: flex;
  align-items: center;
}

/* MAIN CONTENT */
.main-content {
  margin-left: 250px;
  padding: 30px;
}

/* CARD */
.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

/* BUTTONS */
.btn {
  padding: 10px 20px;
  border: none;
  background-color: #ff6f00;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn:hover {
  background-color: #e65100;
}

.btn-secondary {
  background-color: #ccc;
  color: #333;
}

/* BADGES */
.status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.status.available {
  background: #e8f5e9;
  color: #2ecc71;
}

.status.in-use {
  background: #fff4e0;
  color: #ff9800;
}

.status.maintenance {
  background: #fdecea;
  color: #e74c3c;
}

/* SEARCH BAR + DROPDOWNS */
.search-bar {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table th,
table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

table th {
  background-color: #fff3e0;
  color: #ff6f00;
  text-align: left;
}

/* STATUS GRID */
.status-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.status-grid .card {
  flex: 1;
  min-width: 220px;
}

/* FOOTER */
.site-footer {
  margin-left: 250px;
  padding: 15px;
  text-align: center;
  background-color: #fff;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #ddd;
}
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-box {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
}

.pallet-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pallet-grid .card {
  flex: 1 1 calc(50% - 20px);
  min-width: 300px;
  box-sizing: border-box;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: auto;
  padding: 30px;
}

.modal-box {
  background: white;
  max-width: 700px;
  width: 100%;
  max-height: 90%;
  overflow-y: auto;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
}

.modal-content {
  max-height: none; /* optional override */
}
@media (max-width: 768px) {
  .modal-box {
    width: 95%;
    max-height: 90vh;
  }
}

.status-online { color: green; }
.status-offline { color: red; }
.status-scanning { color: orange; }

.highlight-number {
  font-size: 2rem;
  font-weight: bold;
  color: orange;
}
