/* Ca-Re Toast Notification System */

#care-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.care-toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.21, 1.02, 0.73, 1), opacity 0.35s ease;
    border-left: 4px solid #333;
    overflow: hidden;
    pointer-events: auto;
}

.care-toast.care-toast-show {
    transform: translateX(0);
    opacity: 1;
}

.care-toast.care-toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

/* Type colors */
.care-toast-success { border-left-color: #28a745; }
.care-toast-error   { border-left-color: #dc3545; }
.care-toast-warning { border-left-color: #ffc107; }
.care-toast-info    { border-left-color: #17a2b8; }

/* Body */
.care-toast-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/* Icons */
.care-toast-icon {
    flex-shrink: 0;
    font-size: 18px;
}

.care-toast-success .care-toast-icon { color: #28a745; }
.care-toast-error   .care-toast-icon { color: #dc3545; }
.care-toast-warning .care-toast-icon { color: #ffc107; }
.care-toast-info    .care-toast-icon { color: #17a2b8; }

/* Message text */
.care-toast-message {
    flex: 1;
    word-wrap: break-word;
}

/* Close button */
.care-toast-close {
    flex-shrink: 0;
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0 2px;
    transition: color 0.2s ease;
}

.care-toast-close:hover {
    color: #333;
}

/* Progress bar */
.care-toast-progress {
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.08);
}

.care-toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transition: none;
}

.care-toast-progress-bar.care-toast-progress-animate {
    transform: scaleX(0);
}

.care-toast-success .care-toast-progress-bar { background: #28a745; }
.care-toast-error   .care-toast-progress-bar { background: #dc3545; }
.care-toast-warning .care-toast-progress-bar { background: #ffc107; }
.care-toast-info    .care-toast-progress-bar { background: #17a2b8; }

/* Mobile responsive */
@media (max-width: 480px) {
    #care-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
}
