/**
 * Styles for notifications
 */

/* Notification container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    pointer-events: none;
}

.notification {
    position: relative;
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(110%);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

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

.notification:not(.show) {
    opacity: 0;
}

/* Notification content */
.notification-message {
    font-weight: 500;
    margin-bottom: 2px;
}

.notification-time {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Close button styling */
.notification .btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    opacity: 0.6;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Notification types */
.alert-success {
    background-color: rgba(212, 237, 218, 0.95);
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error,
.alert-danger {
    background-color: rgba(248, 215, 218, 0.95);
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: rgba(255, 243, 205, 0.95);
    border-color: #ffeeba;
    color: #856404;
}

.alert-info {
    background-color: rgba(209, 236, 241, 0.95);
    border-color: #bee5eb;
    color: #0c5460;
}

/* Icon styling */
.notification i {
    font-size: 1.1rem;
}

/* Animation for stacking notifications */
.notification:nth-child(n+4) {
    opacity: 0.7;
    transform: translateX(0) scale(0.95);
}

.notification:nth-child(n+6) {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
    }
}