.emayetel-toast-container {
position: fixed;
top: 20px;
left: 20px;
z-index: 999999;
display: flex;
flex-direction: column;
gap: 10px;
max-width: 400px;
} .emayetel-toast {
background: white;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
padding: 16px 20px;
display: flex;
align-items: flex-start;
gap: 12px;
position: relative;
overflow: hidden;
transform: translateX(-120%);
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
min-height: 60px;
border-left: 4px solid #27ae60;
}
.emayetel-toast.show {
transform: translateX(0);
}
.emayetel-toast.hide {
transform: translateX(-120%);
opacity: 0;
} .emayetel-toast.success {
border-left-color: #27ae60;
}
.emayetel-toast.error {
border-left-color: #e74c3c;
}
.emayetel-toast.info {
border-left-color: #3498db;
}
.emayetel-toast.warning {
border-left-color: #f39c12;
} .emayetel-toast-icon {
font-size: 24px;
line-height: 1;
flex-shrink: 0;
margin-top: 2px;
}
.emayetel-toast.success .emayetel-toast-icon {
color: #27ae60;
}
.emayetel-toast.error .emayetel-toast-icon {
color: #e74c3c;
}
.emayetel-toast.info .emayetel-toast-icon {
color: #3498db;
}
.emayetel-toast.warning .emayetel-toast-icon {
color: #f39c12;
} .emayetel-toast-content {
flex: 1;
min-width: 0;
}
.emayetel-toast-title {
font-weight: 600;
font-size: 14px;
color: #2c3e50;
margin: 0 0 4px 0;
line-height: 1.3;
}
.emayetel-toast-message {
font-size: 13px;
color: #7f8c8d;
margin: 0;
line-height: 1.4;
} .emayetel-toast-actions {
display: flex;
gap: 8px;
margin-top: 8px;
}
.emayetel-toast-btn {
background: none;
border: 1px solid #e1e8ed;
border-radius: 4px;
padding: 4px 8px;
font-size: 12px;
cursor: pointer;
transition: all 0.2s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 4px;
}
.emayetel-toast-btn-primary {
background: #27ae60;
border-color: #27ae60;
color: white;
}
.emayetel-toast-btn-primary:hover {
background: #219a52;
border-color: #219a52;
}
.emayetel-toast-btn-secondary {
color: #7f8c8d;
}
.emayetel-toast-btn-secondary:hover {
background: #f8f9fa;
border-color: #dee2e6;
} .emayetel-toast-close {
position: absolute;
top: 8px;
right: 8px;
background: none;
border: none;
color: #95a5a6;
font-size: 18px;
cursor: pointer;
opacity: 0.6;
transition: opacity 0.2s ease;
padding: 4px;
line-height: 1;
}
.emayetel-toast-close:hover {
opacity: 1;
} .emayetel-toast-progress {
position: absolute;
bottom: 0;
left: 0;
height: 3px;
background: rgba(255, 255, 255, 0.3);
transition: width linear;
}
.emayetel-toast.success .emayetel-toast-progress {
background: #27ae60;
}
.emayetel-toast.error .emayetel-toast-progress {
background: #e74c3c;
}
.emayetel-toast.info .emayetel-toast-progress {
background: #3498db;
}
.emayetel-toast.warning .emayetel-toast-progress {
background: #f39c12;
} @media (max-width: 768px) {
.emayetel-toast-container {
left: 10px;
right: 10px;
max-width: none;
}
.emayetel-toast {
padding: 14px 16px;
font-size: 13px;
}
.emayetel-toast-icon {
font-size: 20px;
}
.emayetel-toast-title {
font-size: 13px;
}
.emayetel-toast-message {
font-size: 12px;
}
} @media (max-width: 480px) {
.emayetel-toast-container {
top: 10px;
left: 10px;
right: 10px;
}
.emayetel-toast {
padding: 12px 14px;
}
.emayetel-toast-actions {
flex-direction: column;
gap: 6px;
}
.emayetel-toast-btn {
width: 100%;
justify-content: center;
}
} @keyframes emayetel-toast-in {
from {
transform: translateX(-120%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes emayetel-toast-out {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(-120%);
opacity: 0;
}
} .emayetel-toast-loading {
display: inline-block;
width: 16px;
height: 16px;
border: 2px solid #f3f3f3;
border-top: 2px solid #27ae60;
border-radius: 50%;
animation: emayetel-spin 1s linear infinite;
}
@keyframes emayetel-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}