@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600&display=swap');

.alert-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-alert {
    position: relative;
    min-width: 320px;
    max-width: 420px;
    padding: 16px 20px;
    border-radius: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;

    /* Modern Cam Efekti */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);

    /* Giriş Animasyonu */
    animation: slideInCustom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.custom-alert.hide {
    animation: slideOutCustom 0.4s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

/* Tip Tasarımları & Renk Paletleri */
.custom-alert.success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
}
.custom-alert.error {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15);
}
.custom-alert.info {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}
.custom-alert.warning {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

/* İkon ve Metin Düzeni */
.alert-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-message {
    flex-grow: 1;
    line-height: 1.5;
    color: #d6d6d6; /* Koyu mod kullanıyorsanız burayı #f1f5f9 yapabilirsiniz */
    font-weight: 600;
}

.alert-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: currentColor;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.6;
}
.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* Animasyonlu Progress Bar (Zaman Çizgisi) */
.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: currentColor;
    opacity: 0.4;
    transform-origin: left;
    animation: progressCountdown 5s linear forwards;
}

/* Keyframes */
@keyframes slideInCustom {
    0% { transform: translateX(120%) scale(0.9); opacity: 0; }
    70% { transform: translateX(-10px) scale(1.02); }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes slideOutCustom {
    0% { transform: translateX(0) scale(1); opacity: 1; }
    100% { transform: translateX(120%) scale(0.9); opacity: 0; }
}

@keyframes progressCountdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
