/* General Page Styles */
body {
  margin: 0;
  padding: 0;
  background-color: #121212; /* Sleek dark background */
  color: #e0e0e0; /* Light text for contrast */
  font-family: "Fira Code", monospace; /* Monospaced modern font */
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Directory Tree Container */
.directory-tree {
  background-color: #1f1f1f; /* Slightly lighter box */
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7); /* Soft shadow */
  min-width: 400px;
  max-width: 600px;
  font-size: 20px;
  line-height: 1.8;
}

/* Directory Tree Styling */
.directory-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.directory-tree li {
  position: relative;
  margin: 0; /* No extra margin for better alignment */
  padding-left: 30px;
}

/* Vertical Line */
.directory-tree li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #4fc3f7; /* Bright blue line */
}

/* Horizontal Line */
.directory-tree li:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: #4fc3f7; /* Bright blue line */
  transform: translateY(-50%);
}

/* Vertical Line Extension at the Bottom */
.directory-tree ul:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 20px; /* Adjust for desired line length */
  width: 2px;
  background-color: #4fc3f7; /* Bright blue */
}

/* Special Case for Last Item */
.directory-tree li:last-child:after {
  display: none; /* Removes the horizontal line for the last item */
}

/* Root Node Styling */
.directory-tree > ul > li {
  font-weight: bold;
  color: #ffffff; /* Pure white for the root node */
  font-size: 24px;
  padding-left: 0;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.directory-tree > ul > li:before {
  display: none; /* No vertical line above the root */
}

.directory-tree > ul > li:after {
  display: none; /* No horizontal line for the root */
}

/* Link Styling */
.directory-tree a {
  text-decoration: none;
  color: #4fc3f7; /* Bright blue */
  font-size: 22px;
  font-weight: bold;
  transition: color 0.3s, transform 0.3s;
}

.directory-tree a:hover {
  color: #1ec1f3; /* Lighter blue on hover */
  transform: translateX(5px); /* Smooth sliding effect */
}
