// ==============================================================================
// Shadow Design — Toast & Notification Styles
// ==============================================================================
@use '../variables' as *;
@use '../zindex' as *;
@use '../mixins' as *;
@layer sd-components {
.sd-notification-container {
position: fixed;
bottom: 12px;
right: 12px;
z-index: z('notification');
display: flex;
flex-direction: column;
gap: 10px;
width: min(380px, calc(100vw - 24px));
max-width: 380px;
pointer-events: none;
@media (min-width: 640px) {
bottom: 20px;
right: 20px;
}
}
.sd-notification-stack {
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
}
.sd-toast {
pointer-events: auto;
position: relative;
overflow: hidden;
padding: 14px 16px 14px 19px;
background-color: #0e0e14;
border: $border-hairline;
border-radius: var(--sd-radius-md, $radius-md);
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.85);
display: flex;
align-items: flex-start;
gap: 12px;
font-family: $font-sans;
transition: all $duration-normal ease;
@include specular-top(0.1);
&::before {
content: '';
position: absolute;
inset: 0 auto 0 0;
width: 3px;
background: var(--sd-toast-accent, currentColor);
box-shadow: 0 0 12px var(--sd-toast-glow, transparent);
}
&--info {
--sd-toast-accent: #{$color-info};
--sd-toast-glow: rgba(168, 85, 247, 0.4);
}
&--success {
--sd-toast-accent: #{$color-success};
--sd-toast-glow: rgba(16, 185, 129, 0.4);
}
&--warning {
--sd-toast-accent: #{$color-warning};
--sd-toast-glow: rgba(245, 158, 11, 0.4);
}
&--danger {
--sd-toast-accent: #{$color-danger};
--sd-toast-glow: rgba(244, 63, 94, 0.4);
}
&--glow-info {
box-shadow: 0 0 24px rgba(168, 85, 247, 0.28), 0 16px 32px rgba(0, 0, 0, 0.85);
}
&--glow-success {
box-shadow: 0 0 24px rgba(16, 185, 129, 0.28), 0 16px 32px rgba(0, 0, 0, 0.85);
}
&--glow-warning {
box-shadow: 0 0 24px rgba(245, 158, 11, 0.28), 0 16px 32px rgba(0, 0, 0, 0.85);
}
&--glow-danger {
box-shadow: 0 0 24px rgba(244, 63, 94, 0.32), 0 16px 32px rgba(0, 0, 0, 0.85);
}
&__icon {
flex-shrink: 0;
margin-top: 2px;
display: inline-flex;
align-items: center;
justify-content: center;
&--info { color: #c084fc; }
&--success { color: #34d399; }
&--warning { color: #fbbf24; }
&--danger { color: #fb7185; }
}
&__content {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
&__title {
font-size: 13px;
font-weight: 600;
color: #ffffff;
line-height: 1.3;
}
&__body {
font-size: 12px;
color: $zinc-300;
line-height: 1.5;
}
&__close {
flex-shrink: 0;
padding: 4px;
color: $zinc-500;
border-radius: 6px;
background: transparent;
border: none;
cursor: pointer;
line-height: 1;
display: inline-flex;
align-items: center;
justify-content: center;
margin-right: -4px;
margin-top: -4px;
transition: all $duration-fast ease;
&:hover {
color: #ffffff;
background-color: rgba(255, 255, 255, 0.08);
}
}
}
}