/* Rahat Kredit – remove blink/caret artifacts on non-input transition UI */

/* No text selection or caret on decorative transition elements */
img[src*="rahat-kredit-logo"],
header img,
nav img,
[data-testid="approval-title"],
[data-testid="supsis-chat-loading"],
.ss-calc-nav-overlay,
.ss-calc-nav-box {
  -webkit-user-select: none;
  user-select: none;
}

/* Logo: remove bounce/pulse decorative animations */
.animate-bounce img[src*="rahat-kredit-logo"],
img[src*="rahat-kredit-logo"].animate-pulse,
img[src*="rahat-kredit-logo"].animate-bounce {
  animation: none !important;
}

div.animate-bounce:has(img[src*="rahat-kredit-logo"]) {
  animation: none !important;
}

/* Approval / loading screens: remove pulse on check icon and headings */
.min-h-screen .animate-pulse:not(input):not(textarea):not(select):not([contenteditable="true"]) {
  animation: none !important;
}

/* Tesdiq loading spinner: single clean ring (dual partial borders look like blinking lines) */
.min-h-screen .relative.w-40.h-40 > .animate-spin:not(:first-child) {
  display: none !important;
}

.min-h-screen .relative.w-40.h-40 > .animate-spin:first-child {
  border: 4px solid #dbeafe !important;
  border-top-color: #22c55e !important;
  border-right-color: #dbeafe !important;
  border-bottom-color: #dbeafe !important;
  border-left-color: #dbeafe !important;
}

/* During route transitions, suppress all decorative bounce/pulse */
html.ss-route-transition .animate-bounce,
html.ss-route-transition .animate-pulse {
  animation: none !important;
}

/* Global caret suppression – only real text fields show a blinking caret */
html {
  caret-color: transparent;
}

input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="image"]),
textarea,
select,
[contenteditable="true"],
[role="textbox"],
[role="combobox"],
[role="searchbox"] {
  caret-color: auto;
}

/* No focus ring on non-interactive marketing text (buttons/links keep default) */
*:not(input):not(textarea):not(select):not([contenteditable="true"]):not(a):not(button):not([role="button"]):not([role="link"]):focus {
  outline: none;
}
