/* Global Layout */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #0f2027, #203a43, #2c5364);
  color: #f0f0f0;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Current Path & Navigation */
.current-path {
  font-size: 1.4em;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.path-breadcrumb {
  flex-grow: 1;
}

.path-breadcrumb a {
  color: #4fc3f7;
  font-weight: bold;
  text-decoration: none;
  margin-right: 5px;
}

.back-button {
  background: #4caf50;
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background 0.3s;
}

.back-button:hover {
  background: #43a047;
}

/* Table Design */
.directory-listing {
  width: 100%;
  border-collapse: collapse;
  background: #1b1b1b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.directory-listing th {
  background-color: #2e7d32;
  color: #fff;
  padding: 12px;
  text-align: center;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.directory-listing td {
  padding: 10px 15px;
  border-bottom: 1px solid #333;
}

.directory-listing tr:nth-child(even) {
  background: #222;
}

.directory-listing tr:hover {
  background-color: #333;
}

/* Folder & File Icons */
.folder:before, .file:before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

.folder:before {
  background-image: url('../img/folder.gif');
}

.file:before {
  background-image: url('../img/unknown.gif');
}

/* Hide date/size if not files */
.folder-row td:nth-child(2),
.folder-row td:nth-child(3) {
  display: none;
}

/* Error Page Styling */
.error403 {
  text-align: center;
  padding: 80px 20px;
  font-size: 1.3em;
  color: #ff6f61;
}

.error403 .back {
  color: #90caf9;
  font-weight: bold;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .current-path {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .directory-listing th,
  .directory-listing td {
    font-size: 0.95em;
    padding: 10px 8px;
  }
}