/* MEDYAJANS SISTEM - TOAST STYLES */
/* MedyAjans Kuralları: Toast Components - Max 500 satır */

/* Modern Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 4000; /* Toast level - z-index system uyumlu */
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, rgba(30, 30, 47, 0.95) 0%, rgba(37, 37, 69, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-left: 3px solid;
    min-width: 320px;
    max-width: 420px;
    transform: translateX(480px) translateY(-10px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast:hover::before {
    opacity: 1;
}

.toast.success {
    border-left-color: #43e97b;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        -3px 0 0 rgba(67, 233, 123, 0.3);
}

.toast.error {
    border-left-color: #ff6b7a;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        -3px 0 0 rgba(255, 107, 122, 0.3);
}

.toast.info {
    border-left-color: #4facfe;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        -3px 0 0 rgba(79, 172, 254, 0.3);
}

.toast .toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.toast .toast-title {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.toast .toast-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 18px;
    color: #cbd5e1;
    cursor: pointer;
    padding: 6px;
    margin-left: 12px;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.toast .toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

.toast .toast-message {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.toast .toast-icon {
    margin-right: 10px;
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    }
}

.toast.success .toast-icon {
    color: #43e97b;
    text-shadow: 0 0 10px rgba(67, 233, 123, 0.5);
}

.toast.error .toast-icon {
    color: #ff6b7a;
    text-shadow: 0 0 10px rgba(255, 107, 122, 0.5);
}

.toast.info .toast-icon {
    color: #4facfe;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

/* System Restart Big Toast - MedyAjans Dark Mode */
.system-toast {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    z-index: 4100 !important; /* System toast level - z-index system uyumlu */
    background: rgba(30, 30, 47, 0.9) !important; /* Semi-transparent dark background */
    border: 2px solid #4facfe !important;
    border-radius: 16px !important;
    padding: 32px 40px !important;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8) !important, 
        0 15px 40px rgba(0, 0, 0, 0.6) !important,
        0 0 40px rgba(79, 172, 254, 0.3) !important,
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    min-width: 420px !important;
    max-width: 520px !important;
    text-align: center !important;
    opacity: 0 !important;
    pointer-events: auto !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

.system-toast.show {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
}



@keyframes borderGlow {
    0% { 
        background-position: 0% 50%; 
        filter: hue-rotate(0deg) brightness(1);
    }
    25% { 
        background-position: 100% 0%; 
        filter: hue-rotate(90deg) brightness(1.2);
    }
    50% { 
        background-position: 100% 50%; 
        filter: hue-rotate(180deg) brightness(1);
    }
    75% { 
        background-position: 0% 100%; 
        filter: hue-rotate(270deg) brightness(1.2);
    }
    100% { 
        background-position: 0% 50%; 
        filter: hue-rotate(360deg) brightness(1);
    }
}

.system-toast .system-icon {
    font-size: 3rem !important;
    margin-bottom: 16px !important;
    display: block !important;
    color: #4facfe !important;
    animation: none !important; /* Animasyonu kaldır */
}

.system-toast .system-title {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    text-shadow: none !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
}

.system-toast .system-message {
    color: #cbd5e1 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
    font-weight: 400 !important;
}

.system-toast .system-progress {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #1a1a2e 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.system-toast .system-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
    width: 0%;
    transition: width 0.3s ease;
    animation: progressPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
    border-radius: 8px;
}

@keyframes progressPulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
    }
    50% { 
        opacity: 0.8; 
        box-shadow: 0 0 20px rgba(79, 172, 254, 0.8);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
        text-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.9;
        text-shadow: 0 0 20px rgba(79, 172, 254, 0.6);
    }
}

/* System Toast Backdrop - MedyAjans Dark Mode */
.system-toast-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 4099 !important; /* System toast backdrop - z-index system uyumlu */
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}

.system-toast-backdrop.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Mobile Toast Optimization - MedyAjans */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        z-index: 4000; /* Toast level - unified with desktop */
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
        margin-bottom: 10px;
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .system-toast {
        min-width: auto !important;
        max-width: 90vw !important;
        padding: 24px 20px !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) scale(0.9) !important;
    }
    
    .system-toast.show {
        transform: translate(-50%, -50%) scale(1) !important;
    }
    
    .system-toast .system-icon {
        font-size: 2.5rem !important;
        margin-bottom: 12px !important;
    }
    
    .system-toast .system-title {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }
    
    .system-toast .system-message {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
    }
}