/* Custom Toast Notification Styles for Django Messages */
.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 350px;
    z-index: 1055;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast .toast-body {
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Message level styling */
.toast-body.text-success-custom {
    color: #16a34a;
}
.toast-body.text-danger-custom {
    color: #dc2626;
}
.toast-body.text-warning {
    color: #a16207;
}
.toast-body.text-info {
    color: var(--color-text);
}

/* Close button styling */
.btn-close {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
}

/* Responsive adjustments for mobile */
@media (max-width: 576px) {
    .toast-container {
        width: calc(100% - 32px) !important;
        right: 16px !important;
        left: 16px !important;
        bottom: 16px !important;
    }

    .toast {
        width: 100%;
    }
}