@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css");

.sidebar {
    background-color: #5A57FF;
}

.font-bold {
    font-weight: bold !important;
}

.color-navy {
    color: #5A57FF !important;
}

.color-navy-2 {
    color: #6651FF !important;
}

table.row-bg tr:nth-child(odd),
table.row-bg tr:nth-child(odd) td {
    background-color: #F1F5F9 !important;
}

table.row-bg tr:nth-child(even),
table.row-bg tr:nth-child(even) td {
    background-color: #FFFFFF !important;
}

tr.transfer-highlight.transfer-withdraw .transfer-fill {
    color: #0000FF !important;
    font-weight: bold !important;
}

tr.transfer-highlight.transfer-deposit .transfer-fill {
    color: #FF0000 !important;
    font-weight: bold !important;
}

tr.transfer-highlight .transfer-fill-red {
    color: #FF0000 !important;
    font-weight: bold !important;
}
/* 텍스트 줄바꿈 없음 */
.text-wrap {
    white-space: nowrap !important;
}

/* 상단 정보에서 텍스트 줄바꿈 없음, 컨테이너 내 줄 바꿈 */
.info-wrap {
    white-space: nowrap !important;
}

.flex-wrap {
    flex-wrap: wrap;
}

body,
body *,
html,
input,
button,
textarea,
select,
.form-control,
.btn,
.card,
table,
th,
td {
    font-family: "Pretendard Variable", Pretendard, sans-serif !important;
    font-size: 13px;
}
/* 사이드바 기본 스타일 */
.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    scrollbar-width: none;
    overflow-y: scroll;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

/* 로고 영역 */
.sidebar .logo-area {
    padding: 1rem;
    text-align: center;
}

/* 네비게이션 링크 */
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 0;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* 메인 콘텐츠 영역 */
.main-content {
    margin-left: 240px;
    width: calc(100% - 240px);
}

/* 반응형: 1100px 이하일 때 사이드바 접기 */
@media (max-width: 1100px) {
    /* 접힌 상태 기본 설정 */
    .sidebar {
        width: 60px;
    }

    /* 로고 숨기기 */
    .sidebar .logo-area {
        display: none;
    }

    /* 접힌 상태에서 링크 스타일 조정 */
    .sidebar .nav-link {
        justify-content: center;
        padding: 0.75rem 0;
    }

    /* 접힌 상태에서 텍스트 숨기기 */
    .sidebar .nav-link span,
    .sidebar .nav-link > *:not(i) {
        display: none;
    }

    /* 추가: 접힌 상태에서 a 태그의 내용물 중 아이콘만 남기고 모두 제거 */
    .sidebar .nav-link {
        font-size: 0;
    }
    .sidebar:hover .nav-link.active {
        color: white;
        background-color: rgba(255, 255, 255, 0.2);
    }

    .sidebar .nav-link i {
        font-size: 1.25rem;
    }

    /* 하위 메뉴 숨기기 */
    .sidebar ul.nav.flex-column.ms-3 {
        display: none;
    }

    /* 메인 콘텐츠 조정 */
    .main-content {
        margin-left: 60px;
        width: calc(100% - 60px);
    }

    /* 호버 상태 - 확장 */
    .sidebar:hover {
        width: 240px;
    }

    /* 호버 상태에서 로고 표시 */
    .sidebar:hover .logo-area {
        display: block;
    }

    /* 호버 상태에서 링크 스타일 복원 */
    .sidebar:hover .nav-link {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }

    /* 호버 상태에서 텍스트 표시 */
    .sidebar:hover .nav-link {
        font-size: 1rem; /* 또는 적절한 폰트 크기 */
    }

    .sidebar:hover .nav-link span,
    .sidebar:hover .nav-link > *:not(i) {
        display: inline;
    }
    /* 호버 상태에서 아이콘 스타일 복원 */
    .sidebar:hover .nav-link i {
        margin-right: 0.5rem;
        font-size: 1rem;
    }

    /* 호버 상태에서 하위 메뉴 표시 */
    .sidebar:hover ul.nav.flex-column.ms-3 {
        display: flex;
    }
}

