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

body {
  background: #ffffff;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: #000000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #000000;
  text-align: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.main-title:hover {
  color: #0056d2;
}

.search-container {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 1rem;
  border: 2px solid #000000;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-input:focus {
  outline: none;
  border-color: #0056d2;
  box-shadow: 0 4px 8px rgba(0, 86, 210, 0.15);
}

.reset-button {
  background: #0056d2;
  color: #ffffff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 86, 210, 0.3);
}

.reset-button:hover {
  background: #003087;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 86, 210, 0.4);
}

.scope-header {
  margin-bottom: 2rem;
}

.scope-header.hidden {
  display: none;
}

.scope-content {
  background: linear-gradient(135deg, #0056d2 0%, #003087 100%);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scope-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 2rem;
}

.scope-box {
  background: #ffffff;
  color: #0056d2;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.scope-box:hover {
  background: #f0f8ff;
  border-color: #0056d2;
  transform: translateY(-1px);
}

.scope-text {
  font-weight: 600;
  opacity: 0.95;
  font-size: 1rem;
  flex: 1;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.results-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.strands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.strand-card {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.strand-card:hover {
  border-color: #0056d2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.2);
}

.strand-code {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0056d2;
  margin-bottom: 0.5rem;
}

.strand-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000000;
  line-height: 1.4;
}

.priority-section {
  background: #ffffff;
}

.priority-header {
  background: transparent;
  color: #000000;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.indicators-container {
  padding: 1rem;
}

.indicator-card {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  padding-left: 2.5rem;
}

.indicator-card:last-child {
  margin-bottom: 0;
}

.indicator-card:hover {
  background: #e6f0ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.indicator-card.copied {
  background: #d4edda;
  transform: scale(1.02);
}

.indicator-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.indicator-progression {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.progression-b {
  background: linear-gradient(135deg, #ff6666 0%, #cc0000 100%);
  color: #ffffff;
}

.progression-i {
  background: linear-gradient(135deg, #ffaa33 0%, #cc6600 100%);
  color: #ffffff;
}

.progression-a {
  background: linear-gradient(135deg, #33cc33 0%, #009900 100%);
  color: #ffffff;
}

.indicator-content {
  flex: 1;
  min-width: 0;
}

.indicator-description {
  font-size: 1.1rem;
  color: #000000;
  line-height: 2.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.no-results {
  text-align: center;
  color: #333333;
  font-size: 1.25rem;
  padding: 3rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: 600;
}

.hierarchy-path {
  font-size: 1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  flex-wrap: nowrap;
}

.hierarchy-item {
  padding: 0.5rem 0.75rem;
  background: #000000;
  border: 1px solid #ffffff;
  border-radius: 12px;
  font-weight: 700;
  position: relative;
  color: #ffffff;
  text-decoration: none;
}

.hierarchy-item:hover {
  background: #0056d2;
  border-color: #0056d2;
}

.hierarchy-item.strand-link:hover::after,
.hierarchy-item.standard:hover::after,
.hierarchy-item.priority:hover::after {
  content: attr(data-description);
  position: absolute;
  top: 100%;
  left: 0;
  background: #000000;
  color: #ffffff;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 1rem;
  z-index: 10;
  width: 300px;
  white-space: normal;
  margin-top: 0.5rem;
}

.priority-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.priority-text {
  color: #000000;
  font-weight: 600;
  font-size: 1.2rem;
  opacity: 0.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.9;
}

.minus-button {
  position: absolute;
  top: .8rem;
  left: 0.5rem;
  background: #999999;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center; 
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.minus-button:hover {
  background: #666666;
  transform: scale(1.1);
}

.priority-header .minus-button {
  position: static;
  flex-shrink: 0;
}

.copy-all-container {
  margin-top: 2rem;
  text-align: center;
}

.copy-all-button {
  background: linear-gradient(135deg, #0056d2 0%, #003087 100%);
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 86, 210, 0.3);
}

.copy-all-button:hover {
  background: linear-gradient(135deg, #0041a3 0%, #002058 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 86, 210, 0.4);
}

.copy-all-button.copied {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  transform: scale(1.05);
}

.error-message {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .main-title {
    font-size: 2rem;
  }

  .search-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .reset-button {
    width: 100%;
    text-align: center;
  }

  .strands-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .indicator-main {
    gap: 0.75rem;
  }

  .scope-line {
    gap: 0.5rem;
  }

  .scope-content {
    gap: 0.75rem;
  }

  .hierarchy-path {
    font-size: 0.95rem;
    flex-wrap: nowrap;
  }

  .hierarchy-item.strand-link:hover::after,
  .hierarchy-item.standard:hover::after,
  .hierarchy-item.priority:hover::after {
    width: 200px;
    font-size: 0.95rem;
  }

  .minus-button {
    width: 16px;
    height: 16px;
    font-size: 0.8rem;
  }

  .priority-text {
    font-size: 0.9rem;
  }

  .priority-group {
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
  }
}
      