
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #003A5C;
  margin: 0;
  padding: 20px;
}

h1, h2 {
  color: #003A5C;
}

input, button {
  padding: 10px;
  margin: 5px;
  border: 1px solid #003A5C;
  border-radius: 4px;
  font-size: 14px;
}

button {
  background-color: #003A5C;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #00263D;
}

#authSection, #adminSection, #mainSection {
  background-color: #f9f9f9;
  border: 1px solid #003A5C;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 58, 92, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
}

th {
  background-color: #003A5C;
  color: white;
  padding: 10px;
}

td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

.hidden {
  display: none;
}

nav {
  display: flex;
  justify-content: left;
  gap: 10px;
  margin-bottom: 20px;
}

.tabContent {
  display: none;
}

.tabContent.active, .tabContent:not(.hidden) {
  display: block;
}

nav {
  background-color: #003A5C;
  display: flex;
  justify-content: left;
  gap: 0;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  margin-bottom: 0;
}

nav button {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  background-color: #003A5C;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

nav button:hover {
  background-color: #00263D;
}

nav button.active {
  background-color: white;
  color: #003A5C;
  font-weight: bold;
  border-bottom: 2px solid #003A5C;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    border-radius: 0;
  }

  nav button {
    width: 100%;
    text-align: left;
    border-radius: 0;
  }
}

.hamburger-menu {
  position: absolute;
  top: 10px;
  left: 10px;
}

.hamburger-menu button {
  font-size: 24px;
  background-color: #003A5C;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
}

#sideMenu {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
}

#sideMenu button {
  background-color: white;
  color: #003A5C;
  padding: 10px;
  border: 1px solid #003A5C;
  border-top: none;
  text-align: left;
}

.az-filter {
  margin-top: 10px;
  margin-bottom: 10px;
}

.az-filter span {
  font-weight: bold;
  display: inline-block;
  margin-right: 10px;
}

#letterFilter button {
  margin: 2px;
  padding: 5px 10px;
  border: 1px solid #003A5C;
  background-color: white;
  color: #003A5C;
  cursor: pointer;
}

#letterFilter button:hover {
  background-color: #003A5C;
  color: white;
}

.hamburger-menu {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
}

.hamburger-menu button {
  font-size: 24px;
  background-color: #003A5C;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
}

#sideMenu {
  position: fixed;
  top: 60px;
  left: 16px;
  background-color: white;
  border: 1px solid #003A5C;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#sideMenu.hidden {
  display: none !important;
}

.hamburger-menu {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
}

#sideMenu {
  position: fixed;
  top: 60px;
  right: 16px;
}

.hamburger-menu {
  position: fixed !important;
  top: 16px !important;
  right: 16px !important;
  left: auto !important;
  z-index: 1000;
}

#sideMenu {
  position: fixed !important;
  top: 60px !important;
  right: 16px !important;
  left: auto !important;
}

#sideMenu {
  position: fixed !important;
  top: 60px !important;
  right: 16px !important;
  left: auto !important;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

#sideMenu.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#sideMenu button {
  background-color: transparent;
  color: #003A5C;
  font-size: 16px;
  padding: 12px 20px;
  border: none;
  text-align: left;
  width: 100%;
  transition: background-color 0.2s ease;
}

#sideMenu button:hover {
  background-color: #f0f0f0;
}


.modal {
  display: flex;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 300px;
}

.modal input {
  margin: 5px 0;
  padding: 8px;
  width: 90%;
}

.hidden {
  display: none !important;
}


#loginBtn.logout {
  background-color: #c0392b;
  color: white;
  border: none;
}

body {
  margin: 0;
  padding: 0;
}

.page-background {
  background-color: #e6f2ff;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

.page-container {
  max-width: 100%;
  margin: 0 auto;
  background-color: white;
  padding: 40px 20px;
}

th {
  text-align: left;
}
.actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.group-left, .group-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Distinct but on-theme buttons */
.btn-collect {
  background-color: #2E86C1;
  border-color: #2E86C1;
  font-weight: bold;
}
.btn-collect:hover { background-color: #1F5E86; }

.btn-view {
  background-color: #002F4A;
  border-color: #002F4A;
}
.btn-view:hover { background-color: #002136; }

.result-count {
  font-weight: bold;
  min-width: 140px;
  text-align: right;
}


/* Row click-to-collect: minimal, non-destructive */
#poTable tbody tr { cursor: pointer; transition: background-color .15s ease; }
#poTable tbody tr:hover { background-color: rgba(0,58,92,.06); }
#poTable tbody tr.row-selected { background-color: rgba(46,134,193,.15); }
#poTable tbody tr input[type="checkbox"], #poTable tbody tr button { cursor: pointer; }
