/* 커스텀 스타일 - CoreUI 오버라이드 */

/* 전체 폰트 사이즈 조정 */
body {
    font-size: 0.875rem !important;
}

h1, .h1 {
    font-size: 1.75rem !important;
}

h2, .h2 {
    font-size: 1.5rem !important;
}

h3, .h3 {
    font-size: 1.25rem !important;
}

h4, .h4 {
    font-size: 1.1rem !important;
}

h5, .h5 {
    font-size: 1rem !important;
}

h6, .h6 {
    font-size: 0.9rem !important;
}

.card-header {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.nav-link {
    font-size: 0.9rem !important;
}

.table {
    font-size: 0.875rem !important;
}

.btn {
    font-size: 0.875rem !important;
}

.form-control {
    font-size: 0.875rem !important;
}

.form-label {
    font-size: 0.875rem !important;
}

/* CoreUI 사이드바 스타일 */
.sidebar {
    background: #2f353a !important;
    color: #fff;
}

.sidebar-brand {
    background: #1f2326 !important;
    color: #fff !important;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.sidebar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.sidebar-nav .nav-icon {
    color: rgba(255, 255, 255, 0.6) !important;
}

.sidebar-nav .nav-link.active .nav-icon {
    color: #fff !important;
}

/* CoreUI 헤더 스타일 */
.header {
    background: #fff !important;
    border-bottom: 1px solid #d8dbe0;
}

/* 카드 스타일 */
.card {
    border: 1px solid #d8dbe0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #d8dbe0;
}

/* 테이블 스타일 */
.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 배지 스타일 */
.badge {
    font-size: 0.75rem !important;
    padding: 0.35em 0.65em;
}

/* CoreUI 레이아웃 수정 - 사이드바와 메인 콘텐츠 겹침 방지 */
.wrapper {
    position: relative;
}

.sidebar.sidebar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
}

.body {
    margin-left: 256px; /* CoreUI 사이드바 기본 너비 */
    transition: margin-left 0.3s;
    min-height: 100vh;
}

/* 사이드바가 접혔을 때 */
.sidebar-unfoldable .body {
    margin-left: 56px; /* 접힌 사이드바 너비 */
}

/* 사이드바가 숨겨졌을 때 */
.sidebar-hidden .body {
    margin-left: 0;
}
