
    /* * MestNotify v2 - Corporate & Modern UI
 * Framework Independent & Fully Responsive
 */

:root {
    --mest-success: #10b981;
    --mest-error: #f43f5e;
    --mest-info: #3b82f6;
    --mest-warning: #f59e0b;
    --mest-bg: rgba(255, 255, 255, 0.94);
    --mest-text: #111827;
    --mest-border: rgba(0, 0, 0, 0.05);
    --mest-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Container Yönetimi */
.mest-container {
    position: fixed;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    padding: 20px;
    width: 100%;
    max-width: 420px;
}

/* Akıllı Pozisyonlar */
.mest-top-left { top: 0; left: 0; }
.mest-top-right { top: 0; right: 0; }
.mest-bottom-left { bottom: 0; left: 0; }
.mest-bottom-right { bottom: 0; right: 0; }
.mest-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
}

/* Standart Toast Tasarımı */
.mest-toast {
    pointer-events: auto;
    width: 100%;
    background: var(--mest-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    color: var(--mest-text);
    padding: 14px 18px;
    border-radius: 20px;
    box-shadow: var(--mest-shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Inter', -apple-system, sans-serif;
    border: 1px solid var(--mest-border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: mest-slide-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Durum Vurguları (Sol Şerit Yerine Daha Modern Nokta veya Glow) */
.mest-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
}
.mest-success::before { background: var(--mest-success); }
.mest-error::before { background: var(--mest-error); }
.mest-info::before { background: var(--mest-info); }
.mest-warning::before { background: var(--mest-warning); }

/* İkonlar */
.mest-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mest-success .mest-icon { color: var(--mest-success); }
.mest-error .mest-icon { color: var(--mest-error); }
.mest-info .mest-icon { color: var(--mest-info); }
.mest-warning .mest-icon { color: var(--mest-warning); }

.mest-content {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    flex-grow: 1;
    letter-spacing: -0.01em;
}

.mest-close {
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s ease;
    background: rgba(0,0,0,0.03);
    border: none;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}
.mest-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.08);
    transform: rotate(90deg);
}

/* Progress Bar (Daha İnce ve Zarif) */
.mest-toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: rgba(0,0,0,0.05);
    animation: mest-progress linear forwards;
}
.mest-success::after { background: var(--mest-success); opacity: 0.4; }
.mest-error::after { background: var(--mest-error); opacity: 0.4; }

/* --- MODAL (Premium Center) --- */
.mest-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: mest-fade-in 0.3s ease forwards;
}

.mest-modal-box {
    background: #ffffff;
    padding: 32px;
    border-radius: 32px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.05);
    animation: mest-modal-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mest-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}
.mest-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000;
    letter-spacing: -0.02em;
}
.mest-modal-text {
    font-size: 0.935rem;
    color: #4b5563;
    margin-bottom: 28px;
    line-height: 1.6;
}
.mest-modal-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.9rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
}
.mest-modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(0,0,0,0.3);
}

/* Animasyonlar */
@keyframes mest-slide-in {
    from { opacity: 0; transform: translateX(30px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes mest-modal-in {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes mest-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mest-progress { from { width: 100%; } to { width: 0%; } }

.mest-fade-out {
    opacity: 0 !important;
    transform: scale(0.9) translateY(-10px) !important;
}

/* --- Responsive Düzenlemeler --- */
@media (max-width: 640px) {
    .mest-container {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        max-width: 100% !important;
        padding: 16px;
    }

    .mest-toast {
        min-width: 0;
        border-radius: 16px;
    }

    /* Mobilde animasyon yönünü aşağıdan yukarıya çevirelim */
    @keyframes mest-slide-in {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
