html, body, main, header, footer {
  padding: 0px;
  margin: 0px;
}

#app {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#app-title {
  text-align: center;
  font-size: 28px;
  color: #3a1c71;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#app-subtitle {
  text-align: center;
  color: #888;
  font-size: 15px;
  margin-bottom: 32px;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

#calculator {
  text-align: center;
}

#date-input-area {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

#month-label, #day-label {
  font-weight: 600;
  color: #555;
  font-size: 15px;
}

.date-select {
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
  min-width: 120px;
  appearance: auto;
}

.date-select:focus {
  outline: none;
  border-color: #7b68ee;
  box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.15);
}

#placeholder-area {
  padding: 40px 16px;
  color: #aaa;
  font-size: 16px;
}

#placeholder-area p {
  margin: 0;
}

.result-card {
  text-align: center;
  padding: 32px 24px;
  transition: all 0.3s ease;
}

#zodiac-symbol {
  font-size: 72px;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

#zodiac-name {
  font-size: 26px;
  margin: 8px 0;
  font-weight: 700;
  color: #333;
}

#zodiac-date-range {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

#zodiac-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.attr-item {
  background: rgba(123, 104, 238, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  min-width: 140px;
  flex: 1;
  max-width: 220px;
}

.attr-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.attr-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #444;
}

#copy-btn {
  padding: 10px 28px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#copy-btn.copied {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.btn {
  cursor: pointer;
}

.element-fire { border-left: 4px solid #e74c3c; }
.element-earth { border-left: 4px solid #27ae60; }
.element-air { border-left: 4px solid #3498db; }
.element-water { border-left: 4px solid #8e44ad; }

#zodiac-table-section {
  overflow: hidden;
}

.collapsible-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  margin: 0;
  padding: 4px 0;
  color: #333;
  user-select: none;
}

#toggle-icon {
  font-size: 14px;
  color: #999;
  transition: transform 0.3s;
}

#zodiac-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

#zodiac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#zodiac-table th {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  padding: 12px 10px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}

#zodiac-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}

#zodiac-table tbody tr {
  cursor: pointer;
  transition: background 0.2s;
}

#zodiac-table tbody tr:hover {
  background: rgba(123, 104, 238, 0.06);
}

#zodiac-table tbody tr.highlight {
  background: rgba(123, 104, 238, 0.12);
}

.symbol-cell {
  font-size: 22px;
}

#features, #scenarios, #FAQ {
  max-width: 800px;
  margin: 0 auto 32px;
  padding: 0 16px;
}

#features h2, #scenarios h2, #FAQ h2 {
  font-size: 20px;
  color: #3a1c71;
  margin-bottom: 12px;
}

#features p {
  color: #555;
  line-height: 1.8;
  font-size: 15px;
}

#scenarios ul {
  list-style: none;
  padding: 0;
}

#scenarios li {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
  padding: 12px 16px;
  background: rgba(123, 104, 238, 0.04);
  border-radius: 10px;
}

#FAQ dl {
  margin: 0;
}

#FAQ dt {
  font-weight: 600;
  color: #444;
  font-size: 15px;
  margin-top: 16px;
  cursor: default;
}

#FAQ dd {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin: 6px 0 0 0;
  padding: 0;
}

#__fork {
  text-align: center;
  margin-bottom: 24px;
}

#__fork button {
  padding: 10px 24px;
  border: 2px solid #764ba2;
  border-radius: 24px;
  background: transparent;
  color: #764ba2;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

#__fork button:hover {
  background: #764ba2;
  color: #fff;
}

@media (max-width: 600px) {
  #app-title {
    font-size: 22px;
  }

  #date-input-area {
    flex-direction: column;
    gap: 8px;
  }

  .date-select {
    width: 100%;
    min-width: unset;
  }

  #zodiac-symbol {
    font-size: 56px;
  }

  #zodiac-attributes {
    flex-direction: column;
    align-items: center;
  }

  .attr-item {
    max-width: 100%;
    width: 100%;
  }

  #zodiac-table th,
  #zodiac-table td {
    padding: 8px 6px;
    font-size: 13px;
  }
}
