#jq-notification, #notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    z-index: 2000;
    display: none;
    max-width: 400px;
    min-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.4s ease;
}

.error-message {
    background-color: rgba(220, 53, 69, 0.9) !important;
}

/* Bootstrap alert overrides for better visibility */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    padding: 15px 20px;
}

/* Enhanced success alert for login/logout messages */
.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-left: 4px solid #1e7e34;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.alert-success .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.alert-success .btn-close:hover {
    opacity: 1;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Close button styling */
.btn-close {
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.btn-close:hover {
    opacity: 1;
}

/* Notification content layout */
.alert .d-flex {
    width: 100%;
}

.alert .flex-grow-1 {
    min-width: 0;
    word-wrap: break-word;
}

.alert .me-3 {
    margin-right: 1rem !important;
}

/* Animation for notifications */
@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;
    }
}

.notification-slide-in {
    animation: slideInRight 0.3s ease;
}

.notification-slide-out {
    animation: slideOutRight 0.3s ease;
} 