:root {
    --success-color: #4CAF50;
    --error-color: #F44336;
    --info-color: #2196F3;
    --warning-color: #FF9800;
    --transition-speed: 0.4s;
}

#notification-container {
    font-family: 'Poppins', sans-serif;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99998;
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.notification {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.notification-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
    min-width: 50px;
}

.notification-content {
    flex-grow: 1;
    overflow: hidden;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: fadeInTitle 0.4s ease-out;
}

.notification-message {
    color: #666;
    font-size: 14px;
    word-wrap: break-word;
    /* max-height: 3em; */
    /* overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; */
    animation: fadeInMessage 0.4s ease-out 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notification.exit {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
    margin-bottom: 0;
    padding: 0;
    height: 0;
}

.notification.success {
    border-left: 5px solid var(--success-color);
}

.notification.success .notification-icon {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.notification.error {
    border-left: 5px solid var(--error-color);
}

.notification.error .notification-icon {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
}

.notification.info {
    border-left: 5px solid var(--info-color);
}

.notification.info .notification-icon {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--info-color);
}

.notification.warning {
    border-left: 5px solid var(--warning-color);
}

.notification.warning .notification-icon {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.demo-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.demo-buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #007bff;
    color: white;
}

.demo-buttons button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    #notification-container {
        top: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }

    .notification {
        width: 100%;
        box-sizing: border-box;
    }
}