body {
  font-family: Verdana, sans-serif;
}

/* Form Container Styles */

.login-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 300px; /* Adjust as needed */
}

.bdr,
.details,
.insert-form,
.results,
.search-form,
.update-form {
  border: 1px solid #ccc;
  padding: 20px;
  margin: 0px;
  width: auto;
  border-collapse: collapse;
}

.details,
.insert-form,
.results,
.search-form,
.update-form {
  width: fit-content;
}

.bdr {
  width: 300px;
}

.tbtitle {
  color:   #0a3857;
  background: #efefef;
  padding: 5px;
  text-align: left;
}

.currselect:hover {
  background: #efefef;
}

.bordered {
  border: 1px solid #eee;
  padding: 10px;
}

.search-form-select {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.login-form {
  display: flex;
  flex-direction: column;
}

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

/* Form Element Styles */
.bdr label,
.insert-form label,
.search-form label,
.update-form label,
details label {
  width: calc(45% - 10px);
  max-width: 45%;
  margin-right: 10px;
}

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

form label {
  float: left;
  margin: 5px 0;
  width: calc(45% - 10px);
}

.input {
  width: calc(100% - 16px);
  max-width: 100%;
  float: right;
  padding: 8px;

  margin: 5px;
  border-radius: 4px;
  box-sizing: border-box;
  border: 1px solid #ccc;
}

.bdr input[type="password"],
.bdr input[type="text"],
.details input[type="password"],
.details input[type="text"],
.insert-form input[type="password"], /* Added insert form password input */
.insert-form input[type="text"], /* Added insert form text input */
.insert-form select,
.insert-form textarea,
.search-form input[type="password"],
.search-form input[type="text"],
.update-form input[type="password"],
.update-form input[type="text"],
.update-form textarea {
  width: calc(50% - 10px);
  margin-bottom: 0;
}

.form-group input[type="text"],
.form-group input[type="password"],
.insert-form textarea,
.update-form textarea {
  width: calc(100% - 16px);
  margin: 0px;
}

/* Form Button Styles */
.login-button,
.bdr input[type="reset"],
.bdr input[type="submit"],
.details input[type="reset"],
.details input[type="submit"],
.insert-form input[type="submit"],
.search-form input[type="reset"],
.search-form input[type="submit"],
.update-form input[type="submit"] {
  padding: 8px 16px;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.login-button,
input[type="submit"] {
  background-color: #1470af;
}

input[type="reset"] {
  background-color: #6582ae;
}

.login-button:hover,
.navigation-item a:hover {
  color:white;
  background-color: #0a3857;
}

/* Table Styles */
.bdr table,
.details table,
.insert-form table,
.update-form table {
  width: 100%;
  border-collapse: collapse;
}

.bdr td,
.details td,
.insert-form td,
.update-form td {
  padding: 5px;
  border: 1px solid #efefef;
  vertical-align: top;
}

/* Other Styles */

.info-message {
  color: #007bff;
  border-color: #007bff;
}

.error-message,
.success-message {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  text-align: center;
}

.error-message {
  background-color: #ea2a2c;
  border-color: #dc3545;
  color: white;
}

.success-message {
  background-color: #529a0e;
  color: white;
}

.error-message.hidden,
.success-message.hidden {
  display: none;
}

.error-message.visible,
.success-message.visible {
  display:block;
}

.clear {
  clear: both;
  display: block;
  width: 100%;
}

/* Header and Navigation Styles */
.header-table {
  width: 600px;
  height: 60px;
  border-collapse: collapse;
}

.header-table tr td {
  width: 80%;
  border: none;
  padding: 20px;
  vertical-align: middle;
}

.header-link {
  text-decoration: none;
  line-height: 60px;
  color: #09f;
  display: inline-block;
  font: normal bold 15px "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

.header-icon {
  vertical-align: middle;
  margin-right: 5px;
}

.navigation-table {
  width: 300px;
  border-collapse: collapse;
  color: #0a3857;
  background: #efefef;
  padding: 5px;
  text-align: left;
  margin: 20px;
}

.navigation-table td {
  border: none;
  padding: 4px;
  text-align: center;
}

.navigation-item a {
  font-weight: bold;
  text-decoration: none;
  color: inherit;
}
