@import url("./thumb-rule-common.css");

/* Specific styles for 50/30/20 Rule */
.tr-hint-text {
  font-size: 0.75rem; /* text-xs */
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.tr-highlight-text {
  color: var(--primary-color);
  font-weight: 700;
}

/* Calculate button specific spacing if needed */
#calculateBtn {
  margin-top: 1.5rem;
}

/* Specific for 50-30-20 Rule */
.tr-main-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tr-toggle-container {
  display: flex;
  flex-direction: column;

  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  align-items: start;
}

.tr-toggle-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.tr-toggle-text {
  margin-right: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--page-text);
}

.tr-toggle-switch {
  width: 2.75rem;
  height: 1.5rem;
  background-color: var(--input-bg-alt);
  border-radius: 9999px;
  position: relative;
  transition: all 0.2s;
}

.tr-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  background-color: #fff;
  border-radius: 50%;
  height: 1.25rem;
  width: 1.25rem;
  transition: all 0.2s;
  border: 1px solid var(--input-border);
}

input:checked + .tr-toggle-switch {
  background-color: var(--primary-color);
}

input:checked + .tr-toggle-switch::after {
  transform: translateX(100%);
  border-color: white;
}

.tr-toggle-desc {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Advanced Options */
.tr-advanced-options {
  background-color: var(--card-bg);
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
}
.tr-advanced-options.active {
  display: block;
}

.tr-advanced-subtitle {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--page-text);
}

.tr-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--card-hover-bg);
}

.tr-input-col {
  display: flex;
  gap: 0.5rem;
}

.tr-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tr-symbol {
  position: absolute;
  right: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}
/* Colors for rows */
.tr-accent-blue {
  border-left: 4px solid #3b82f6;
}
.tr-accent-purple {
  border-left: 4px solid #a855f7;
}
.tr-accent-green {
  border-left: 4px solid #22c55e;
}

/* Result Cards Colors */
.tr-card-blue {
  border-left: 4px solid #3b82f6 !important;
}
.tr-card-purple {
  border-left: 4px solid #a855f7 !important;
}
.tr-card-green {
  border-left: 4px solid #22c55e !important;
}
.tr-card-gray {
  border-left: 4px solid #9ca3af !important;
}

.tr-card-icon {
  font-size: 1.5rem;
}

.tr-chart-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tr-chart-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.tr-pie-chart-container {
  width: 200px;
  height: 200px;
}
