body { background-color: #121212; color: #ffffff; padding-top: 120px; min-height: 100vh; display: flex; flex-direction: column; }

@media (min-width: 768px) {
  body { padding-top: 70px; }
}

/* Menu bar with beige/gray/brown car color background and auto height for mobile wrapping */
.menu-bar { position: fixed; top: 0; left: 0; width: 100%; min-height: 60px; background-color: #b5a99a; color: #121212; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 8px 15px; box-sizing: border-box; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 100; }
.menu-title { font-size: 18px; color: #121212; white-space: nowrap; display: flex; align-items: center; gap: 8px; }

.container-fluid { max-width: 1800px; padding: 10px; flex: 1; }
.card-dark { background: #1e1e1e; border: 1px solid #333; border-radius: 12px; padding: 15px; }

/* Inputs & Selects */
select, input[type="text"], input[type="date"], input[type="number"] { background: #2a2a2a !important; color: #fff !important; border: 1px solid #444 !important; font-size: 13px !important; }
.menu-bar select { background: #e0e0e0 !important; color: #121212 !important; border: 1px solid #a0a0a0 !important; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }

/* Custom Simulated Select Box for Language */
.custom-select-dropdown {
  position: relative;
  user-select: none;
  font-family: sans-serif;
}
.custom-select-selected {
  background-color: #ffffff;
  color: #121212;
  border: 1px solid #a0a0a0;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 140px;
}
.custom-select-selected::after {
  content: "▼";
  font-size: 9px;
  color: #555;
}
.custom-select-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  margin-top: 2px;
  max-height: 250px;
  overflow-y: auto;
}
.custom-select-options.open {
  display: block;
}
.custom-select-option {
  padding: 6px 10px;
  color: #121212;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-select-option:hover {
  background-color: #f0f0f0;
}
.custom-select-option.selected {
  background-color: #e2e8f0;
  font-weight: bold;
}

/* Cell box wrapper with status baseline at the bottom */
.cell-box {
  position: relative;
  border-bottom: 3px solid #444;
  padding-bottom: 2px;
  margin-bottom: 1px;
}

/* Date input field adjustments for slim columns */
.cell-box input[type="date"] {
  width: 100%;
  font-size: 10px !important;
  padding: 2px !important;
  background: #000000 !important;
  color: #666666 !important;
  border: 1px solid #444;
  border-radius: 2px;
  text-align: center;
  color-scheme: dark;
}

.cell-box input[type="date"]::-webkit-calendar-picker-indicator {
  background-color: transparent;
  cursor: pointer;
  filter: invert(0.7);
  width: 12px;
  height: 12px;
  position: relative;
  z-index: 3;
}

.cell-box input[type="date"].has-date {
  color: #bbbbbb !important;
}

.cell-box.has-comment-triangle::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 6px solid #3742fa;
  border-left: 6px solid transparent;
  pointer-events: none;
  z-index: 5;
}

.cell-box input[type="text"] {
  width: 100%;
  background: #121212 !important;
  border: 1px solid #444;
  color: #fff;
  padding: 2px;
  border-radius: 2px;
  text-align: center;
  font-size: 11px;
}

.table-responsive {
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: auto;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

table th, table td {
  vertical-align: middle;
  font-size: 11px;
  border-color: #333 !important;
  padding: 4px 3px !important;
}

thead th { 
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #252525 !important; 
  color: #ffa502 !important; 
  text-align: center; 
}

.bill-col { 
  position: sticky;
  left: 0;
  z-index: 10;
  font-weight: bold; 
  background-color: #1a1a1a !important; 
  color: #fff; 
  min-width: 140px; 
  max-width: 160px; 
}

thead th.bill-col {
  z-index: 30;
  background-color: #252525 !important;
}

tr.fw-bold.bg-dark td.bill-col {
  background-color: #212529 !important;
  z-index: 15;
}

.month-col { min-width: 105px; max-width: 120px; }
.total-cell { text-align: center; font-weight: bold; background-color: #22252a !important; color: #1e8449 !important; min-width: 85px; }

.btn-custom-danger {
  background-color: #78281f !important;
  border-color: #641e16 !important;
  color: #ffffff !important;
}
.btn-custom-danger:hover {
  background-color: #641e16 !important;
  border-color: #51150f !important;
}

.btn-custom-success {
  background-color: #1e8449 !important;
  border-color: #196f3d !important;
  color: #ffffff !important;
}
.btn-custom-success:hover {
  background-color: #196f3d !important;
  border-color: #145a32 !important;
}

.btn-custom-light-blue {
  background-color: #3498db !important;
  border-color: #2980b9 !important;
  color: #ffffff !important;
}
.btn-custom-light-blue:hover {
  background-color: #2980b9 !important;
  border-color: #2471a3 !important;
  color: #ffffff !important;
}

.btn-custom-dark-violet {
  background-color: #512e5f !important;
  border-color: #4a235a !important;
  color: #ffffff !important;
}
.btn-custom-dark-violet:hover {
  background-color: #4a235a !important;
  border-color: #381441 !important;
  color: #ffffff !important;
}

/* Excel / CSV Button Styling */
.btn-custom-excel {
  background-color: #1f6f43 !important;
  border-color: #164e30 !important;
  color: #ffffff !important;
}
.btn-custom-excel:hover {
  background-color: #164e30 !important;
  border-color: #113c24 !important;
  color: #ffffff !important;
}

/* Vertical Coin Spin Animation Styles (Only on Hover, Slower Speed) */
.btn-coin-donate {
  display: inline-block;
  width: 32px;
  height: 32px;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  vertical-align: middle;
  flex-shrink: 0;
  perspective: 600px;
}
.btn-coin-donate svg {
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  display: block;
  transform-style: preserve-3d;
}
@keyframes verticalCoinSpin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
.btn-coin-donate:hover svg {
  animation: verticalCoinSpin 2.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
}

/* Lower Due/Overdue Summary Section Styling */
.alerts-summary-container {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) {
  .alerts-summary-container {
	flex-direction: row;
  }
}
.alert-box-card {
  flex: 1;
  border-radius: 8px;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alert-box-upcoming {
  background-color: rgba(211, 84, 0, 0.15);
  border: 1px solid #d35400;
}
.alert-box-overdue {
  background-color: rgba(120, 40, 31, 0.2);
  border: 1px solid #78281f;
}
.alert-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.app-footer {
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  color: #bbb;
  padding: 5px 15px;
  margin-top: 5px;
  font-size: 12px;
}
.social-icons a {
  color: #bbb;
  font-size: 18px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #252525;
  border-radius: 50%;
  border: 1px solid #444;
  text-decoration: none;
}
.social-icons a:hover {
  color: #ffa502;
  border-color: #ffa502;
  transform: scale(1.1);
}

.modal-content { background: #1e1e1e; border: 1px solid #444; color: #fff; }
.modal-content textarea { background: #121212; color: #fff; border: 1px solid #444; }

/* Compact PWA Install Buttons */
.pwa-install-container .btn {
  padding: 0.15rem 0.45rem !important;
  font-size: 0.78rem !important;
  border-radius: 0.2rem !important;
}

.btn-pwa-windows {
  background-color: #0078D4 !important;
  color: #fff !important;
  border: none !important;
}
.btn-pwa-windows:hover {
  background-color: #005a9e !important;
  color: #fff !important;
}

#installMacBtn.btn, .btn-pwa-mac {
  background-color: #6c757d !important;
  color: #fff !important;
  border: none !important;
}
#installMacBtn.btn:hover, .btn-pwa-mac:hover {
  background-color: #495057 !important;
  color: #fff !important;
}

.btn-pwa-linux {
  background-color: #333333 !important;
  color: #fff !important;
  border: none !important;
}
.btn-pwa-linux:hover {
  background-color: #1a1a1a !important;
  color: #fff !important;
}

.btn-pwa-android {
  background-color: #3DDC84 !important;
  color: #111 !important;
  font-weight: 500 !important;
  border: none !important;
}
.btn-pwa-android:hover {
  background-color: #32b56b !important;
  color: #111 !important;
}

.btn-pwa-ios {
  background-color: #007AFF !important;
  color: #fff !important;
  border: none !important;
}
.btn-pwa-ios:hover {
  background-color: #005ec4 !important;
  color: #fff !important;
}

/* for the installation pop-up"
/* Ensure the footer and helper container never exceed the viewport width */
footer, .footer-container, #osHelperContainer {
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
}

/* Make sure the helper image scales down gracefully on smaller screens */
#osHelperImage {
	max-width: 100%;
	height: auto;
}


