body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f8fc;
  color: #111;
}

header {
  background-color: #5c3dfd;
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header h1 {
  margin: 0;
  font-size: 1.4rem;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: bold;
}

nav span {
  color: white;
  margin: 0 0.3rem;
}

main {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

section {
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.custom-file-upload,
.primary-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #5c3dfd;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.custom-file-upload:hover,
.primary-btn:hover {
  background-color: #452cda;
}

#drop-area {
  border: 2px dashed #bbb;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

#drop-area.highlight {
  border-color: #5c3dfd;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

table thead {
  background-color: #f0efff;
}

table th,
table td {
  padding: 0.75rem;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid #eee;
}

#uploaded-files-section {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#uploaded-files-section.visible {
  opacity: 1;
  transform: translateY(0);
}

#analyze-btn {
  margin-top: 1rem;
  display: none;
}

#analysis-status {
  margin-top: 1rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  main {
    padding: 1rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header h1 {
    font-size: 1.2rem;
  }

  nav {
    margin-top: 0.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .custom-file-upload,
  .primary-btn {
    width: 100%;
    text-align: center;
  }
}

.tag-filter label {
  display: inline-block;
  background: #f0efff;
  color: #333;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  margin: 0.3rem;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.tag-filter input[type="checkbox"] {
  margin-right: 0.4rem;
}

.download-link {
  text-decoration: none;
  font-size: 1.2rem;
  color: #5c3dfd;
}

.download-link:hover {
  color: #452cda;
}

.file-path {
  font-size: 0.85rem;
  color: #666;
  font-family: monospace;
}

.no-data-msg {
  font-size: 1.2rem;
  text-align: center;
  margin-top: 3rem;
  color: #555;
}
.no-data-msg a {
  color: #5c3dfd;
  text-decoration: underline;
}

button {
  background-color: #5c3dfd;
  color: white;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

button:hover {
  background-color: #452cda;
}