.hero-bg {
  background: 
    linear-gradient(to bottom, transparent 0%, transparent 60%, var(--bs-body-bg) 100%),
    radial-gradient(1200px 400px at 10% -10%, rgba(34,211,238,.25), transparent),
    radial-gradient(800px 300px at 90% -20%, rgba(107,92,255,.25), transparent);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h3, h4 {
	margin-top: 1.3em;
}
h5 {
	margin-top: 1em;
}

#tidy_response h1, #chat-container h1 {
	font-size: 1.4rem;
}

#tidy_response h2, #chat-container h2 {
	font-size: 1.3rem;
}

#tidy_response h3, #chat-container h3 {
	font-size: 1.2rem;
}

#tidy_response h4, #chat-container h4 {
	font-size: 1.1rem;
}

#tidy_response li, #chat-container li {
	margin-bottom: 5px;
}

#tidy_response li > p, #chat-container li > p {
	margin-bottom: 0;
}

#tidy_response table, #chat-container table {
	margin-bottom: 20px;
}

#tidy_response table tr:nth-child(even), #tidy_response table th, #chat-container table tr:nth-child(even), #chat-container table th {
	background-color: var(--bs-secondary-bg);
}

#tidy_response table th, #tidy_response table td, #chat-container table th, #chat-container table td {
	padding: 5px;
}

.hide {
	display: none;
}

.label {
	color: var(--bs-secondary-color);
	font-size: .875rem;
}

.navbar-expand-lg {
	align-items: end;
}
.navbar-nav > li > a  {
    padding: 0;
    margin: 0 0 3px 0;
    vertical-align: bottom;
}
.nav-item {
	transform: translateY(9px);
	padding-bottom: 6px;
	border-bottom: 1px solid transparent;
	box-sizing: border-box;
}

.hidden {
	display: none;
}

button[disabled]:not(#send-btn):not(.no-spinner):after {
	content: " ";
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-left: 10px;
	margin-bottom: -2px;
	border-radius: 50%;
	border: 2px solid #fff;
	border-color: #fff transparent #fff transparent;
	animation: lds-dual-ring 2s linear infinite;
	box-sizing: border-box;
}


/* chat button */
button#send-btn .loading-spinner {
	display: none; /* Standard: Spinner verstecken */
}

button#send-btn:disabled .send-icon {
	display: none;  /* Icon nur zeigen, wenn nicht disabled */
}

button#send-btn:disabled .loading-spinner {
	display: inline-block;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 2px solid #fff;
	border-color: #fff transparent #fff transparent;
	animation: lds-dual-ring 2s linear infinite;
	box-sizing: border-box;
	vertical-align: middle;
}


@keyframes pulse {
	0% {
	  opacity: 1;
	}
	50% {
	  opacity: 0.5;
	}
	100% {
	  opacity: 1;
	}
}

.inactive {
	opacity: 0.4;
	cursor: default;
}

.disabled {
	animation: pulse 1.0s infinite ease-in-out;
	color: hotpink;
}

.think {
	font-size: .875em;
	font-style: italic;
}

.think p {
	margin-bottom: 0.5rem;
}

.form-group {
	position: relative;
	z-index: 0;
}

.dropdown {
	position: relative;
	z-index: 2;
	animation: dropdownFadeIn 0.2s ease-in-out;
}

/* Smooth transition when context menu becomes visible */
@keyframes dropdownFadeIn {
    from {opacity: 0;} to {opacity: 1;}
}

.response-container {
	position: relative;
	margin-bottom: 5px;
	word-wrap: break-word;
}

.response-text-container,
.response-image-container {
	min-height: 38px;
	padding-right: 44px;
	width: auto;
}
.response-image-container {
	margin-left: 24px;
	border: none;
}
.response-container input[type="radio"],
.response-container input[type="checkbox"] {
	position: absolute;
	top: 6px;
}

.clipboard-button {
	background-size: auto 15px;
	background-repeat: no-repeat;
	background-position: center;
	width: 26px;
	height: 26px;
	position: absolute;
	right: 6px;
	top: 6px;
	padding: 0;
	box-sizing: border-box;
	border: 0;
}
.clipboard-button.paste {
	top: 30px;
}
.clipboard-button.close {
	top: 30px;
	background-image: url(../img/x-solid.svg);
}

div.highlight {
	padding: 20px;
	border-radius: 6px;
}

.link-unstyled {
	color: inherit;
	text-decoration: inherit;
}

