.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px 30px;
    background: #4CAF50;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    animation: slideIn 0.3s ease-out;
    font-size: 16px;
    font-weight: 500;
    min-width: 250px;
    text-align: center;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.warning {
    background: #ff9800;
}

.notification.info {
    background: #2196F3;
}

/* Django message tag mappings */
.notification.debug {
    background: #6c757d;
}

/* Auto-dismiss functionality for Django messages */
.notification[data-auto-dismiss="true"] {
    display: block !important;
}

.notification.fade-out {
    animation: slideOut 0.3s ease-out forwards;
}

.notification .notification-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

.notification .notification-close:hover {
    opacity: 0.8;
}

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

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