/* Base layout */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f7f7;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}

.header img {
  max-height: 50px;
}

.main-container {
  display: flex;
  flex: 1;
}

.sidebar {
  width: 180px;
  background: #f0f0f0;
  padding: 20px;
  border-right: 1px solid #ddd;
  box-sizing: border-box;
}

.content {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
  background: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
  background: #e9ecef;
  padding: 12px 16px;
  border-radius: 8px;
}

.breadcrumbs a {
  color: #000;
  text-decoration: none;
  margin-right: 10px;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Card Deck */
.card-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex: 1 1 250px;
  max-width: 300px;
}

/* Card style (deduplicated + improved) */
.card {
  flex: 1 1 250px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  min-height: 220px;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.8);
}

.card img {
  max-width: 200px;
  height: auto;
  margin-bottom: 12px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-top: 10px;
}

.card .arrow {
  font-size: 22px;
  margin-top: 12px;
  color: #333;
}

/* Treeview */
.treeview ul {
	display: none;
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.treeview li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}

.treeview li:hover {
  background: #e8f5e9;
  border-radius: 6px;
  padding-left: 10px;
  transition: all 0.2s ease;
}

.treeview li::before {
  content: '\25B6'; /* triangle right */
  font-size: 12px;
  margin-right: 6px;
  color: #4CAF50;
}

.treeview li.folder::before {
  content: '\25BC'; /* triangle down */
}

/* File list */
.file-list li {
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: background 0.2s ease;
}

.file-list li:hover {
  background: #e9ecef;
}

.file-list li .file-name {
  flex: 1;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-list li .arrow {
  font-size: 18px;
  color: #333;
}

.file-list li .download-btn {
  padding: 6px 14px;
  border: 2px solid #000;
  border-radius: 8px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s;
}

.file-list li .download-btn:hover {
  background: #fff;
  color: #000;
}
