/* Notification styling for different types */
.notification {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    border-radius: 8px;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    animation: notification-slide-in 0.3s ease forwards;
}

.notification-success {
    background-color: rgba(76, 175, 80, 0.9);
    border-left-color: #4caf50;
    color: white;
}

.notification-error {
    background-color: rgba(244, 67, 54, 0.9);
    border-left-color: #f44336;
    color: white;
}

.notification-warning {
    background-color: rgba(255, 152, 0, 0.9);
    border-left-color: #ff9800;
    color: white;
}

.notification-info {
    background-color: rgba(33, 150, 243, 0.9);
    border-left-color: #2196f3;
    color: white;
}

.notification.system {
    background-color: rgba(75, 75, 75, 0.9);
    color: #ffffff;
    border-left: 5px solid #9e9e9e;
}

.notification.system::before {
    content: "⚙️";
}

/* Notification animations */
@keyframes notification-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes notification-slide-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Additional fade animations for compatibility */
@keyframes notification-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes notification-fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* MOBILE OPTIMIZATIONS FOR NOTIFICATIONS */

/* Mobile notification positioning and sizing */
@media (max-width: 767px) {
    .notification-container {
        top: 20px !important; /* Move closer to top edge */
        width: 95% !important; /* Use more screen width */
        max-width: none !important; /* Remove width restriction */
        padding: 0 10px; /* Add side padding */
    }
    
    .notification {
        font-size: 1.1rem !important; /* Larger text for mobile */
        padding: 15px 20px !important; /* More generous padding */
        margin-bottom: 10px !important; /* Better spacing between notifications */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important; /* Better shadow for depth */
        border-radius: 12px !important; /* More rounded corners */
        line-height: 1.4 !important; /* Better readability */
        word-wrap: break-word !important; /* Prevent text overflow */
        max-width: 100% !important;
    }
    
    /* Add close button for mobile notifications */
    .notification::after {
        content: "×";
        position: absolute;
        top: 8px;
        right: 12px;
        font-size: 1.5rem;
        font-weight: bold;
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.2s ease;
        color: white;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    .notification::after:hover {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.4);
    }
}

/* Extra mobile optimizations for small screens */
@media (max-width: 480px) {
    .notification-container {
        top: 15px !important;
        width: 98% !important;
        padding: 0 5px;
    }
    
    .notification {
        font-size: 1rem !important;
        padding: 12px 16px !important;
        border-radius: 10px !important;
    }
    
    .notification::after {
        top: 6px;
        right: 10px;
        font-size: 1.3rem;
        width: 20px;
        height: 20px;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 767px) and (orientation: landscape) {
    .notification-container {
        top: 10px !important;
        width: 50% !important; /* Take up less space in landscape */
        right: 10px;
        left: auto;
        transform: none;
    }
    
    .notification {
        font-size: 0.9rem !important;
        padding: 10px 14px !important;
    }
} 