/* Base Selection Styles */
::selection {
  background-color: rgba(79, 41, 161, 0.2) !important;
  color: #4f29a1 !important;
}

::-moz-selection {
  background-color: rgba(79, 41, 161, 0.2) !important;
  color: #4f29a1 !important;
}

/* Container Styles */
.container {
  max-width: 600px;
  width: 90%;
  margin: 32px auto;
  padding: 32px;
  background: #fff !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

/* Toggle Switch Styles */
.toggle {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #f5f5f5 !important;
  padding: 6px !important;
  border-radius: 12px !important;
  width: fit-content !important;
  margin: 0 auto 32px !important;
}

.toggle .slider {
  position: absolute !important;
  left: 6px !important;
  top: 6px !important;
  background: #4f29a1 !important;
  border-radius: 8px !important;
  height: calc(100% - 12px) !important;
  width: calc(50% - 6px) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.toggle button {
  position: relative !important;
  padding: 12px 24px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  background: transparent !important;
  color: #7254b4 !important;
  z-index: 1 !important;
  transition: color 0.3s ease !important;
}

.toggle button.active {
  color: white !important;
}

/* Form Group Styles */
.form-group {
  width: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: all 0.3s ease !important;
  margin-bottom: 20px;
}

.form-group.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
}

.form-group label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
  color: #333 !important;
}

.form-group label i {
  color: #4f29a1 !important;
}

.dropdown-group {
  gap: 15px !important;
}

.dropdown-group label {
  margin-bottom: 0 !important;
}

.dropdown-group select {
  padding: 10px !important;
}

/* Input Styles */
.input-wrapper,
.select-wrapper {
  position: relative !important;
}

.input-wrapper input,
.select-wrapper select,
#customComments {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  background: #fff !important;
  transition: all 0.3s ease !important;
}

.input-wrapper input:focus,
.select-wrapper select:focus,
#customComments:focus {
  border-color: #4f29a1 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(79, 41, 161, 0.1) !important;
}

.input-wrapper .input-icon,
.select-wrapper .select-icon {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #999 !important;
  pointer-events: none !important;
}

/* Custom Comments Area */
#customCommentsContainer {
  transition: all 0.3s ease !important;
}

#customComments {
  min-height: 150px !important;
  resize: vertical !important;
  font-family: inherit !important;
}

.custom-comments-info {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 8px 0 !important;
  font-size: 14px !important;
  color: #666 !important;
}

.comment-counter {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.comment-counter.error {
  color: #dc3545 !important;
}

/* Submit Button */
.submit-btn {
  width: 100% !important;
  padding: 14px 28px !important;
  background: #4f29a1 !important;
  color: white !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
}

.submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(79, 41, 161, 0.2) !important;
  background-color: #7254b4 !important;
}

.submit-btn:active {
  transform: translateY(0) !important;
}

.submit-btn:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Results Area */
.results {
  text-align: center !important;
}

.results-response {
  color: #4f29a1 !important;
  font-weight: 500 !important;
}

/* Info Banner */
.info-banner {
  margin-top: 32px !important;
  padding: 16px !important;
  background: #f8f9fa !important;
  border-radius: 10px !important;
  display: flex !important;
  gap: 12px !important;
  align-items: flex-start !important;
}

.info-banner i {
  color: #4f29a1 !important;
  margin-top: 3px !important;
}

.info-banner p {
  font-size: 14px !important;
  color: #666 !important;
  margin: 0 !important;
}

/* Responsive Design */
@media (max-width: 544px) {
  .container {
    margin: auto;
    margin-bottom: 50px !important;
    width: calc(100% + 20px);
    padding: 10px;
    margin-left: -10px;
  }
}

@media (max-width: 480px) {
  .toggle button {
    padding: 10px 16px !important;
    font-size: 14px !important;
  }

  .submit-btn {
    padding: 12px 24px !important;
    font-size: 15px !important;
  }

  .info-banner {
    padding: 14px !important;
  }
}

/* Loader Styles */
.loader {
  margin: 16px auto !important;
}

/* Tooltip Styles */
.tooltip {
  position: relative !important;
  display: inline-block !important;
  border-bottom: none !important;
}

.tooltip i {
  color: #4f29a1 !important;
  cursor: help !important;
}

.tooltip .tooltip-text {
  visibility: hidden !important;
  position: absolute !important;
  bottom: 125% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #333 !important;
  color: white !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.tooltip:hover .tooltip-text {
  visibility: visible !important;
  opacity: 1 !important;
}

.mode-hidden {
  display: none;
}

/* Rate Limit Status */
.rate-limit-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 10px;
  background-color: #f3f0f9;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  margin-bottom: 10px;
}

.timer-display {
  color: #dc3545;
  font-weight: 600;
}

.usage-display {
  color: #4f29a1;
  font-weight: 600;
}

/* Tool Note */
.tool-note {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background-color: #f5f5f5;
  border-radius: 5px;
  border-left: 4px solid #f77737;
}

.tool-note p {
  margin: 0 !important;
  font-size: 12px;
  color: #777;
  text-align: center;
}
