﻿.custom-alert {
    position: fixed;
    right: 20px;
    top: 100px; /* 👉 üst için */
    /* bottom: 20px; 👉 alt yapmak istersen bunu aç, top'u sil */

    min-width: 320px;
    max-width: 380px;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: slideIn .35s ease;
}

    /* çıkış animasyonu */
    .custom-alert.hide {
        animation: slideOut .3s ease forwards;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.custom-alert.d-none {
    display: none !important;
}

.custom-alert-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .custom-alert-icon i {
        font-size: 20px;
    }

.custom-alert-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

    .custom-alert-content strong {
        font-size: 15px;
        font-weight: 700;
    }

    .custom-alert-content span {
        font-size: 14px;
        line-height: 1.45;
    }

.custom-alert-close {
    border: 0;
    background: transparent;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .7;
}

    .custom-alert-close:hover {
        opacity: 1;
        background: rgba(0, 0, 0, .05);
    }

/* Danger */
.custom-alert-danger {
    background: linear-gradient(135deg, #fff5f5, #ffffff);
    border-color: #ffd6d6;
    color: #991b1b;
}

    .custom-alert-danger .custom-alert-icon {
        background: #fee2e2;
        color: #dc2626;
    }

/* Success */
.custom-alert-success {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    border-color: #bbf7d0;
    color: #166534;
}

    .custom-alert-success .custom-alert-icon {
        background: #dcfce7;
        color: #16a34a;
    }

/* Warning */
.custom-alert-warning {
    background: linear-gradient(135deg, #fffbeb, #ffffff);
    border-color: #fde68a;
    color: #92400e;
}

    .custom-alert-warning .custom-alert-icon {
        background: #fef3c7;
        color: #d97706;
    }

/* Info */
.custom-alert-info {
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border-color: #bfdbfe;
    color: #1e40af;
}

    .custom-alert-info .custom-alert-icon {
        background: #dbeafe;
        color: #2563eb;
    }

@keyframes alertSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.custom-alert-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 4px;
    width: 100%;
    border-radius: 14px 14px 0 0;
    animation: alertProgress 5s linear forwards;
}

.custom-alert-success .custom-alert-progress {
    background: #16a34a;
}

.custom-alert-danger .custom-alert-progress {
    background: #dc2626;
}

.custom-alert-warning .custom-alert-progress {
    background: #d97706;
}

.custom-alert-info .custom-alert-progress {
    background: #2563eb;
}

@keyframes alertProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}