@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 13px;
}

body {
  width: 100%;
  background-color: #fff;
  font-family: "Poppins", sans-serif;
}
#serial-input::placeholder {
  color: rgb(185, 185, 185); /* Set the placeholder text color to red */
  font-family: "Courier New", monospace;
}
#dfu-container {
  display: none;
}
#dfu-loading {
  display: none;
  text-align: center;
}
#dfu-build-container {
  display: none;
  margin-top: 8px;
}
#dfu-build-loading {
  display: none;
  text-align: center;
  margin-bottom: 8px;
}
/* Style for the loading spinner in the tcpftp page */
#tcpftp-loading {
  display: none;
  text-align: center;
  margin-top: 20px;
}
#tcpftp-loading img {
  width: 50px;
}
#tcpftp-result {
  display: none;
}

/* Ensure the progress list stays visible in the tcpftp page */
#tcpftp-progress-list {
  display: block;
  list-style-type: none;
  padding: 0;
}

#tcpftp-progress-list li {
  font-size: 14px;
}

/* Style for the loading spinner in the build page */
#build-loading {
  display: none;
  text-align: center;
  margin-top: 20px;
}
#build-loading img {
  width: 50px;
}
#build-result {
  display: none;
}

/* Ensure the progress list stays visible in the build page */
#build-progress-list {
  display: block;
  list-style-type: none;
  padding: 0;
}

#build-progress-list li {
  font-size: 14px;
}

.fa-check-circle {
  color: #0b9b0b;
}
.p-customize {
  padding: 4px;
}

/* Nav Section */

.nav-tabs {
  display: flex;
  width: 100%;
  /* border-bottom: 2px solid #007bff; */
}
.sub-nav-tabs {
  background-color: #f5f5f5;
}
.nav-tabs .nav-item {
  /* flex: 1; */
  text-align: center;
  padding: 2px;
}

.nav-tabs .nav-link {
  width: 100%;
  color: #000000;
  /* background-color: #2674c6; */
  border: none;
  border-radius: 0;
  padding: 10px 10px;
  font-weight: normal;
}
.nav-tabs .nav-link:hover {
  background-color: #e5e5e5;
}
.nav-tabs .nav-link.active {
  background-color: #dfdfdf;
  color: #000000;
  font-weight: bold;
  border-bottom: 3px solid #000000;
}
.tab-content {
  background: #ffffff;
  border-top: none;
}

/* Make tabs responsive */
@media (max-width: 767px) {
  .nav-tabs .nav-item {
    text-align: left; /* Align text to the left on small screens */
  }
}

#popup {
  display: none;
  position: fixed;
  bottom: 20px; /* Position 20px from the bottom */
  right: 20px; /* Position 20px from the right */
  color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  opacity: 0; /* Start with opacity 0 for fade-in */
  transition: opacity 1s ease-in-out; /* Fade-in effect */
}

/* Fade-in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Fade-out animation */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

nav .logo {
  display: flex;
  align-items: center;
}

nav .logo-image {
  width: 45px;
  height: 90px;
}

nav .logo-image img {
  width: auto;
  height: 40px;
  object-fit: cover;
  padding-left: 18px;
  margin-top: 10px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 140px;
  background-color: #000;
  padding: 10px 0 10px 10px;
}

nav .menu-items {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 150px);
  justify-content: space-between;
}

nav .menu-items li {
  list-style: none;
  margin-bottom: 10px;
}

nav .menu-items li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70px;
  width: 90%;
  text-decoration: none;
}

nav .menu-items li.active a {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  position: relative;
}

nav .menu-items li a ion-icon {
  color: rgb(255, 255, 255);
  font-size: 24px;
  min-width: 45px;
}
nav .menu-items li a i {
  color: white;
  font-size: 24px;
  min-width: 45px;
  text-align: center;
}

nav .menu-items li a .links {
  font-size: 16px;
  color: white;
}

nav .menu-items li.active a {
  background-color: #434343;
}

/* nav .menu-items li.active a:before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  right: 0;
  top: -40px;
  border-radius: 10%;
  box-shadow: 20px 20px #fff;
  pointer-events: none;
}

nav .menu-items li.active a:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  right: 0;
  bottom: -40px;
  border-radius: 10%;
  box-shadow: 20px -20px #fff;
  pointer-events: none;
} */

nav .menu-items li.active a .links {
  color: #ffffff;
}

nav .menu-items li.active a i {
  color: #000;
}

.dashboard {
  position: relative;
  left: 140px;
  width: calc(100% - 140px);
  height: calc(100vh);
  background-color: #ffffff;
  padding: 14px 14px;
}

.consoleTable,
.hardwareTable,
.applicationTable,
.programTable,
.settingsTable {
  height: 100%;
}

.form-check-custom {
  display: flex;
  align-items: center;
  background-color: #f8f8f8;
  padding-block: 2px;
  padding-inline: 6px;
  border-radius: 5px;
  border: 1px solid black;
}
.form-check-custom:hover {
  background-color: #e5e5e5;
}
.form-check-label-custom {
  margin-top: 3px;
}
.form-switch-custom .form-check-input-custom {
  margin-left: 7px;
  width: 35px;
  height: 19px;
  margin-bottom: 2px;
}

.status-running {
  background-color: #c5e5cd; /* Green */
  color: rgb(0, 75, 0);
  padding-inline: 4px;
  padding-block: 1px;
  border-radius: 4px;
}

