/* ========================================
   Notifications Component
   ======================================== */

.notifications-container {
    position: fixed;
    top: calc(var(--header-height, 40px) + 3px + 10px);
    right: 20px;
    left: auto;
    transform: none;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    pointer-events: none;
}

.notification {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 320px;
    max-width: 420px;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    border-left: 4px solid;
    animation: slideInRight 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: right center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;

    &:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    &.fade-out {
        animation: slideOutRight 0.3s ease-in forwards;
        pointer-events: none;
    }

    &.success {
        border-left-color: #28a745;
        background: linear-gradient(to right, #f8fff9 0%, #ffffff 10%);
    }

    &.error,
    &.danger {
        border-left-color: #dc3545;
        background: linear-gradient(to right, #fff5f5 0%, #ffffff 10%);
    }

    &.warning {
        border-left-color: #ffc107;
        background: linear-gradient(to right, #fffbf0 0%, #ffffff 10%);
    }

    &.info {
        border-left-color: #17a2b8;
        background: linear-gradient(to right, #f0f9ff 0%, #ffffff 10%);
    }

    .notification-icon {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        margin-top: 2px;

        i {
            color: inherit;
        }
    }

    &.success .notification-icon {
        color: #28a745;
    }

    &.error .notification-icon,
    &.danger .notification-icon {
        color: #dc3545;
    }

    &.warning .notification-icon {
        color: #ffc107;
    }

    &.info .notification-icon {
        color: #17a2b8;
    }

    .notification-message {
        flex: 1;
        font-size: 14px;
        line-height: 1.5;
        color: #333;
        word-wrap: break-word;

        strong {
            font-weight: 600;
            color: #1a1a1a;
        }
    }

    .notification-close {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 16px;
        line-height: 1;
        transition: all 0.2s ease;
        border-radius: 4px;
        margin-top: -2px;
        margin-right: -4px;

        &:hover {
            background: rgba(0, 0, 0, 0.05);
            color: #333;
        }

        &:active {
            background: rgba(0, 0, 0, 0.1);
        }

        i {
            font-size: 14px;
        }
    }
}

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

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