﻿/* alertSystem.min.css */
.alert-container {
    position: fixed;
    top: 10px;
    right: 10px;
    left: 10px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.alert {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    background: rgba(0,0,0,0.75);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 0.5s ease forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}


.alert-success {
    background-color: #198754
}

.alert-info {
    background-color: #23528E
}

.alert-danger {
    background-color: #d47070
}

.alert-warning {
    background-color: #f1f894;
    color: black;
}
.alert-success .alert-icon::before {
    content: "✔";
    font-size: 16px
}

.alert-info .alert-icon::before {
    content: "ℹ";
    font-size: 16px
}

.alert-danger .alert-icon::before {
    content: "✖";
    font-size: 16px
}

.alert-warning .alert-icon::before {
    content: "⚠";
    font-size: 16px
}

.alert-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%
}

.alert-hide {
    animation: fadeOut 0.5s ease forwards
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0)
    }

    to {
        opacity: 0;
        transform: translateY(-20px)
    }
}

@media(max-width:480px) {
    .alert {
        font-size: 14px;
        padding: 10px 15px
    }

    .alert-container {
        align-items: center
    }
}