.audio-entry {
	display: flex;
	align-items: center;
	gap: 10px;
}
.audio-entry.hidden {
	display: none;
}
.audio-entry .title {
	flex: 1;
}
.audio-entry .duration {
	font-family: var(--bs-font-monospace);
	font-size: .8em;
}
.audio-entry img {
	width: 15px;
	height: 15px;
}
.audio-entry:hover {
	cursor: pointer;
}

/* Images in llm output */
img.img-result {
	max-width: 60%;
	margin: 10px 10px 10px 0;
}

/* Plots */
.plot {
	margin-bottom: 1rem;
}

.plot-thumb{
	width: 180px;
	height: auto;
}

.generated-image-landscape {
	width: 100%;
}
.generated-image-portrait {
	width: 60%;
}
.generated-image-square {
	width: 100%;
}

@media (prefers-color-scheme: light) {
	div.highlight {
		color: var(--bs-body-bg);
	}
}

.plot-sm {
	width: 100%;
	margin-bottom: 1rem;
}

.plot {
	width: 100%;
	margin-bottom: 1rem;
}

@media (min-width: 992px) {
	.nav-item.active {
		border-bottom: 1px solid var(--bs-nav-link-color);
	}

	.plot-sm {
		width: 70%;
		margin-bottom: 1rem;
	}

	.plot-thumb{
		width: 400px;
		height: auto;
	}

	.generated-image-landscape {
		width: 70%;
	}
	.generated-image-portrait {
		width: 30%;
	}
	.generated-image-square {
		width: 40%;
	}
	
}

@media (min-width: 1600px) {
    .modal-xxl {
        --bs-modal-width: 1500px;
    }
}

@keyframes lds-dual-ring {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Voice and audio cards */
.provider-Microsoft {
	--bs-card-bg: #dff0fb;
	--bs-card-color: #002b80;
}

.provider-Elevenlabs {
	--bs-card-bg: #dfffea;
	--bs-card-color: #004d26;
}

.provider-Google {
	--bs-card-bg: #faccff80;
	--bs-card-color: #32004d;
}

.provider-unknown {
	--bs-card-bg: #dfe6ed;
}

.audiotype-bed {
	--bs-card-bg: #fffbea;
}

.audiotype-bub {
	--bs-card-bg: #e7dfff;
}

.audiotype-unknown {
	--bs-card-bg: #dfe6ed;
}

.audio-card {
	background-color: #f9fafb;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
	.provider-Microsoft {
		--bs-card-bg: #003366;
		--bs-card-color: #cce0ff;
	}

	.provider-Elevenlabs {
		--bs-card-bg: #004d26;
		--bs-card-color: #ccffdd;
	}

	.provider-Google {
		--bs-card-bg: #32004d;
		--bs-card-color: #f0ccff;
	}

	.provider-unknown {
		--bs-card-bg: #434b53;
	}

	.audiotype-bed {
		--bs-card-bg: #423a28;
	}

	.audiotype-bub {
		--bs-card-bg: #372b50;
	}

	.audiotype-unknown {
		--bs-card-bg: #434b53;
	}

	.audio-card {
		background-color: #141414;
	}
}

.cards.row {
	margin-right: 0;
	margin-left: 0;
}

.card-body {
    padding: 0.8rem 0.8rem;
}

.profile-pic {
    width: 63px;
    height: 63px;
    border-radius: 50%;
}
 
.profile-pic-large {
    width: 230px;
    height: 230px;
    border-radius: 50%;
}
 
.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
	line-height: 1.3;
	margin-top: 0;
	font-size: 1.1rem;
}
 
