/* Center Bottom Notification System */

#notification-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
    max-width: 500px;
    width: 90%;
    pointer-events: none;
}

.notification {
    background: #ffffff;
    color: #333;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    animation: slideUp 0.3s ease-out;
    position: relative;
    border-left: 4px solid #333;
    pointer-events: auto;
}

.notification.success {
    border-left-color: #4CAF50;
    background: linear-gradient(to right, #d4edda 0%, #ffffff 50%);
}

.notification.success .notification-icon {
    color: #4CAF50;
}

.notification.error {
    border-left-color: #dc3545;
    background: linear-gradient(to right, #f8d7da 0%, #ffffff 50%);
}

.notification.error .notification-icon {
    color: #dc3545;
}

.notification.info {
    border-left-color: #17a2b8;
    background: linear-gradient(to right, #d1ecf1 0%, #ffffff 50%);
}

.notification.info .notification-icon {
    color: #17a2b8;
}

.notification.warning {
    border-left-color: #ffc107;
    background: linear-gradient(to right, #fff3cd 0%, #ffffff 50%);
}

.notification.warning .notification-icon {
    color: #ffc107;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    font-family: 'YsabeauOffice', sans-serif;
}

.notification-message {
    font-size: 14px;
    color: #666;
    font-family: 'YsabeauOffice', sans-serif;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
        max-height: 100px;
    }
    to {
        transform: translateY(20px);
        opacity: 0;
        max-height: 0;
    }
}

.notification.hiding {
    animation: slideDown 0.3s ease-out forwards;
}

/* Progress bar for auto-dismiss */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    #notification-container {
        width: 95%;
        bottom: 10px;
    }
    
    .notification {
        min-width: 280px;
        padding: 12px 16px;
    }
    
    .notification-icon {
        font-size: 20px;
    }
}

