/* =======================
   NOTIFICATION SYSTEM STYLES
   ======================= */

.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: 90%;
    max-width: 500px;
}

.notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    direction: rtl;
}

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

.notification.hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* Notification Types */
.notification-success {
    border-right: 4px solid #10b981;
}

.notification-error {
    border-right: 4px solid #ef4444;
}

.notification-warning {
    border-right: 4px solid #f59e0b;
}

.notification-info {
    border-right: 4px solid #3b82f6;
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.notification-success .notification-icon {
    color: #10b981;
}

.notification-error .notification-icon {
    color: #ef4444;
}

.notification-warning .notification-icon {
    color: #f59e0b;
}

.notification-info .notification-icon {
    color: #3b82f6;
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.notification-details {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

/* Notification Close Button */
.notification-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    padding: 0;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.notification-close:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        width: 95%;
        max-width: none;
    }

    .notification {
        padding: 14px 16px;
    }

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

    .notification-details {
        font-size: 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .notification {
        background: #1f2937;
    }

    .notification-message {
        color: #f9fafb;
    }

    .notification-details {
        color: #9ca3af;
    }

    .notification-close:hover {
        background: #374151;
    }
}

/* Animation Variations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Stacked Notifications */
.notification-container.stacked .notification {
    animation: slideInRight 0.3s ease-out;
}

.notification-container.stacked .notification.hide {
    animation: slideOutRight 0.3s ease-in;
}

/* Progress Bar for Timed Notifications */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progress linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}
