/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    width: 300px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(110%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

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

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon i {
    font-size: 24px;
}

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

.notification.error .notification-icon i {
    color: #dc3545;
}

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

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

/* Tambahan untuk tipe notifikasi */
.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

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

.notification-content p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.notification-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.notification-close i {
    font-size: 16px;
    color: #999;
    transition: color 0.2s ease;
}

.notification-close:hover i {
    color: #333;
}

/* Notification animations */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Mobile responsive */
@media (max-width: 576px) {
    .notification {
        width: calc(100% - 40px);
        top: 10px;
        right: 10px;
    }
}