/* 
   Modern Notification Toast System for OCOAD 
   Designed for premium humanitarian aesthetic
*/

.toast-container {
    position: fixed;
    top: 6rem; /* Lowered from 2rem to avoid header overlap */
    right: 2rem;
    z-index: 99999; /* Increased to be above header (10000) */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.rtl .toast-container {
    right: auto;
    left: 2rem;
}

.toast-notification {
    min-width: 320px;
    max-width: 450px;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid var(--primary-500);
}

.rtl .toast-notification {
    transform: translateX(-120%);
    border-left: none;
    border-right: 5px solid var(--primary-500);
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--grey-900);
    margin-bottom: 0.2rem;
}

.toast-message {
    font-size: 0.95rem;
    color: var(--grey-600);
    line-height: 1.4;
}

.toast-close {
    color: var(--grey-400);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--error-500);
}

/* Success Variation */
.toast-success {
    border-color: var(--success-500);
}
.toast-success .toast-icon {
    background: var(--success-50);
    color: var(--success-600);
}

/* Animations */
@keyframes slideIn {
    from { transform: translateX(120%); }
    to { transform: translateX(0); }
}

@keyframes slideOut {
    from { transform: translateX(0); }
    to { transform: translateX(120%); opacity: 0; }
}

/* Responsive */
@media (max-width: 480px) {
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    .toast-notification {
        min-width: calc(100vw - 2rem);
    }
}
