/* Styles for the tree */

.tree {
  --spacing: 3rem;
  --radius: 10px;
}

.tree li {
  display: block;
  position: relative;
  padding-left: calc(2 * var(--spacing) - var(--radius) - 2px);
}

.tree ul {
  margin-left: calc(var(--radius) - var(--spacing));
  padding-left: 0;
}

.tree ul li {
  border-left: 2px solid #ddd;
}

.tree ul li:last-child {
  border-color: transparent;
}

.tree ul li::before {
  content: "";
  display: block;
  position: absolute;
  top: calc(var(--spacing) / -2);
  left: -2px;
  width: calc(var(--spacing) + 2px);
  height: calc(var(--spacing) + 1px);
  border: solid #ddd;
  border-width: 0 0 2px 2px;
}

.tree summary {
  display: block;
  cursor: pointer;
}

.tree summary::marker,
.tree summary::-webkit-details-marker {
  display: none;
}

.tree summary:focus {
  outline: none;
}

.tree summary:focus-visible {
  outline: 1px dotted #000;
}

.tree li {
  line-height: 50px; /* Adjust the spacing between nodes */
}

.tree li::after,
.tree summary::before {
  content: "";
  display: block;
  position: absolute;
  top: calc(var(--spacing) / 2 - var(--radius));
  left: calc(var(--spacing) - var(--radius) - 1px);
  width: calc(2 * var(--radius));
  height: calc(2 * var(--radius));
  border-radius: 50%;
  background: #ddd;
}

.tree summary::before {
  z-index: 1;
  background: rgb(255, 255, 255) url("/icons8-closed-folder.svg") 0 0;
  background-size: contain;
  background-position: center;
}

.tree details[open] > summary::before {
  background: rgb(255, 255, 255) url("/icons8-opened-folder.svg") 0 0;
  background-size: contain;
  background-position: center;
}

/* Table Styles */

* {
  font-family: sans-serif;
  /* Change your font family */
}

.content-table {
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 0.9em;
  min-width: 600px;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.content-table thead tr {
  background-color: #f9f9f9;
  color: #000000;
  text-align: left;
  font-weight: bold;
}

.content-table th {
  padding: 12px 15px;
  text-align: center;
}

.content-table td {
  padding: 12px 15px;
}

/* Progress Bar Styles */

.custom-container {
  width: 500px;
  display: block;
  margin: 20px 0;
  margin-top: 50px;
}

.custom-progress {
  overflow: hidden;
  height: 20px;
  background-color: #ccc;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.progress-bar {
  width: 0;
  height: 100%;
  color: #fff;
  text-align: center;
  background-color: #ee303c;
}

* {
  box-sizing: border-box;
}

h1 {
  text-transform: uppercase;
}

button {
  width: 80px;
  height: auto;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  align-content: center;
  line-height: 28px;
}

.button-box-special {
  background: #383b3a;
}

button:focus {
  outline: none;
}

/* Button Styles */

.fancy-button {
  background: #383b3a00;
  border-radius: 5px;
  transition: background 400ms ease-out, color 400ms ease-out;
}

.fancy-button.file {
  border: 2px solid #566aff;
  width: 150px;
  float: left;
}

.fancy-button.upload {
  border: 2px solid #566aff;
  float: right;
}

.fancy-button.pause {
  border: 2px solid rgb(255, 193, 7);
}

.fancy-button.resume {
  border: 2px solid #1bbb85;
}

.fancy-button.delete {
  border: 2px solid #dc0f0f;
}

.fancy-button.view {
  border: 2px solid #9114e4;
  border-radius: 5px;
  width: 80px;
  height: 30px;
  font-weight: 700;
  color: black;
  text-decoration: none;
  text-align: center;
  align-content: center;
  line-height: 28px;
}

.fancy-button.file:hover {
  background: #566aff;
  color: #f9f9f9;
  border-radius: 5px;
}

.fancy-button.upload:hover {
  background: #566aff;
  color: #f9f9f9;
  border-radius: 5px;
}

.fancy-button.pause:hover {
  background: rgb(255, 193, 7);
  color: #f9f9f9;
  border-radius: 5px;
}

.fancy-button.resume:hover {
  background: #1bbb85;
  color: #f9f9f9;
  border-radius: 5px;
}

.fancy-button.delete:hover {
  background: #dc0f0f;
  color: #f9f9f9;
  border-radius: 5px;
}

.fancy-button.view:hover {
  background: #9901ff;
  color: #f9f9f9;
  border-radius: 5px;
}

.fancy-button.file:disabled:hover {
  background: #9e9fa5;
  border: 5px solid #9e9fa5;
  color: #000000;
  transition: none;
}

.fancy-button.file:disabled {
  background: #9e9fa5;
  color: #000000;
  border: 5px solid #9e9fa5;
}

.fancy-button.upload:disabled:hover {
  background: #9e9fa5;
  border: 5px solid #9e9fa5;
  color: #000000;
  transition: none;
}

.fancy-button.upload:disabled {
  background: #9e9fa5;
  color: #000000;
  border: 5px solid #9e9fa5;
}

.fancy-button.pause:disabled:hover {
  background: #9e9fa5;
  border: 5px solid #9e9fa5;
  color: #000000;
  transition: none;
}

.fancy-button.pause:disabled {
  background: #9e9fa5;
  color: #000000;
  border: 5px solid #9e9fa5;
}

.fancy-button.resume:disabled:hover {
  background: #9e9fa5;
  border: 5px solid #9e9fa5;
  color: #000000;
  transition: none;
}

.fancy-button.resume:disabled {
  background: #9e9fa5;
  color: #000000;
  border: 5px solid #9e9fa5;
}

.fancy-button.view:disabled:hover {
  background: #9e9fa5;
  border: 5px solid #9e9fa5;
  color: #000000;
  transition: none;
}

.fancy-button.view:disabled {
  background: #9e9fa5;
  color: #000000;
  border: 5px solid #9e9fa5;
}

/* Layout */

.layout {
  max-width: 900px;
  margin: 0 auto;
  /* border: 2px solid red; */
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

/* Styles for spinner */

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #d51315;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Styles for the radio input */

/* p,
label {
  font: 1rem "Fira Sans", sans-serif;
}

input {
  margin: 0.4rem;
} */