.card-subtitle {
	height: 2.7em;
	line-height: 1.3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-description {
	height: 2.7em;
	line-height: 1.3em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	font-style: italic;
}

.audio-chip-subtitle {
	line-height: 1.3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-chip-description {
	line-height: 1.3em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	font-style: italic;
}

.dict-search {
	font-weight: 500;
	line-height: 0.9rem;
	margin-bottom: 0;
}

.dict-substitution {
	font-size: .875em;
	margin-bottom: 0;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.spin {
	animation: spin 2s infinite linear;
	transform-origin: 50% 51%;
}

.play-button {
	color: var(--bs-secondary);
}

.play-button:hover {
	color: var(--bs-secondary-text-emphasis);
}

.icon-disabled {
	opacity: 0.5;
}

/* Transcript cards */
.dialogue-description {
	font-style: italic;
}

.card-body .badge-pill.badge-directive{
	background-color: #fbda9c;
	color: #333;
	vertical-align: text-bottom;
	line-height: 0.9;
}

.chip {
  display: inline-block;
  padding: 0 16px;
  height: 32px;
  font-size: 0.95em;
  line-height: 32px;
  border-radius: 16px;
  background: var(--bs-card-bg);
  color: var(--bs-card-color);
}

.chip img {
  float: left;
  margin: 0 10px 0 -16px;
  height: 32px;
  width: 32px;
  border-radius: 50%;
}

/* Small screen, smartphone */
@media screen and (max-width: 1259px) {
	.card-title {
		display: -webkit-box;
		-webkit-line-clamp: 1;
		-webkit-box-orient: vertical;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: 1.0rem;
		line-height: 1.3;
		margin-top: 0;
	}

	.card-icon-group {
		min-width: 100px;
	}
	
}

/* Padding to get last message above the chat input area */
#chat-container {
    padding-bottom: calc(var(--chat-input-height) + env(safe-area-inset-bottom, 0px)) !important;
    scroll-behavior: smooth;
}

.chat-scroll-spacer {
    height: 85vh;
    width: 100%;
    display: block;
    pointer-events: none;
}

/* Hide chat below input area */
#chat-input-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background-color: var(--bs-body-bg);
    z-index: -1;
    pointer-events: none;
}

/* Chat input area shadow styling */
.chat-input-area {
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Workflow tree */
.offcanvas-large {
	width: 500px !important;
}

.icon-placeholder {
    display: inline-block;
    width: 1.25em; /* Matches the clock icon width */
    height: 1em;   /* matches icon height, if needed */
    vertical-align: middle;
}

/* Workflow editor */
/* Inactive dragable cards */
.draggable-card.inactive {
	opacity: 0.65;
	filter: grayscale(100%);
	transform: scale(0.98);
}

.workflow-header {
	background-color: var(--bs-body-bg);
	border-radius: 6px;
}

/* Dark Mode */
[data-bs-theme="dark"] .draggable-card.inactive {
	opacity: 0.55;
}

.draggable-card {
	cursor: move;
	margin-bottom: 10px;
	border: 1px solid #ddd;
	padding: 15px;
	background: var(--bs-body-bg);
	transition: all 0.3s ease;
}
.drag-handle {
	cursor: move;
	color: #666;
	margin-right: 10px;
}
.step-container {
	border: 2px dashed #ccc;
	padding: 15px;
	margin: 10px 0;
	min-height: 100px;
}
.parallel-container {
	border: 2px solid;
	padding: 15px;
	margin: 10px 0;
	background-color: var(--bs-body-bg);
	position: relative; /* For proper handle positioning */
}
.dragover {
	background-color: #e9ecef;
	border: 2px dashed #007bff;
}
.json-preview {
	background: var(--bs-body-bg);
	padding: 15px;
	border-radius: 5px;
	font-family: monospace;
	white-space: pre-wrap;
}
.container-actions {
	position: absolute;
	right: 10px;
	top: 10px;
}
/* Container drag handle */
.container-drag-handle {
	position: absolute;
	left: 10px;
	top: 10px;
	cursor: move;
	color: #666;
	padding: 5px;
}
.property-row {
	margin-bottom: 10px;
}

.step-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
}

.properties-container {
	margin-top: 10px;
	padding: 10px;
	background-color: var(--bs-tertiary-bg);
	border-radius: 5px;
	transition: height 0.2s ease-in-out;
}

/* Style for the properties toggle section */
.properties-header {
	padding: 0.5rem 0;
	cursor: pointer;
}

.properties-header:hover {
	background-color: rgba(0,0,0,0.05);
}

/* Rotate icon when properties are expanded */
.properties-header.expanded .toggle-icon {
	transform: rotate(90deg);
}

.toggle-icon {
	transition: transform 0.2s ease-in-out;
}

.no-border {
	border: none;
}

/* Custom styles for the image upload area */
.image-preview-container {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.delete-button {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	display: none;
}

.upload-icon {
	font-size: 3rem;
	color: #6c757d;
	margin-bottom: 1rem;
}

.file-input {
	display: none;
}


/* MASK */

.inpaintMaskCanvas {
	display: none; 
    touch-action: none;
    pointer-events: auto;
    background: transparent;
    opacity: 0.6;
    cursor: crosshair;
	position: absolute; 
	left: 0; 
	top: 0; 
	z-index: 5;
}

.mask-toolbar {
	display: none; 
	flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 5px;
    position: static;
}

.mask-toolbar input[type="range"] {
    vertical-align: middle;
}

/* External APIs */
.action-icons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
}

/* Required styles for AnimatedContainer */
.animated-container {
    transition: none; /* Prevent CSS transitions from interfering */
}
 
.animated-container .expanding {
    transform-origin: top;
}
 
.animated-container .shrinking {
    transform-origin: top;
}
 
/* Optional: Smooth container height changes when not animating */
.animated-container:not(.animating) {
    transition: min-height 0.2s ease;
}

/* TTS Audio Uploader */
.upload-input { display: none; }

/* file-upload */
.fu-dropzone, .fu-dropzone-overlay {
	border: 2px dashed #aaa; 
	min-height: 44px; 
	display: flex; 
	flex-direction: column;
	align-items: center; 
	justify-content: center; 
	cursor: pointer; 
	background: rgba(var(--bs-primary-rgb), 0.1);
	border-radius: 7px; 
}

.fu-dropzone.highlight {
	background: rgba(var(--bs-primary-rgb), 0.4); 
	border-color: var(--bs-primary-border-subtle, #4a90e280);
}

.fu-dropzone-overlay-message {
	color: var(--bs-secondary-color, #6c757d);
	background: rgba(var(--bs-tertiary-bg-rgb), 0.7); 
	border: 2px dashed #aaa; 
	border-radius: 7px; 
	text-align: center;
	max-width: 80%;
}

.fu-dropzone-overlay {
	position: fixed; 
	top: 0;
	left: 0;
	right: 0;
	bottom: 0; 
	z-index: 2000; 
	opacity: 0; 
	pointer-events: none; 
	transition: opacity .25s;
}

.fu-dropzone-overlay.show {
	opacity: 1; 
	pointer-events: all;
}

.fu-files-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: .5rem;
    background: transparent;
	position: relative;
}
 
.fu-files-bar:empty {
    display: none !important;
}
.fu-thumb-card.card {
    transition: box-shadow .13s, transform .13s, border-color .13s;
    border-radius: var(--bs-border-radius);
    border: 1.5px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-card-bg, #fff);
    box-shadow: 0 2px 6px rgba(0,0,0,.045) !important;
    cursor: pointer;
    width: 106px;
    aspect-ratio: 1;
    min-width: 90px;
    user-select: none;
    position: relative;
    overflow: hidden;
}
.fu-thumb-card:hover, .fu-thumb-card:focus-within {
    transform: scale(1.08);
    box-shadow: 0 6px 16px var(--bs-secondary-bg, rgba(100,100,120,.18));
    z-index: 5;
    border-color: var(--bs-primary-border-subtle, #4a90e280);
}
.fu-thumb-img {
    width: 100%; height: 100%; min-width: 90px; min-height: 90px;
    object-fit: cover; background: var(--bs-tertiary-bg,#f4f4f4);
    border-radius: var(--bs-border-radius);
}
.fu-remove-btn {
    opacity: 0;
    z-index: 20;
    transition: background 0.15s, box-shadow 0.15s;
}
.fu-remove-btn:hover, .fu-remove-btn:focus {
    background: var(--bs-danger-bg-subtle);
    color: var(--bs-danger);
}

@media (pointer: coarse) {
  .fu-remove-btn {
    opacity: 1;
  }
}

.fu-thumb-card:hover .fu-remove-btn,
.fu-thumb-card:focus-within .fu-remove-btn {
    opacity: 1;
}

.fu-file-icon {
    font-size: 1.8rem !important;
    color: var(--bs-secondary-color, #6c757d) !important;
}
.card-body {
    background: transparent !important;
}
.fu-thumb-info {
    width: 100%;
    min-height: 2em;
}

.fu-thumb-card {
    transition: transform 220ms cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
    cursor: grab;
    z-index: 1;
    will-change: transform;
    backface-visibility: hidden;
}

.fu-thumb-card.dragging {
    opacity: 0.3;
    z-index: 3;
}

.fu-thumb-card.dragging-active {
    box-shadow: 0 4px 20px rgba(60,60,60,0.2);
    opacity: 0.6;
	z-index: 100;
	cursor: grabbing !important;
    transform: scale(0.95);
    transition: opacity 100ms ease, transform 100ms ease;
}

.fu-thumb-ghost {
	position: fixed;
	opacity: 0.65;
	pointer-events: none;
	z-index: 9999;
	box-shadow: 0 12px 48px 0 rgba(0,0,0,0.38);
	border-radius: 8px;
	transition: none !important;
    transform: rotate(3deg) scale(1.02);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* Prevent image flickering during reorder */
.fu-thumb-card img {
    image-rendering: optimizeQuality;
    backface-visibility: hidden;
}
 
.fu-thumb-card:hover:not(.dragging-active) {
    transform: translateY(-2px);
    transition: transform 150ms ease;
}

/* Article modal */
article h1 {
	font-size: 1.4rem;
}

article h2{
	font-size: 1.3rem;
}

article h3{
	font-size: 1.2rem;
}

/* History */
.history-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f8f9fa;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
 
.history-thumbnail[src] {
    opacity: 1;
}

/* Smooth transition when replacing loading spinner in transcript card */
.card-body > div {
    transition: opacity 0.3s ease-in-out;
}

/* Calculate chat input height dynamically */
:root {
	--top-offset-height: 150px;
	--chat-input-height: 70px;
}

/* Initial Chat message */
.initial-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
	min-height: calc(100dvh - var(--top-offset-height) - var(--chat-input-height));
	padding-bottom: var(--chat-input-height);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-section {
    margin-bottom: 1rem;
}

.initial-container-chat-active {
    justify-content: flex-start;
    min-height: auto;
    padding-bottom: 0;
}

.chat-width {
    max-width: 1000px;
}

#chat-input-container {
	transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Chat styles */

.chat-box-shadow {
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
}

.border-radius-2 {
	border-radius: 0.5rem;
}

.message {
	margin-bottom: 2rem;
	animation: fadeIn 0.3s;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Chat input on small screens */
@media (max-width: 768px) {
	.container-chat-input{
		padding-left: 0;
		padding-right: 0;
	}

	.border-radius-2 {
		border-radius: 0;
	}
}

/* Smaller buttons on medium screens */
@media (min-width: 768px) {
    .btn-sm-md {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        border-radius: 0.25rem;
    }
}

.message-user {
	display: flex;
	justify-self: end;
	justify-content: flex-end;
	max-width: 90%;
	border-radius: 1rem;
	border-bottom-right-radius: 0.1rem;
	padding: 0.75rem;
	scroll-margin-top: 8px;
}

.message-content {
	max-width: 100%;
    overflow-wrap: break-word;
}

.message-content img:not([class], .chip img) {
    max-width: 40%;
    margin: 10px 10px 10px 0;
}

#input-area {
	background: white;
	padding: 1rem;
	border-radius: 0.5rem;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Button fadein/out */
.fade-button {
	opacity: 1;
	transition: opacity 0.3s ease-in-out;
}

.fade-button.fade-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Typing indicator container */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

/* Typing indicator dots */
.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bs-secondary);
    animation: typing-bounce 1.4s infinite ease-in-out;
}

/* Delay animation for each dot */
.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Bounce animation for typing dots */
@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

pre {
	position: relative; /* Absolute positioning of copy button */
	border-radius: 0.5rem;
}

/* Copy button - icon only, positioned inside code block */
.copy-code-button {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background-color: transparent;
	border: none;
	color: #fff; /* Always white for dark code theme */
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.25rem;
	opacity: 0.6;
}

.copy-code-button:hover {
	opacity: 1;
	transform: scale(1.1);
}

.copy-code-button:active {
	transform: scale(0.95);
}

.copy-code-button:focus {
	outline: 2px solid var(--bs-primary-border-subtle, #4a90e280);
	outline-offset: 2px;
	opacity: 1;
}

.copy-code-button:focus:not(:focus-visible) {
	outline: none;
}

.copy-code-button.copied {
	opacity: 1;
	color: #28a745; /* Success green color */
}

.copy-code-button i {
	font-size: 1.125rem;
	pointer-events: none; /* Prevent icon from intercepting clicks */
}

/* Ensure code blocks are scrollable */
pre code {
	display: block;
	overflow-x: auto;
}

/* Card copy text: Preserve whitespace and line breaks in the card body */
.card-copy-text {
    font-family: inherit;
	font-size: 1em;
    white-space: pre-wrap;
    word-break: break-word;
}

pre.card-copy-text p {
	margin-bottom: 0;
}

.action-card.card-body {
	border-radius: var(--bs-card-border-radius);
    background: var(--bs-tertiary-bg) !important;
}
