/* ========================================
   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;
}

/* ========================================
   Modern Toastr Notification Styles
   모던한 알림 UI 개선
   ======================================== */

/* 개별 토스트 스타일링 */
#toast-container > div {
    opacity: 0.95;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 70px;
    transition: all 0.3s ease;
}

#toast-container > div:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 성공 토스트 */
.toast-success {
    background-color: #065f46 !important;
    background-image: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
    color: #f0fdf4 !important;
}

/* 에러 토스트 */
.toast-error {
    background-color: #991b1b !important;
    background-image: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%) !important;
    color: #fef2f2 !important;
}

/* 경고 토스트 */
.toast-warning {
    background-color: #f59e0b !important;
    background-image: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fffbeb !important;
}

/* 정보 토스트 */
.toast-info {
    background-color: #2563eb !important;
    background-image: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #eff6ff !important;
}

/* 토스트 제목 */
.toast-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    letter-spacing: -0.025em;
}

/* 토스트 메시지 */
.toast-message {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    font-weight: 400;
}

/* 닫기 버튼 */
.toast-close-button {
    color: currentColor;
    opacity: 0.7;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    text-shadow: none;
    position: absolute;
    right: 12px;
    top: 12px;
    transition: opacity 0.2s;
}

.toast-close-button:hover {
    opacity: 1;
}

/* 프로그레스 바 */
.toast-progress {
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    bottom: 0;
    border-radius: 0 0 8px 8px;
}

/* 아이콘 스타일링 */
#toast-container > .toast:before {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
    line-height: 20px;
    float: left;
    margin-right: 12px;
    margin-top: 2px;
}

.toast-success:before {
    content: '\f058'; /* check-circle */
}

.toast-error:before {
    content: '\f057'; /* times-circle */
}

.toast-info:before {
    content: '\f05a'; /* info-circle */
}

.toast-warning:before {
    content: '\f071'; /* exclamation-triangle */
}

/* 애니메이션 개선 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 0.95;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 0.95;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 다크모드 스타일 제거됨 */
