/**
 * Toast Notification Styles
 * 
 * Mobile-first responsive toast notification styles
 */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 40px 16px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-out;
    pointer-events: auto;
    position: relative;
    border-left: 4px solid;
}

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

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.toast-icon {
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1.2;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
}

.toast-message {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    flex: 1;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 4px;
    transition: all 0.2s;
    z-index: 1;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

.toast-close:focus {
    outline: 2px solid #28a616;
    outline-offset: 2px;
}

/* Toast Type Styles */
.toast-success {
    border-left-color: #28a616;
    background: #f0f9f0;
}

.toast-success .toast-icon {
    background: #28a616;
    color: #fff;
}

.toast-error {
    border-left-color: #d9534f;
    background: #fff5f5;
}

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

.toast-warning {
    border-left-color: #f0ad4e;
    background: #fffbf0;
}

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

.toast-info {
    border-left-color: #5bc0de;
    background: #f0f9ff;
}

.toast-info .toast-icon {
    background: #5bc0de;
    color: #fff;
}

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

    .toast {
        padding: 14px;
        font-size: 14px;
    }

    .toast-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }

    .toast-message {
        font-size: 13px;
    }
}

/* Animation for multiple toasts */
.toast + .toast {
    margin-top: 0;
}
