/**
 * DGMA Notification System Styles
 * Modern toast-style notifications
 */

.dgma-notification {
    position: fixed;
    top: 20px;
    right: 50%;
    transform: translateX(50%) translateY(-150px);
    z-index: 99999;
    min-width: 350px;
    max-width: 600px;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans Arabic', Arial, sans-serif;
    direction: rtl;
}

.dgma-notification-show {
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

.dgma-notification-hide {
    opacity: 0;
    transform: translateX(50%) translateY(-50px);
}

.dgma-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    position: relative;
}

.dgma-notification-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.dgma-notification-message {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.dgma-notification-close {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s;
}

.dgma-notification-close:hover {
    transform: scale(1.1);
}

/* Success variant */
.dgma-notification-success {
    background: linear-gradient(135deg, #4c956c 0%, #3a7556 100%);
    color: white;
}

.dgma-notification-success .dgma-notification-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.dgma-notification-success .dgma-notification-close {
    color: white;
}

.dgma-notification-success .dgma-notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Error variant */
.dgma-notification-error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.dgma-notification-error .dgma-notification-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.dgma-notification-error .dgma-notification-close {
    color: white;
}

.dgma-notification-error .dgma-notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .dgma-notification {
        min-width: 90%;
        max-width: 90%;
        right: 5%;
        transform: translateX(0) translateY(-150px);
    }

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

    .dgma-notification-hide {
        transform: translateX(0) translateY(-50px);
    }
}
