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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
  color: #333;
  margin-bottom: 10px;
}

.nav-link {
  display: inline-block;
  margin-top: 15px;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.nav-link:hover {
  text-decoration: underline;
}

.loading {
  background: white;
  border-radius: 20px;
  padding: 60px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.result-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.result-card:hover {
  transform: translateY(-5px);
}

.file-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  word-break: break-word;
}

.metric {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.metric:last-child {
  border-bottom: none;
}

.metric-label {
  color: #666;
  font-weight: 500;
}

.metric-value {
  color: #333;
  font-weight: 600;
}

.mood-badges {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.badge.energy-high {
  background: #fee;
  color: #c00;
}

.badge.energy-medium {
  background: #ffeaa7;
  color: #d63031;
}

.badge.energy-low {
  background: #dfe6e9;
  color: #2d3436;
}

.badge.bright {
  background: #fdcb6e;
  color: #2d3436;
}

.badge.balanced {
  background: #74b9ff;
  color: #2d3436;
}

.badge.dark {
  background: #636e72;
  color: white;
}

.timestamp {
  font-size: 12px;
  color: #999;
  margin-top: 15px;
}

.error-message {
  background: #fee;
  color: #c00;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
}

.empty-state {
  background: white;
  border-radius: 20px;
  padding: 60px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.empty-state h2 {
  color: #666;
  margin-bottom: 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
}
