
/* ========================================
   CGent - Ortak Toast Bildirim Sistemi
======================================== */

.cg-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: min(420px, calc(100vw - 32px));
    padding: 15px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(-12px);
    animation: cgToastEnter 0.3s ease forwards;
}

.cg-toast-icon {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
}

.cg-toast-content {
    flex: 1;
    overflow-wrap: anywhere;
}

.cg-toast-close {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 3px;
}

.cg-toast-close:hover {
    color: #111827;
}

.cg-toast-success {
    border-left: 4px solid #16a34a;
}

.cg-toast-success .cg-toast-icon {
    background: #dcfce7;
    color: #15803d;
}

.cg-toast-error {
    border-left: 4px solid #dc2626;
}

.cg-toast-error .cg-toast-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.cg-toast-warning {
    border-left: 4px solid #d97706;
}

.cg-toast-warning .cg-toast-icon {
    background: #fef3c7;
    color: #92400e;
}

.cg-toast-info {
    border-left: 4px solid #2563eb;
}

.cg-toast-info .cg-toast-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.cg-toast.cg-toast-hiding {
    animation: cgToastExit 0.25s ease forwards;
}

@keyframes cgToastEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cgToastExit {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@media (max-width: 600px) {
    .cg-toast {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        padding: 13px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cg-toast,
    .cg-toast.cg-toast-hiding {
        animation-duration: 0.01ms;
    }
}
