.fadeout {
  animation: fadeout 5s 0s;
  animation-fill-mode: forwards;
}

@keyframes fadeout {
  from {opacity: 1;}
  to {opacity: 0;}
}

/* Navbar Styles */
/* Navbar Container */
.navbar {
  display: flex;
  align-items: center;
  background-color: #343a40;
  padding: 0.5rem 1rem;
}

/* Brand Logo/Text */
.navbar-brand {
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  font-weight: bold;
  margin-right: auto;
}

/* Navigation Links */
.navbar-nav {
  list-style: none;
  display: flex;
  gap: 0px;
  margin: 0;
  padding: 0;
}

.nav-item {
  padding: 0 15px;
  position: relative;
  color: white;
  cursor: pointer;
}

.nav-link {
  color: #fff;
  text-decoration: none;
}

.nav-link:hover {
  color: #ddd;
}

.nav-submenu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  display: none;
  background-color: #343a40;
  z-index: 999;
}

.nav-subitem:first-child {
  padding-top: 15px;
}

.nav-subitem {
  padding: 5px 0.5rem;
  color: white;
}

.nav-item:hover .nav-submenu {
  display: block;
}

/* Table Styles */
/* Base Table Styles */
table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  border-collapse: collapse;
}

/* Table Header */
thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

/* Table Body */
tbody tr {
  background-color: #fff;
}

tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05); /* Striped rows */
}

tbody tr:hover {
  background-color: rgba(0, 0, 128, 0.075); /* Hover effect */
}

.row-as-link tbody tr {
  cursor: pointer;
}

.row-as-link a {
  text-decoration: none;
}

/* Table Cells */
th, td {
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  text-align: left;
}

/* Record Styles */

.rec-container {
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.rec-section {
  padding-left: 0;
  margin-bottom: 40px;
}

.rec-section h3 {
  font-variant: small-caps;
  margin-top: 0;
  margin-bottom: 10px;
}

.rec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rec-label {
  width: 30%;
  font-weight: bold;
  color: #333;
  text-align: right;
  padding-right: 20px;
}

.rec-value {
  width: 70%;
  color: #666;
}

/* Form Styles */
/* Form Group */
.form-group {
  margin-bottom: 1rem;
}

/* Labels */
label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  display: block;
  /*width: 100%;*/
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Focus State */
input:focus,
select:focus,
textarea:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.checkbox-container {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 0 20px;
}

.checkbox-container label {
  margin-bottom: 0px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 400;
  color: #fff;
  background-color: #007bff;
  border: 1px solid #007bff;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 0.15s ease-in-out;
}

.btn:hover {
  background-color: #0069d9;
  border-color: #0062cc;
}

.toast {
  font-weight: 400;
  font-size: 1rem;
  padding: 10px;
  vertical-align: middle;
  border-radius: 0.25rem;
}

/* Tab Styles */

.tabs {
  margin: 40px 0 0 0;
}

.tab-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid #ccc;
  gap: 3px;
}

.tab {
  background-color: #f0f0f0;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
}

.tab.active {
  background-color: #fff;
  border: 1px solid #000;
  border-bottom: 3px solid #0062cc;
}

.tab-content {
  padding: 20px;
  border: 1px solid #ccc;
  border-top: none;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}
