/* Custom Alert Styles for SentirMallorca */
.custom-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 90%;
    background-color: white;
    margin-bottom: 10px;
    opacity: 1;
    transition: opacity 0.3s ease;
    border-left: 4px solid #DE826B;
}

.custom-alert-content {
    display: flex;
    align-items: center;
}

.custom-alert-icon {
    margin-right: 15px;
    font-size: 24px;
}

.custom-alert-message {
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
}

.custom-alert-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    margin-left: 15px;
    padding: 0;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.custom-alert-close:hover {
    color: #333;
}

/* Alert type variations */
.custom-alert.error {
    border-left-color: #e74c3c;
}

.custom-alert.error .custom-alert-icon {
    color: #e74c3c;
}

.custom-alert.success {
    border-left-color: #2ecc71;
}

.custom-alert.success .custom-alert-icon {
    color: #2ecc71;
}

.custom-alert.warning {
    border-left-color: #f39c12;
}

.custom-alert.warning .custom-alert-icon {
    color: #f39c12;
}

.custom-alert.info {
    border-left-color: #3498db;
}

.custom-alert.info .custom-alert-icon {
    color: #3498db;
}

/* Animation */
@keyframes slideInDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.custom-alert {
    animation: slideInDown 0.3s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .custom-alert {
        min-width: 90%;
        max-width: 95%;
    }
}
