@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");

* {
  font-family: 'Lato', sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0.5rem;
  padding: 0;
  background-color: #fafafa;
  color: #333;
  height: 100%;
  line-height: 1.6;
}

.settings {
  width: 25%;
  vertical-align: top;
  float: left;
  margin-right: 1%;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  background-color: white;
}

.left {
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f3f3;
  margin-bottom: 1rem;
}

.searchbar {
  display: flex;
  align-items: center;
  border-radius: 25px;
  width: 100%;
  border: 2px solid #f3f3f3;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.searchbar:focus-within {
  border-color: #B90000;
  box-shadow: 0 0 5px rgba(185, 0, 0, 0.2);
}

.search {
  border: 0;
  padding: 0.75rem 1rem;
  width: 85%;
  font-size: 1rem;
  height: 100%;
  outline: none;
}

.icon {
  border: none;
  border-radius: 25px;
  padding: 0.6rem 1rem;
  background-color: #B90000;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.icon:hover {
  background-color: #8e0000;
}

#stop {
  margin-top: 0.5rem;
  background-color: #555;
}

#stop:hover {
  background-color: #333;
}

.range {
  margin: 0.5rem 0;
  padding: 0.6rem;
  width: 100%;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  cursor: pointer;
}

.checks {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.box {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  vertical-align: middle;
  cursor: pointer;
}

.errors {
  padding: 1rem;
  border: 1px solid #f8d7da;
  background-color: #fff3f3;
  border-radius: 5px;
  color: #721c24;
  font-size: 0.9rem;
  min-height: 50px;
}

.right {
  width: 74%;
  min-height: 800px;
  float: right;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: white;
  padding: 1rem;
  overflow-x: auto;
}

.table {
  width: 100%;
  user-select: none;
  cursor: pointer;
  margin-bottom: 1rem;
}

.real {
  width: 100%;
  border-top: 1px solid #f3f3f3;
  padding-top: 1rem;
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.content-table thead tr {
  border-bottom: 2px solid #f3f3f3;
  text-align: left;
  font-weight: bold;
}

.content-table th, .content-table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.content-table tbody tr:nth-of-type(even) {
  background-color: #f9f9f9;
}

.content-table tbody tr:last-of-type {
  border-bottom: 2px solid #B90000;
}

.content-table tbody tr.active-row {
  color: #B90000;
  font-weight: 500;
}

.on-head {
  color: #B90000;
  border-bottom: 2px solid #B90000;
  font-weight: bold;
}

.content-table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f3f3;
}

.content-table tbody tr:hover {
  color: #B90000;
  background-color: #fff5f5;
}

.content-table tr .selected {
  color: #B90000;
  border-bottom: 2px solid #B90000;
}

.content-table th {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.content-table th:hover {
  color: #B90000;
  border-bottom: 2px solid #B90000;
}

@media screen and (max-width: 992px) {
  .settings, .right {
    width: 100%;
    float: none;
    margin-bottom: 1rem;
  }
}