@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&display=swap");

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  background-color: rgb(244, 243, 248);
}

header {
  background-color: rgb(244, 243, 248);
  padding: 10px 20px 0px 20px;
  display: flex;
  justify-content: center; /* Center the content horizontally */
  align-items: center;
}

header img {
  margin-top: 15px;
  max-width: 100%;
  height: auto;
  max-height: 50px;
}

header h1 {
  margin: 0;
  color: rgb(32, 33, 44);
  font-size: 30px;
}

/* Add a little spacing between the logo and the title */
header .logo {
  margin-right: 20px;
}

h1 {
  font-family: "Montserrat", sans-serif;
  text-align: center;
  padding: 20px;
  margin: 0;
  color: rgb(32, 33, 44);
  font-size: 36px;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  margin-top: 0;
}

h2,
h3 {
  color: #242424;
  font-family: "Montserrat", sans-serif;
  margin-top: 0;
}

main > p {
  margin-bottom: 40px;
}

main {
  margin: 15px auto;
  padding: 20px;
  width: 90%;
}
.list-container {
  max-height: 850px;
  overflow-y: auto;
}

.custom-list {
  width: 90%;
  margin-left: 12px;
  padding: 8px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.list-item {
  padding: 8px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-bottom: 8px;
  cursor: pointer;
}

.list-container .selected {
  border: 2px solid rgb(0, 0, 0);
}

#colorLegend {
  width: 80%;
  margin-left: 12px;
}

#colorLegend tr {
  border-bottom: 5px solid white;
}

#colorLegend td {
  padding-right: 10px;
}

#colorLegend td:first-child {
  width: 25px;
}

form input[type="text"],
form input[type="email"],
form input[type="url"],
form input[type="password"],
form input[type="number"],
form input[type="tel"],
form input[type="date"],
input[type="file"],
input[type="text"],
textarea,
select {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  margin-bottom: 10px;
  margin-left: 12px;
  padding: 8px;
}

.recordSelect select:focus,
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="url"]:focus,
form input[type="number"]:focus,
form input[type="tel"]:focus,
form input[type="date"]:focus,
form input[type="password"]:focus,
form input[type="file"]:focus,
form select:focus,
textarea:focus {
  border-color: #18a7ff;
  outline: none;
}

form input[type="submit"] {
  background-color: #333;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  padding: 10px 20px;
  transition: background-color 0.15s ease-in-out;
}

textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  display: block;
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin-bottom: 20px;
  padding: 10px;
}

fieldset {
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: rgba(149, 157, 165, 0.1) 0px 8px 20px;
  border: 2px solid rgba(239, 240, 243);
  padding: 30px;
  background-color: rgb(255, 255, 255);
}

.row {
  display: flex;
}

.column {
  flex: 50%;
}

.outlined {
  background-color: #fff;
  border: 1px solid #333;
  border-radius: 4px;
  color: #000;
  cursor: pointer;
  padding: 9px 19px;
  transition: 0.3s;
}

.outlined:hover {
  background-color: #cbcbcb;
  border: 1px solid #cbcbcb;
  color: #000;
}

.feather-16 {
  height: 20px;
  width: 20px;
}

button[id^="editButton"],
button[id^="viewButton"],
button[id^="removeButton"] {
  height: 30px;
  padding: 5px;
  width: 30px;
  margin: 5px;
}

button {
  border-radius: 4px;
  background-color: #2b2c35;
  color: rgb(255, 255, 255);
  border: 0;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

button:hover,
form input[type="submit"]:hover {
  background-color: #484848;
}

table,
th,
td {
  padding: 5px;
}

#editUserList tr {
  border-bottom: 1px solid #ccc;
  border-collapse: collapse;
}

#editUserList th {
  text-align: left;
}

tr:last-of-type {
  border: none;
}

table {
  border-collapse: collapse;
  width: 100%;
  border: 0;
}

footer {
  background-color: rgb(32, 33, 44);

  color: #fff;
  font-size: 15px;
  padding: 10px;
  text-align: center;
}

footer a {
  color: #fff;
}

/* button loading animation */
.align_center {
  display: flex;
  align-items: center; /* Vertical center alignment */
  gap: 5px;
}

