body {
  font-family: sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-container {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

button {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

.error {
  color: red;
  margin-top: 15px;
  text-align: center;
  font-size: 0.9em;
}

/* In ../css/style.css or a new admin.css linked in businesses.html */

/* General Admin Page Enhancements */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 20px;
}

header h1 {
  color: #007bff; /* Or your brand color */
  margin: 0;
  font-size: 1.8em;
}

header nav a {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
}
header nav a:hover {
  text-decoration: underline;
}

main#app-content h2,
main#app-content h3 {
  color: #495057;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-top: 30px;
}
main#app-content h2:first-child,
main#app-content h3:first-child {
  margin-top: 0;
}

/* Form Styling */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-sizing: border-box;
}

button[type="submit"].submit-button,
.toggle-button {
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.2s ease-in-out;
}
button[type="submit"].submit-button:hover,
.toggle-button:hover {
  background-color: #0056b3;
}

.message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
}
.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.message.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Section Styling */
#add-business-section,
#businesses-list-section {
  padding: 20px;
  background-color: #fdfdfd;
  border: 1px solid #e9ecef;
  border-radius: 5px;
  margin-bottom: 20px;
}

.hidden-section {
  display: none;
}

/* Table Styling */
#businesses-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
#businesses-table th,
#businesses-table td {
  border: 1px solid #dee2e6;
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
}
#businesses-table th {
  background-color: #e9ecef;
  color: #495057;
  font-weight: 600;
}
#businesses-table tr:nth-child(even) {
  background-color: #f8f9fa;
}
#businesses-table tr:hover {
  background-color: #e9ecef;
}

.btn-edit,
.btn-delete {
  padding: 6px 12px;
  margin-right: 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-edit {
  background-color: #ffc107;
  color: #212529;
}
.btn-edit:hover {
  background-color: #e0a800;
}
.btn-delete {
  background-color: #dc3545;
  color: white;
}
.btn-delete:hover {
  background-color: #c82333;
}

footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  color: #6c757d;
}
