/* === Global Styles === */
html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  color: #ddd;
  height: 100%;
}

/* Background with dark overlay */
body {
  background: url("https://www.garagegunters.com/gunters.jpg") no-repeat center center fixed;
  background-size: cover;
  position: relative;
  min-height: 100vh;
  padding: 4px;
  box-sizing: border-box;
}

h1, h2, p, table, form, #message {
  position: relative;
  z-index: 1;
}

h1, h2 {
  color: #fff;
}

/* === Tables === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: rgba(32, 32, 32, 0.9);
}

th, td {
  border: 1px solid #444;
  padding: 8px;
}

th {
  background: #333;
  color: #eee;
}

.totals {
  font-weight: bold;
  background: #333;
}

/* === Forms === */

input, select, button {
  background: #2a2a2a;
  color: #ddd;
  border: 1px solid #555;
  padding: 8px;
  margin: 5px 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  font-size: 16px;
}

button {
  cursor: pointer;
  background: #444;
  font-weight: bold;
}

button:hover {
  background: #555;
}

#message {
  margin-top: 10px;
  font-weight: bold;
}

/* === Login page === */
.login-body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url("https://www.garagegunters.com/gunters.jpg") no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

.login-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.login-box {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 400px;
  background: rgba(32, 32, 32, 0.95);
  padding: 20px;
  border-radius: 10px;
  color: #ddd;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
}

.login-box h2 {
  color: #fff;
  margin-top: 0;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background: #2a2a2a;
  border: 1px solid #555;
  color: #ddd;
  border-radius: 5px;
}

.login-box button {
  width: 100%;
  padding: 10px;
  background: #444;
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.login-box button:hover {
  background: #555;
}

.error {
  color: #f66;
  font-weight: bold;
}

/* === Logout link === */
.logout {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 0.9em;
  color: #aaa;
  text-decoration: none;
  z-index: 2;
}

.logout:hover {
  color: #fff;
}