.loading {
  display: inline-block;
  width: 25px;
  height: 25px;
  border: 3px solid #333;
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

/* loading page */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(244, 243, 248);
  display: flex;
  flex-direction: column;
  align-items: center;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.loading-container {
  text-align: center;
}

.loading-spinner {
  border: 8px solid rgb(218, 218, 218);
  border-top: 8px solid #2b2c35;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px; /* Adjusted margin to move the text closer to the spinner */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 18px;
  color: #2b2c35;
  margin-top: 10px; /* Added margin-top to create space between text and spinner */
}

.fade-out {
  opacity: 0;
  transition: opacity 1s ease-in-out; /* Adjust the duration and easing function as needed */
}

/* loading page */
/* settings menu*/
.settings-container {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
}

.settings-icon {
  width: 24px;
  height: 24px;
}

.settings-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 100%; /* Change left from 0 to 100% */
  background-color: #fff;
  box-shadow: rgba(149, 157, 165, 0.3) 0px 0px 10px;
  border: 2px solid rgba(239, 240, 243);
  padding: 8px;
  border-radius: 10px;
  width: 200px;
}

.settings-menu a {
  display: block;
  padding: 8px;
  text-decoration: none;
  color: #333;
}

.settings-menu a:hover {
  background-color: #f0f0f0;
}
/* settings menu*/

/* scrollable table */
.table-container {
  max-height: 80vh;
  overflow-y: auto;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
}

.table-container th,
.table-container td {
  padding: 5px; /* Increase padding for better spacing */
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.table-container th {
  font-weight: bold;
  position: sticky;
  top: 0; /* Stick to the top */
  z-index: 1; /* Ensure it appears above other content */
  background-color: #f5f5f5; /* Lighter background color */
  padding: 10px;
}

/* Specify column widths */
.table-container th:nth-child(1),
.table-container td:nth-child(1) {
  width: 10%;
}

.table-container th:nth-child(2),
.table-container td:nth-child(2) {
  width: 25%;
}

.table-container th:nth-child(3),
.table-container td:nth-child(3) {
  width: 25%;
}

.table-container th:nth-child(4),
.table-container td:nth-child(4) {
  width: 25%;
}

.table-container th:nth-child(5),
.table-container td:nth-child(5) {
  width: 15%;
}

.table-container td:last-child {
  text-align: center;
}

/* Add hover effect for entire row */
.table-container tr:hover {
  background-color: rgba(0, 0, 0, 0.1); /* Add a translucent dark overlay */
  cursor: pointer; /* Change cursor to hand */
}

/* Add hover effect for cells within the row */
.table-container tr:hover td {
  filter: brightness(90%); /* Apply a brightness filter to darken the cells */
}

/* Buttons styling */
.btn {
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-color: #007bff;
  color: #fff;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

.btn-danger {
  background-color: #dc3545;
  color: #fff;
}

.btn-group {
  display: flex;
  gap: 5px;
}

/* Icon styling */
.feather-16 {
  width: 16px;
  height: 16px;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
  .table-container th,
  .table-container td {
    padding: 3px; /* Reduce padding for smaller screens */
  }
}
/* scrollable table */
/* Modal container */
.modal-container {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  overflow-y: auto;
}

/* Show modal content when modal container has 'show' class */
.modal-container.show {
  display: flex;
}

/* Modal content */
.modal-content {
  display: block;
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2); /* Adjust box shadow for a more modern look */
  max-width: 80%;
  min-width: 700px;
  max-height: 80%;
  overflow-y: auto;
  animation: fadeIn 0.2s ease; /* Fade-in animation */
}

/* Hide modal content when modal container doesn't have 'show' class */
.modal-container:not(.show) .modal-content {
  display: none;
}

/* Close button */
.modal-content button {
  background-color: #f44336;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  float: right;
}

/* Table */
.modal-content table {
  width: 100%;
  border-collapse: collapse;
}

.modal-content td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

/* Bold and darker background for first column */
.modal-content td:first-child {
  width: 1%;
  font-weight: bold;
  background-color: #f2f2f2;
}

/* Headers */
.modal-content h3 {
  margin-top: 20px;
}

.modal-content h2 {
  margin-top: 5px;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
