/* Alert Toast System - Light Mode (Compact) */
.alert-toast {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    min-width: 260px;
    max-width: 340px;
    animation: toastSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.alert-toast__container {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.03);
    border-left: 3px solid;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.alert-toast__container:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.alert-toast__icon {
    width: 18px;
    height: 18px;
    position: absolute;
    left: 14px;
    top: 13px;
}

.alert-toast__icon svg {
    width: 100%;
    height: 100%;
}

.alert-toast__content {
    margin-left: 26px;
    padding-right: 24px;
}

.alert-toast__title {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.alert-toast__message {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}

.alert-toast__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.alert-toast__close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.alert-toast__close svg {
    width: 14px;
    height: 14px;
}

.alert-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: currentColor;
    opacity: 0.3;
    width: 100%;
    transform-origin: left;
    animation: progressBar 5s linear forwards;
}

/* Status Variants - Light Mode */
.alert-toast--success .alert-toast__container {
    border-left-color: #10b981;
    background: #ffffff;
}
.alert-toast--success .alert-toast__title {
    color: #065f46;
}
.alert-toast--success .alert-toast__progress {
    background: #10b981;
}

.alert-toast--error .alert-toast__container {
    border-left-color: #ef4444;
    background: #ffffff;
}
.alert-toast--error .alert-toast__title {
    color: #991b1b;
}
.alert-toast--error .alert-toast__progress {
    background: #ef4444;
}

.alert-toast--warning .alert-toast__container {
    border-left-color: #f59e0b;
    background: #ffffff;
}
.alert-toast--warning .alert-toast__title {
    color: #92400e;
}
.alert-toast--warning .alert-toast__progress {
    background: #f59e0b;
}

.alert-toast--info .alert-toast__container {
    border-left-color: #3b82f6;
    background: #ffffff;
}
.alert-toast--info .alert-toast__title {
    color: #1e3a8a;
}
.alert-toast--info .alert-toast__progress {
    background: #3b82f6;
}

/* Animations */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(80px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(80px) scale(0.92);
    }
}

@keyframes progressBar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.alert-toast--closing {
    animation: toastSlideOut 0.25s ease forwards;
}

/* Responsive Design - Light Mode */
@media (max-width: 640px) {
    .alert-toast {
        left: 10px;
        right: 10px;
        top: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .alert-toast__container {
        padding: 10px 12px;
    }
    
    .alert-toast__icon {
        left: 12px;
        top: 11px;
    }
    
    .alert-toast__content {
        margin-left: 24px;
    }
    
    .alert-toast__title {
        font-size: 12px;
    }
    
    .alert-toast__message {
        font-size: 11px;
    }
}