|
|
|
|
|
.toast-container {
|
|
|
position: fixed;
|
|
|
top: 20px;
|
|
|
right: 20px;
|
|
|
z-index: 10000;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
gap: 10px;
|
|
|
max-width: 400px;
|
|
|
}
|
|
|
|
|
|
.toast {
|
|
|
background: rgba(17, 24, 39, 0.95);
|
|
|
backdrop-filter: blur(20px);
|
|
|
border: 1px solid var(--border);
|
|
|
border-radius: 12px;
|
|
|
padding: 16px 20px;
|
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
gap: 12px;
|
|
|
animation: slideIn 0.3s ease;
|
|
|
min-width: 300px;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
@keyframes slideIn {
|
|
|
from {
|
|
|
transform: translateX(400px);
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
transform: translateX(0);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.toast.removing {
|
|
|
animation: slideOut 0.3s ease forwards;
|
|
|
}
|
|
|
|
|
|
@keyframes slideOut {
|
|
|
from {
|
|
|
transform: translateX(0);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
transform: translateX(400px);
|
|
|
opacity: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.toast-icon {
|
|
|
width: 40px;
|
|
|
height: 40px;
|
|
|
border-radius: 10px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
font-size: 18px;
|
|
|
flex-shrink: 0;
|
|
|
}
|
|
|
|
|
|
.toast-content {
|
|
|
flex: 1;
|
|
|
}
|
|
|
|
|
|
.toast-title {
|
|
|
font-weight: 600;
|
|
|
font-size: 14px;
|
|
|
margin-bottom: 4px;
|
|
|
color: var(--text-primary);
|
|
|
}
|
|
|
|
|
|
.toast-message {
|
|
|
font-size: 13px;
|
|
|
color: var(--text-secondary);
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.toast-close {
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
border-radius: 6px;
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
border: none;
|
|
|
color: var(--text-secondary);
|
|
|
cursor: pointer;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
transition: all 0.2s;
|
|
|
flex-shrink: 0;
|
|
|
}
|
|
|
|
|
|
.toast-close:hover {
|
|
|
background: rgba(255, 255, 255, 0.2);
|
|
|
color: var(--text-primary);
|
|
|
}
|
|
|
|
|
|
.toast-progress {
|
|
|
position: absolute;
|
|
|
bottom: 0;
|
|
|
left: 0;
|
|
|
height: 3px;
|
|
|
background: var(--primary);
|
|
|
animation: progress 5s linear forwards;
|
|
|
}
|
|
|
|
|
|
@keyframes progress {
|
|
|
from { width: 100%; }
|
|
|
to { width: 0%; }
|
|
|
}
|
|
|
|
|
|
|
|
|
.toast.success {
|
|
|
border-left: 4px solid var(--success);
|
|
|
}
|
|
|
|
|
|
.toast.success .toast-icon {
|
|
|
background: rgba(16, 185, 129, 0.2);
|
|
|
color: var(--success);
|
|
|
}
|
|
|
|
|
|
.toast.error {
|
|
|
border-left: 4px solid var(--danger);
|
|
|
}
|
|
|
|
|
|
.toast.error .toast-icon {
|
|
|
background: rgba(239, 68, 68, 0.2);
|
|
|
color: var(--danger);
|
|
|
}
|
|
|
|
|
|
.toast.warning {
|
|
|
border-left: 4px solid var(--warning);
|
|
|
}
|
|
|
|
|
|
.toast.warning .toast-icon {
|
|
|
background: rgba(245, 158, 11, 0.2);
|
|
|
color: var(--warning);
|
|
|
}
|
|
|
|
|
|
.toast.info {
|
|
|
border-left: 4px solid var(--info);
|
|
|
}
|
|
|
|
|
|
.toast.info .toast-icon {
|
|
|
background: rgba(59, 130, 246, 0.2);
|
|
|
color: var(--info);
|
|
|
}
|
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
.toast-container {
|
|
|
top: 10px;
|
|
|
right: 10px;
|
|
|
left: 10px;
|
|
|
max-width: none;
|
|
|
}
|
|
|
|
|
|
.toast {
|
|
|
min-width: auto;
|
|
|
}
|
|
|
}
|
|
|
|