.react-datetime-picker {
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;

}

.datetimePicker {
  border-radius: 3px;
  background-color: #D4d8d885;
  margin-right: -6px;
}

#mainpage-language div:first-child span::before {
  content: "繁體中文";
}

.col-sm-12 {
  padding: 0;
  margin: 0;
}

.col-sm-12>form {
  background-color: white;
  padding: 0;
  margin: 0;
}

.col-sm-12>form .shiny-options-group .radio {
  display: inline-block;
  padding-right: 20px;
}

#modify_time>.shiny-input-container {
  width: 100px;
  margin-bottom: 0px;
}

#modify_time {
  display: flex;
  height: 35px;
  width: 310px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom-width: 1.5px;
  border-bottom-style: solid;
  border-bottom-color: #b0b6bc;
}

.form-control {
  font-size: 14px;
}

#modify_time>.shiny-input-container>.control-label {
  display: none;
}

#modify_time>.btn {
  padding: 5px 10px;
  border-width: 0px;
  color: #2c3e50;
  background-color: white;
  font-size: 16px;
  font-weight: bold;
  opacity: 1;
}

#modify_time>div>div>div>div.selectize-input {

  border: 0px;

}

.chart-options {
  margin: 1rem 0;
  padding-top: 0.75rem;
  border-top: 1px solid #d7dde2;
}

.chart-options h5 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.chart-options-planets .shiny-options-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.75rem;
}

.chart-options-planets .checkbox {
  margin-top: 0;
  margin-bottom: 0.2rem;
}

/* ── Tarot Module: State-Machine Phases ────────────────────────────────── */

/* Welcome message */
.tarot-welcome-msg {
  font-size: 1.15rem;
  font-weight: 300;
  color: #4a4a4a;
  letter-spacing: 0.02em;
}

/* Focus phase: gentle pulse on the shuffle icon */
@keyframes tarot-pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(1.18);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.tarot-shuffle-anim {
  display: inline-block;
  font-size: 3rem;
  color: #6c757d;
  animation: tarot-pulse 1.8s ease-in-out infinite;
}

.tarot-focus-msg {
  font-size: 1rem;
  color: #555;
  font-style: italic;
}

.tarot-limit-msg {
  font-size: 0.92rem;
  color: #6b7280;
  min-height: 1.4rem;
}

/* Phase 4 reveal: clean fade-in for the interpretation panel */
@keyframes tarot-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tarot-reveal-fade {
  animation: tarot-fade-in 0.7s ease-out both;
}

.tarot-interp-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.6rem;
}

.tarot-interp-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

.tarot-wisdom-tag {
  font-size: 0.85rem;
  color: #7f8c8d;
}

.tarot-phase .card {
  border-radius: 0.9rem;
  border-color: #e5e7eb;
}

.tarot-phase .btn-outline-secondary {
  min-width: 10.5rem;
}

/* Reversed card: rotate 180° in-place without distorting aspect ratio (AC 18) */
.tarot-card-reversed {
  transform: rotate(180deg);
  transform-origin: center center;
  display: block;
  width: 100%;
  height: auto;
}

/* CSS loader placeholder while LLM interpretation is pending (AC 15) */
@keyframes tarot-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.tarot-loading-spinner {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #e5e7eb;
  border-top-color: #6c757d;
  border-radius: 50%;
  animation: tarot-spin 0.9s linear infinite;
  margin: 0 auto;
}

.tarot-loading-msg {
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
}

.tarot-loader-placeholder {
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Four-insight blocks (AC 22) */
.tarot-insights {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tarot-insight-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.tarot-insight-label {
  min-width: 3.2rem;
  color: #2c3e50;
  font-weight: 600;
  flex-shrink: 0;
}

.tarot-insight-text {
  color: #444;
}

/* ── Auth / Registration Page: scrollable container ──────────────────────── */
/* Ensures the full registration form is reachable on short viewports.        */
.auth-page-container {
  min-height: 0;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
