﻿.alert {
    position: relative;
    padding: 1.2rem 3rem 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: 2px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert.dismissing {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.alert-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.alert-message {
    font-size: 0.95rem;
    opacity: 0.9;
}

.alert-dismiss {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    font-weight: bold;
    color: inherit;
}

    .alert-dismiss:hover {
        background: rgba(0, 0, 0, 0.4);
        transform: rotate(90deg);
    }

.alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(102, 187, 106, 0.15));
    border-color: #4caf50;
    color: #4caf50;
}

    .alert-success .alert-message {
        color: #a5d6a7;
    }

    .alert-success .alert-dismiss:hover {
        background: rgba(76, 175, 80, 0.3);
    }

.alert-info {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.15), rgba(0, 212, 255, 0.15));
    border-color: #0088ff;
    color: #0088ff;
}

    .alert-info .alert-message {
        color: #64b5f6;
    }

    .alert-info .alert-dismiss:hover {
        background: rgba(0, 136, 255, 0.3);
    }

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 193, 7, 0.15));
    border-color: #ff9800;
    color: #ff9800;
}

    .alert-warning .alert-message {
        color: #ffb74d;
    }

    .alert-warning .alert-dismiss:hover {
        background: rgba(255, 152, 0, 0.3);
    }

.alert-danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(229, 115, 115, 0.15));
    border-color: #f44336;
    color: #f44336;
}

    .alert-danger .alert-message {
        color: #e57373;
    }

    .alert-danger .alert-dismiss:hover {
        background: rgba(244, 67, 54, 0.3);
    }

.alerts-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    max-width: 500px;
    width: 100%;
}

.alert-simple {
    padding: 1rem 1.5rem;
}

    .alert-simple .alert-content {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

@media (max-width: 768px) {
    .alerts-container {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .alert {
        padding: 1rem 2.5rem 1rem 1rem;
    }

    .alert-icon {
        font-size: 1.5rem;
    }

    .alert-title {
        font-size: 1rem;
    }

    .alert-message {
        font-size: 0.9rem;
    }
}
