.character-manager {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.character-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.character-list-header h2 {
  font-size: 24px;
  margin: 0;
}

.create-btn {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 500;
  cursor: pointer;
}

.character-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.search-box {
  flex-grow: 1;
}

.search-box input, 
.tag-filter select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

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

.character-card {
  background-color: hsl(var(--card));
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.character-avatar {
  height: 120px;
  background-color: hsl(var(--muted));
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-placeholder {
  width: 70px;
  height: 70px;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: bold;
}

.character-info {
  padding: 16px;
  flex-grow: 1;
}

.character-actions {
  display: flex;
  border-top: 1px solid hsl(var(--border));
}

.action-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: none;
  cursor: pointer;
}

.back-btn {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  margin-bottom: 16px;
  cursor: pointer;
}

.header-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.export-menu {
  position: relative;
  display: inline-block;
}

.export-dropdown {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 100;
  min-width: 150px;
  top: 100%;
  right: 0;
}

.export-menu:hover .export-dropdown {
  display: block;
}

.export-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
}

.export-dropdown button:hover {
  background: #f0f0f0;
}

.character-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.main-actions {
  display: flex;
  gap: 4px;
}

.export-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid #eee;
}

.export-label {
  font-size: 12px;
  color: #666;
  margin-right: 4px;
}

.export-btn {
  font-size: 11px;
  padding: 2px 6px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  cursor: pointer;
  color: #333; /* ADD THIS LINE - dark text */
}

.export-btn:hover {
  background: #e9ecef;
  color: #000; /* ADD THIS LINE - ensure text stays dark on hover */
}

.export-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: #666; /* ADD THIS LINE - gray text when disabled */
}