/* TM Chinese Zodiac Sign Calculator - Frontend */
.tm-czsc-wrap {
  border: 1px solid rgba(0,0,0,0.12);
  padding: 18px;
  border-radius: 14px;
  max-width: 900px;
  background: #0b1020;
  color: #eef2ff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.tm-czsc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tm-czsc-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(238,242,255,0.92);
}

.tm-czsc-field input,
.tm-czsc-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #eef2ff;
  outline: none;
}

.tm-czsc-field input::placeholder {
  color: rgba(238,242,255,0.55);
}

.tm-czsc-field select option {
  color: #111827;
}

.tm-czsc-wide {
  grid-column: 1 / -1;
}

.tm-czsc-help {
  display: block;
  margin-top: 6px;
  opacity: 0.82;
}

.tm-czsc-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.tm-czsc-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  cursor: pointer;
  background: rgba(255,255,255,0.10);
  color: #eef2ff;
  font-weight: 700;
}

.tm-czsc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tm-czsc-status {
  opacity: 0.9;
  font-size: 14px;
}

.tm-czsc-result {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.tm-czsc-result-inner h2,
.tm-czsc-result-inner h3 {
  margin: 14px 0 8px;
}

.tm-czsc-note {
  margin-top: 10px;
  opacity: 0.82;
  font-size: 12px;
}

/* Loader */
.tm-czsc-loader {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
}

.tm-czsc-loader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tm-czsc-loader-title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.tm-czsc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.20);
  font-size: 12px;
}

.tm-czsc-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.85);
  animation: tmczSpin 0.9s linear infinite;
}

@keyframes tmczSpin {
  to { transform: rotate(360deg); }
}

.tm-czsc-progress {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.tm-czsc-progress-fill {
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.38);
  transition: width 200ms linear;
}

.tm-czsc-log {
  margin-top: 14px;
  max-height: 200px;
  overflow: auto;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
}

.tm-czsc-log-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 4px;
  border-bottom: 1px dashed rgba(255,255,255,0.10);
}

.tm-czsc-log-item:last-child {
  border-bottom: 0;
}

.tm-czsc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: rgba(255,255,255,0.55);
  flex: 0 0 auto;
}

.tm-czsc-log-item--quote .tm-czsc-dot {
  background: rgba(255,255,255,0.85);
}

.tm-czsc-log-text {
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.95;
}

@media (max-width: 700px) {
  .tm-czsc-grid {
    grid-template-columns: 1fr;
  }
}

input, select, textarea { color: #f2f2f2 !important; }
::placeholder { color: #cccccc !important; }
