File size: 3,113 Bytes
dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 dd7ffbd bc2f725 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
/* Toast Notification System */
.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 Types */
.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);
}
/* Mobile Responsive */
@media (max-width: 768px) {
.toast-container {
top: 10px;
right: 10px;
left: 10px;
max-width: none;
}
.toast {
min-width: auto;
}
}
|