@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f4f7f6;
  color: #2c3e50;
  line-height: 1.5;
}

/* Container Wrapper */
.autoindex-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 15px;
}

/* Header */
.autoindex-header {
  background: linear-gradient(135deg, #ffffff 0%, #f0f6f6 100%);
  border: 1px solid #dbe7e5;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(19, 79, 94, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px 25px;
  margin-bottom: 25px;
  gap: 15px;
}

@media (min-width: 768px) {
  .autoindex-header {
    flex-direction: row;
    text-align: left;
    gap: 30px;
  }
}

.autoindex-logo {
  height: 110px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(19, 79, 94, 0.1));
}

.autoindex-title-group {
  flex-grow: 1;
}

.autoindex-title-group h1 {
  font-size: 26px;
  font-weight: 800;
  color: #134F5E;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.autoindex-subtitle {
  color: #537178;
  font-size: 14px;
  margin: 0;
}

.autoindex-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #ffffff;
  border: 1px solid #134F5E;
  border-radius: 20px;
  color: #134F5E;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.autoindex-back-btn:hover {
  background-color: #134F5E;
  color: #ffffff;
  transform: translateY(-1px);
}

/* File List Container */
.autoindex-card {
  background-color: #ffffff;
  border: 1px solid #dbe7e5;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 12px -2px rgba(19, 79, 94, 0.06);
}

.autoindex-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #134F5E;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f6f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.autoindex-badge {
  background-color: #eef6f6;
  color: #134F5E;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* File Table */
.file-list-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.file-row {
  background-color: #f8fafc;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.file-row:hover {
  background-color: #f1f5f9;
  transform: scale(1.002);
}

.file-cell {
  padding: 14px 16px;
  vertical-align: middle;
}

.file-cell-name {
  border-radius: 12px 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #1e293b;
  font-size: 15px;
}

.file-icon {
  width: 24px;
  height: 24px;
  color: #134F5E;
  flex-shrink: 0;
}

.file-cell-date {
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}

.file-cell-size {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.file-cell-action {
  border-radius: 0 12px 12px 0;
  text-align: right;
}

.download-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #134F5E 0%, #1a6577 100%);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(19, 79, 94, 0.15);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.download-link-btn:hover {
  background: linear-gradient(135deg, #0e3b46 0%, #134F5E 100%);
  box-shadow: 0 4px 8px rgba(19, 79, 94, 0.25);
  transform: translateY(-1px);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 15px;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 12px;
}