.status-stopped {
  background-color: #dec7c9; /* Red */
  color: rgb(134, 0, 0);
  padding-inline: 4px;
  padding-block: 1px;
  border-radius: 4px;
}

.table > :not(caption) > * > * {
  align-content: center;
}

.apps-table thead th:last-child,
.apps-table tbody tr td:last-child {
  text-align: center;
}

.store-apps-border {
  border: 1px solid rgb(207, 207, 207);
  padding: 18px;
}
.store-apps-border:hover {
  background-color: #f0f0f0;
}

.priority-normal {
  background-color: #eaf2bf; /* Green */
  color: rgb(125, 142, 41);
  padding-inline: 4px;
  padding-block: 1px;
  border-radius: 4px;
}

.priority-critical {
  background-color: #e7d5d7; /* Red */
  color: rgb(145, 54, 54);
  padding-inline: 4px;
  padding-block: 1px;
  border-radius: 4px;
}

.upload-box {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background-color: #f9f9f9;
  /* cursor: pointer; */
  position: relative;
}
.upload-box:hover {
  background-color: #f0f0f0;
}
.upload-box input[type="file"] {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
}
.requirement-box {
  background-color: #f7f7f7;
  padding: 20px;
  border-radius: 10px;
}
.requirement-box:hover {
  background-color: #f0f0f0;
}
.file-name {
  margin-top: 15px;
  font-style: italic;
  color: #333;
}

#modal,
#editAppsModal {
  display: none; /* Hide the modal by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent background */
  justify-content: center;
  align-items: center;
}

#modalContent {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 30%;
  width: 100%;
  text-align: center;
  position: relative; /* For positioning the close icon */
  max-height: 85%;
  overflow-y: scroll;
}
#editAppsModalContent {
  background-color: white;
  border-radius: 8px;
  max-width: 70%;
  width: 100%;
  text-align: center;
  position: relative; /* For positioning the close icon */
  height: auto;
  max-height: 88%;
}
#editAppContainer {
  height: 100%;
}
.editAppTitleContainer {
  background-color: #000000;
  padding-block: 10px;
}
.editAppTitle {
  color: #ffffff;
}
.editAppContentContainer {
  padding: 20px;
  max-height: calc(100vh - 150px);
  overflow-y: scroll;
}
.app-key-highlight {
  font-size: 20px;
  font-weight: bold;
}
/* Close button styling */
.close-icon {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
}
.close-icon:hover {
  color: #c2c2c2;
}

/* confirmation modal */
.confirmModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.confirmModal-content {
  background-color: #fff;
  margin: 15% auto;
  width: 30%;
  text-align: center;
}

.confirmModal-header {
  background-color: #c7444a;
  color: white;
  text-align: start;
  padding-block: 6px;
  padding-inline: 10px;
}

.confirmModal-body {
  padding: 20px;
}

.custom-gap {
  gap: 10px;
}
.fa-plus,
.fa-minus {
  background-color: #000000;
  color: white;
  padding: 8px;
  border-radius: 4px;
}
.fa-plus:hover,
.fa-minus:hover {
  background-color: #5c5c5c;
}

.board-table tbody tr td:first-child {
  text-align: center;
}

.flex-85 {
  flex: 0 0 85%;
}
.flex-50 {
  flex: 0 0 50%;
}
.flex-75 {
  flex: 0 0 75%;
}
.flex-70 {
  flex: 0 0 70%;
}
.flex-65 {
  flex: 0 0 65%;
}
.flex-60 {
  flex: 0 0 60%;
}
.flex-47 {
  flex: 0 0 47%;
}
.flex-35 {
  flex: 0 0 35%;
}
.flex-32 {
  flex: 0 0 32%;
}
.flex-30 {
  flex: 0 0 30%;
}
.flex-25 {
  flex: 0 0 25%;
}
.flex-24 {
  flex: 0 0 24%;
}
.flex-15 {
  flex: 0 0 15%;
}
.flex-14 {
  flex: 0 0 14%;
}

.w-30 {
  width: 30%;
}
.w-60 {
  width: 60%;
}

.loading-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 16px;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 43, 43, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999;
  backdrop-filter: blur(1px);
}

.login-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #1f1f1f;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  color: white;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mmr-block {
  border-bottom: 1px solid #cbcbcb;
  padding-block: 4px;
  margin-bottom: 4px;
}

.save-new-field-info {
  margin-top: 4px;
  text-align: left;
}

.save-new-field-info-text {
  font-size: 11px;
  color: #c7444a;
}

/* Style for the table of the live tab*/
/* .table-wrapper {
    border: 1px solid #b5bcc6;
    background: #fff;
    height: calc(100% - 40px);
    overflow: auto;
  }

  table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
  }

  thead th {
    background: #dcdcdc;
    border: 1px solid #b5bcc6;
    padding: 4px 0;
    text-align: center;
    font-weight: bold;
  } */

/* tbody td {
    border: 1px solid #d0d0d0;
    padding: 4px 6px;
    text-align: center;
    color: #000;
  } */

tbody td.addr,
thead th.addr {
  background: #f2f2f2;
  font-weight: bold;
}

#holding-table thead, #holding-table tbody {
  text-align: center;
}

#holding-table td {
  background-color: transparent;
  transition: background-color 0.6s ease;
}

/* Change highlight */
.cell-new {
  background-color: rgb(40, 167, 70) !important;
}

.cell-changed {
  background-color: rgb(255, 193, 7) !important;
}

/* tbody tr:nth-child(even) td:not(.addr) {
    background: #fafafa;
  }  */
