* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  background-color: #000000;
  color: #ededed;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #262626;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #ededed, #a3a3a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.125rem;
  color: #a3a3a3;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background-color: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 0.75rem;
  padding: 2rem;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: #404040;
}

.hidden {
  display: none;
}

/* Upload Section */
.upload-area {
  border: 2px dashed #404040;
  border-radius: 0.5rem;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-area:hover {
  border-color: #525252;
  background-color: #0f0f0f;
}

.upload-area.drag-over {
  border-color: #3b82f6;
  background-color: #0f1419;
}

.upload-icon {
  color: #737373;
  margin-bottom: 1rem;
}

.upload-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ededed;
}

.upload-text {
  color: #737373;
  font-size: 0.875rem;
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ededed;
}

/* Header Grid */
.header-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.header-item {
  background-color: #0f0f0f;
  border: 1px solid #262626;
  border-radius: 0.5rem;
  padding: 1rem;
}

.header-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #737373;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.header-value {
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  color: #ededed;
  word-break: break-all;
}

/* File System */
.filesystem-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #0f0f0f;
  border: 1px solid #262626;
  border-radius: 0.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ededed;
}

/* Tree Container */
.tree-container {
  background-color: #0f0f0f;
  border: 1px solid #262626;
  border-radius: 0.5rem;
  padding: 1rem;
  max-height: 600px;
  overflow-y: auto;
}

.tree-container::-webkit-scrollbar {
  width: 8px;
}

.tree-container::-webkit-scrollbar-track {
  background: #0a0a0a;
}

.tree-container::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 4px;
}

.tree-container::-webkit-scrollbar-thumb:hover {
  background: #525252;
}

/* Tree Nodes */
.tree-node {
  margin-left: 1.5rem;
}

.tree-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 0.15s;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
}

.tree-item:hover {
  background-color: #1a1a1a;
}

.tree-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tree-folder {
  color: #3b82f6;
}

.tree-file {
  color: #737373;
}

.tree-name {
  flex: 1;
  color: #ededed;
}

.tree-size {
  color: #737373;
  font-size: 0.75rem;
}

.download-btn {
  background-color: #262626;
  border: 1px solid #404040;
  color: #ededed;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.download-btn:hover {
  background-color: #404040;
  border-color: #525252;
}

.tree-children {
  display: none;
}

.tree-children.expanded {
  display: block;
}

.toggle-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
  color: #737373;
}

.toggle-icon.expanded {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .header-grid {
    grid-template-columns: 1fr;
  }

  .filesystem-stats {
    flex-direction: column;
    gap: 1rem;
  }
}
