/* notifications.css - Sistem notificări elegante */

#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.notification {
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
    border-left: 5px solid;
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.notification-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.notification-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

.notification-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.notification-text {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Animații */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Pentru ecrane mici */
@media (max-width: 768px) {
    #notification-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}