/* Toast Notification System */
.ics-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.ics-toast {
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: all;
    animation: ics-toast-slide-in 0.3s ease-out;
    background: #fff;
    border-left: 4px solid #2271b1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.ics-toast.ics-toast-exit {
    animation: ics-toast-slide-out 0.3s ease-in;
}

.ics-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
}

.ics-toast-content {
    flex: 1;
    color: #1e1e1e;
}

.ics-toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #000;
}

.ics-toast-message {
    color: #555;
    font-size: 13px;
}

.ics-toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    color: #1e1e1e;
}

.ics-toast-close:hover {
    opacity: 1;
}

/* Toast Types */
.ics-toast-success {
    border-left-color: #00a32a;
}

.ics-toast-success .ics-toast-icon {
    background: #00a32a;
    color: #fff;
}

.ics-toast-error {
    border-left-color: #d63638;
}

.ics-toast-error .ics-toast-icon {
    background: #d63638;
    color: #fff;
}

.ics-toast-warning {
    border-left-color: #dba617;
}

.ics-toast-warning .ics-toast-icon {
    background: #dba617;
    color: #fff;
}

.ics-toast-info {
    border-left-color: #2271b1;
}

.ics-toast-info .ics-toast-icon {
    background: #2271b1;
    color: #fff;
}

/* Animations */
@keyframes ics-toast-slide-in {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes ics-toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Progress bar */
.ics-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.5;
    animation: ics-toast-progress 5s linear;
}

@keyframes ics-toast-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ics-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .ics-toast {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }

    @keyframes ics-toast-slide-in {
        from {
            transform: translateY(-100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes ics-toast-slide-out {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100px);
            opacity: 0;
        }
    }
}

