/* Toast Notifications for Copy Buttons
===================================================== */
/* Toast container - fixed position at bottom center */
#tenets-toast-container {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
z-index: 100000;
pointer-events: none;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
}
/* Toast notification base styles */
.tenets-toast {
background: linear-gradient(135deg, #1a2332 0%, #263244 100%);
color: #fbbf24;
padding: 0.875rem 1.5rem;
border-radius: 12px;
font-size: 0.9rem;
font-weight: 600;
box-shadow:
0 8px 24px rgba(0, 0, 0, 0.25),
0 4px 8px rgba(0, 0, 0, 0.15),
inset 0 1px 0 rgba(255, 255, 255, 0.05);
border: 1px solid rgba(251, 191, 36, 0.2);
opacity: 0;
transform: translateY(20px) scale(0.95);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
pointer-events: auto;
white-space: nowrap;
position: relative;
overflow: hidden;
animation: toastSlideUp 0.3s ease forwards;
}
/* Light mode toast */
[data-md-color-scheme="default"] .tenets-toast {
background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 60%, #f59e0b 100%);
color: #1a2332;
box-shadow:
0 8px 24px rgba(245, 158, 11, 0.25),
0 4px 8px rgba(245, 158, 11, 0.15),
inset 0 1px 0 rgba(255, 255, 255, 0.4);
border: 1px solid rgba(245, 158, 11, 0.3);
}
/* Toast visible state */
.tenets-toast.visible {
opacity: 1;
transform: translateY(0) scale(1);
}
/* Success checkmark icon */
.tenets-toast::before {
content: '✓';
margin-right: 0.5rem;
font-size: 1.1rem;
display: inline-block;
animation: checkmarkPop 0.3s ease 0.1s both;
}
/* Error variant */
.tenets-toast--error {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
color: #fff;
border-color: rgba(220, 38, 38, 0.3);
}
.tenets-toast--error::before {
content: '✕';
animation: none;
}
/* Subtle glow effect */
.tenets-toast::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg,
transparent,
rgba(255, 255, 255, 0.2),
transparent
);
animation: shimmer 1s ease 0.3s;
}
/* Animations */
@keyframes toastSlideUp {
from {
opacity: 0;
transform: translateY(20px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes checkmarkPop {
0% {
transform: scale(0) rotate(-180deg);
}
50% {
transform: scale(1.2) rotate(10deg);
}
100% {
transform: scale(1) rotate(0);
}
}
@keyframes shimmer {
to {
left: 100%;
}
}
/* Mobile adjustments */
@media screen and (max-width: 600px) {
#tenets-toast-container {
bottom: 16px;
width: calc(100% - 2rem);
max-width: 320px;
}
.tenets-toast {
padding: 0.75rem 1.25rem;
font-size: 0.85rem;
width: 100%;
text-align: center;
}
}
/* Very small screens */
@media screen and (max-width: 380px) {
.tenets-toast {
padding: 0.6rem 1rem;
font-size: 0.8rem;
}
.tenets-toast::before {
font-size: 0.9rem;
}
}
/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
.tenets-toast {
animation: none;
transition: opacity 0.2s ease;
}
.tenets-toast::before {
animation: none;
}
.tenets-toast::after {
animation: none;
}
}
/* Copy button visual feedback on click */
.copy-btn:active {
transform: scale(0.95);
transition: transform 0.1s ease;
}
/* Add ripple effect to copy buttons */
.copy-btn {
position: relative;
overflow: hidden;
}
.copy-btn::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
transform: translate(-50%, -50%);
transition: width 0.3s, height 0.3s;
}
.copy-btn:active::after {
width: 100px;
height: 100px;
}
[data-md-color-scheme="slate"] .copy-btn::after {
background: rgba(251, 191, 36, 0.3);
}