/* ========================================
   ILP 알림 메시지 강화 스타일
   더 눈에 띄는 성공/에러 메시지 표시
   ======================================== */

/* TempData 성공 메시지 애니메이션 강화 */
.success-message-container {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 성공 메시지 추가 강조 효과 */
.success-message-container .alert-success {
    position: relative;
    overflow: hidden;
}

.success-message-container .alert-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s ease-out;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 성공 메시지 아이콘 애니메이션 */
.success-message-container .bi-check-circle-fill {
    animation: successPulse 1s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Toastr 커스텀 성공 메시지 강화 */
.toast-custom.toast-success {
    animation: slideInRight 0.5s ease-out, pulse 0.5s ease-out 0.5s;
    transform-origin: center;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Toastr 배경색 강화 (오버라이드) */
#toast-container > .toast-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: #ffffff !important;
    border: 2px solid #1e7e34 !important;
}

#toast-container > .toast-error {
    background: linear-gradient(135deg, #dc3545 0%, #f86a68 100%) !important;
    color: #ffffff !important;
    border: 2px solid #bd2130 !important;
}

#toast-container > .toast-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffdd57 100%) !important;
    color: #212529 !important;
    border: 2px solid #e0a800 !important;
}

#toast-container > .toast-info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c9ea 100%) !important;
    color: #ffffff !important;
    border: 2px solid #117a8b !important;
}

/* 닫기 버튼 흰색으로 */
#toast-container .toast-close-button {
    color: #ffffff !important;
    opacity: 0.8 !important;
    text-shadow: none !important;
}

#toast-container .toast-close-button:hover {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* 텍스트 색상 강제 */
#toast-container > div {
    color: #ffffff !important;
}

#toast-container > .toast-warning {
    color: #212529 !important;
}

/* 모바일 반응형 조정 */
@media (max-width: 768px) {
    .success-message-container {
        min-width: 90% !important;
        right: 5% !important;
    }
    
    .toast-custom {
        min-width: 300px !important;
        max-width: 90vw !important;
    }
}

/* Z-index 보장 */
.success-message-container,
#toast-container,
.custom-toast-container {
    z-index: 99999 !important;
}

/* 추가 그림자 효과 */
.success-message-container .alert,
.toast-custom,
#toast-container > div {
    box-shadow: 0 12px 32px rgba(0,0,0,0.25) !important;
}
