[x-cloak] {
    display: none !important;
}

html {
    font-size: 16px;
}

/* Color */
.bg-main {
    background-color: #f3f9ff;
}
.bg-F3F9FF,
.bg-f3f9ff {
    background-color: #f3f9ff;
}
.bg-DCEDFF,
.bg-dcedff {
    background-color: #dcedff;
}

/* button */
button:not([disabled]):not([readonly]) {
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}
.btn-secondary {
    background-color: white;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(57, 56, 56, 0.2);
}
.action-btn {
    transition: all 0.2s ease;
}
.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.btn-hover {
    transition: all 0.2s ease;
}
.btn-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Select 박스 */
.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}
.filter-select {
    transition: all 0.2s ease;
}

.filter-select:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* input */
.search-input {
    transition: all 0.3s ease;
}
.search-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 테이블(table) */
.table-row-hover {
    transition: all 0.2s ease;
}
.table-row-hover:hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 페이지네이션(pagination) */
.pagination-btn {
    transition: all 0.2s ease;
}
.pagination-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 토스트 알림(toast) */
.toast {
    animation: slideInRight 0.3s ease-out;
}
.toast.success {
    /* background: linear-gradient(135deg, #10b981, #059669); */
    color: #10b981;
}
.toast.error {
    /* background: linear-gradient(135deg, #ef4444, #dc2626); */
    color: #ef4444;
}
.toast.info {
    /* background: linear-gradient(135deg, #3b82f6, #1d4ed8); */
    color: #3b82f6;
}

/* 애니메이션(animation) */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
.slide-up {
    animation: slideUp 0.3s ease-out;
}
.shake {
    animation: shake 0.5s ease-in-out;
}
.scale-in {
    animation: scaleIn 0.3s ease-out;
}
.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}
.slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}
.bounce-in {
    animation: bounce 0.8s ease-out forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes bounce {
    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    40%,
    43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* 드롭다운(dropdown) */
.dropdown-enter {
    animation: dropdownEnter 0.2s ease-out;
}
.dropdown-enter-up {
    animation: dropdownEnterUp 0.15s ease-out;
}
.dropdown-enter-down {
    animation: dropdownEnterDown 0.15s ease-out;
}
@keyframes dropdownEnter {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes dropdownEnterUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px); /* 아래서 위로 */
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
@keyframes dropdownEnterDown {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px); /* 위에서 아래로 */
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 카드 호버 효과 */
.card-hover {
    transition: all 0.3s ease-in-out;
}
.card-hover:hover:not(.no-transform) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 모달 */
.modal-backdrop {
    backdrop-filter: blur(4px);
}
.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 하이라이트(highlight) */
.search-highlight {
    background-color: #fef3c7;
    padding: 1px 2px;
    border-radius: 2px;
}

/* 하이라이트 밑줄 */
/* .search-highlight {
    background: linear-gradient(120deg, #fbbf24 0%, #fbbf24 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
} */

/* loading spinner */
.loading-spinner {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
