/**
 * Alert/Notification Styles
 * Centralized alert styling for admin panel
 */

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(500px);
        opacity: 0;
    }
}

.alert.hiding {
    animation: slideOut 0.3s ease-out;
}

/* Alert Types */
.alert-success {
    background-color: #DCFCE7;
    color: #16A34A;
    border: 1px solid #BEF264;
}

.alert-error {
    background-color: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

.alert-warning {
    background-color: #FEF3C7;
    color: #D97706;
    border: 1px solid #FDE68A;
}

.alert-info {
    background-color: #DBEAFE;
    color: #2563EB;
    border: 1px solid #BFDBFE;
}

/* Alert Close Button */
.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    color: inherit;
}

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

/* Responsive */
@media (max-width: 640px) {
    .alert {
        left: 10px;
        right: 10px;
        max-width: none;
        top: 10px;
    }
}

