/* 검색 관련 스타일 */
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--toss-gray-500);
    z-index: 2;
}

#searchInput {
    padding-left: 36px;
    transition: all 0.2s cubic-bezier(0.33, 1, 0.68, 1);
    width: 100%;
    border-radius: 8px;
}

#searchInput:focus {
    box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.25);
    transform: translateY(-1px);
    border-color: #3182f6;
}

#searchBar {
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
    transform-origin: top center;
    padding: 1rem;
    border-bottom: 1px solid var(--toss-gray-200);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 로딩 오버레이 스타일 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
    background-color: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    animation: popIn 0.4s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    transform-origin: center;
}

/* 팝인 애니메이션 */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    40% {
        opacity: 1;
        transform: scale(1.03);
    }

    70% {
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 부드러운 스케일 애니메이션 */
.scale-animation {
    animation: scaleAnimation 1.8s ease-in-out infinite;
}

@keyframes scaleAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* 펄스 애니메이션 */
.pulse-animation {
    animation: pulseAnimation 1.5s ease-in-out infinite;
}

@keyframes pulseAnimation {
    0% {
        box-shadow: 0 0 0 0 rgba(49, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(49, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(49, 130, 246, 0);
    }
}

/* 스피너 애니메이션 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 토스 스타일 스피너 */
.toss-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(49, 130, 246, 0.1);
    border-top-color: #3182f6;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 1rem;
}

/* 로딩된 콘텐츠 애니메이션 */
.content-loaded {
    animation: fadeInUp 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

/* 페이드 인 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 페이드 인 업 애니메이션 (토스 스타일) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 슬라이드 인 애니메이션 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 스태거 애니메이션 클래스 */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

/* 테이블 행 애니메이션 */
.row-animation {
    opacity: 0;
    animation: fadeInUp 0.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

/* 스태거드 애니메이션 지연 효과를 위한 클래스들 */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.15s;
}

.delay-3 {
    animation-delay: 0.2s;
}

.delay-4 {
    animation-delay: 0.25s;
}

.delay-5 {
    animation-delay: 0.3s;
}

/* 토스 스타일 버튼 호버 효과 */
.btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:hover:after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        opacity: 0.4;
        transform: scale(0, 0) translate(-50%, -50%);
    }

    100% {
        opacity: 0;
        transform: scale(20, 20) translate(-50%, -50%);
    }
}

/* 테이블 행 호버 효과 */
.table tbody tr {
    transition: all 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.table tbody tr:hover {
    background-color: rgba(49, 130, 246, 0.05) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    z-index: 1;
    position: relative;
}

/* 모달 애니메이션 */
.modal-content {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* 토스트 알림 애니메이션 */
.toast {
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.toast.show {
    transform: translateY(0);
}

/* 폼 필드 포커스 효과 */
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.25);
    transform: translateY(-1px);
    transition: all 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

/* 리플 효과 스타일 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 토스 스타일 네비게이션 바 그림자 효과 */
.navbar-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}