/* Enhanced notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateX(400px);
    transition: all 0.4s ease;
    max-width: 400px;
    border-left: 4px solid #10b981;
    overflow: hidden;
}

.notification.notification-success {
    border-left-color: #10b981;
}

.notification.notification-error {
    border-left-color: #ef4444;
}

.notification.notification-warning {
    border-left-color: #f59e0b;
}

.notification.notification-info {
    border-left-color: #3b82f6;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i:first-child {
    color: #10b981;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-error .notification-content i:first-child {
    color: #ef4444;
}

.notification-warning .notification-content i:first-child {
    color: #f59e0b;
}

.notification-info .notification-content i:first-child {
    color: #3b82f6;
}

.notification-content span {
    flex: 1;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notification {
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
        width: calc(100% - 20px) !important;
        transform: translateY(-100px) !important;
    }
    
    .notification.show {
        transform: translateY(0) !important;
    }
    
    .notification-content {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* Animation for loading spinner in notifications */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}
