/* General styles for the page */
body {
  font-family: Arial, sans-serif;
}

.container {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.h3,
h3 {
  margin: 15px 0px 15px 25px;
}

.list-group-item {
  word-wrap: break-word;
  display: grid;
  grid-template-columns: 1fr 200px auto;
  gap: 10px;
  align-items: left;

}

.file-name-path {
  flex: 1;
  width: 250px;
}

.file-size-modified {
  flex: 1;
  padding-left: 10px;
  /* Added to create space between the file name and the file size */
  white-space: nowrap;
  /* Added to prevent the text from wrapping */
}


.valid-not-valid-icon {
  position: absolute;
  right: 10px;
}

.last-updated {
  height: 50px;
  align-items: center !important;
}

tbody,
td,
tfoot,
th,
thead,
tr {
  padding: 0px 10px;
}

.dir-icon {
  color: #4682b2;
}

/* Styles for the popover */
.popover {
  max-width: 750px;
  /* Max Width of the popover (depending on the container!) */
}

.popover .popover-header {
  padding: 0.25rem 0.5rem;
  margin: 0;
  background-color: #f8f9fa;
  border-bottom: none;
}

.popover .arrow::before {
  border-top-color: #f8f9fa;
}

/* Styles for the icons of the toggle switch */
.icon-table {
  padding: 0px 10px !important;
  height: 25px;
  text-align: left;
}

.valid-icon,
.not-valid-icon,
.not-bash-icon,
.conf-file-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.valid-icon {
  color: green;
}

.not-valid-icon {
  color: red;
}

.not-bash-icon {
  color: #ff8000;
}

.conf-file-icon {
  color: #c83200;
}

.explian-icons {
  position: absolute;
  right: 0;
}

/* Styles for the icons of the toggle switch for mobiles */
@media (min-width: 719px) {
  .mobile-wrapper {
    display: flex;
  }
}

@media (max-width: 720px) {
  .mobile-wrapper {
    justify-content: space-between;
    align-items: center;
  }

  .explian-icons {
    position: absolute;
    align-self: flex-end;
    right: unset;
  }

  .mobile-fix {
    height: 100px;
  }
}

@media (max-width: 484px) {
  .explian-icons td {
    display: block;
    padding: 2px;
  }

  .mobile-fix {
    height: 165px;
  }
}

/* Additional styles for the toggle switch */
.valid-filename {
  color: green;
}

.not-valid-filename {
  color: red;
}

.form-check-input:checked~.form-check-label::before,
.form-check:focus-within .form-check-input:checked~.form-check-label::before,
.form-check:focus-within .form-check-input:checked~.form-check-label::after,
.form-check-input:not(:checked)~.form-check-label::before,
.form-check-input:not(:checked)~.form-check-label::after,
.form-check:focus-within .form-check-input:not(:checked)~.form-check-label::before,
.form-check:focus-within .form-check-input:not(:checked)~.form-check-label::after {
  box-shadow: 0 0 0 0 transparent;
  background-color: #ff8000;
}


/* Custom Checkbox */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 20px;
  margin: 0px 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ff8000;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 4px;
  bottom: 3px;
  background-color: #4682b2;
  transition: .4s;
}

input:checked+.slider {
  background-color: #ff8000;
}

input:focus+.slider {
  box-shadow: 0 0 1px #ff8000;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 12.5px;
}

.slider.round:before {
  border-radius: 50%;
}

.form-switch {
  padding-left: 0em;
}

.switch-wrapper {
  display: flex;
  align-items: center;
}

/* Styles for screens smaller then 575px */
@media (max-width: 720px) {
  .list-group-item {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-right: 40px;
  }

  .file-name-path {
    flex: 1;
    width: auto;
  }

  .file-size-modified {
    flex: 1;
    padding-top: 10px;
    white-space: normal;
  }

  .valid-not-valid-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
  }
}