/* 남부광역센터 통합 관리 시스템 커스텀 테마 */

:root {
    --primary-charcoal: #111111;
    --accent-gold: #C8B273;
    --background-ivory: #F7F7F2;
    --line-divider: #DCDCDC;
}

/* 사이드바 */
.sidebar {
    background: linear-gradient(180deg, var(--primary-charcoal) 0%, #1a1a1a 100%) !important;
}

.sidebar .sidebar-brand {
    background-color: var(--primary-charcoal) !important;
}

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

.sidebar .nav-item .nav-link:hover {
    color: var(--accent-gold) !important;
}

.sidebar .nav-item .nav-link.active {
    color: var(--accent-gold) !important;
}

.sidebar .collapse-item {
    color: #666 !important;
}

.sidebar .collapse-item:hover {
    background-color: #f8f9fa !important;
    color: var(--primary-charcoal) !important;
}

.sidebar .collapse-item.active {
    background-color: var(--accent-gold) !important;
    color: white !important;
    font-weight: 600;
}

.sidebar-divider {
    border-top: 1px solid rgba(200, 178, 115, 0.3) !important;
}

/* 상단바 */
.topbar {
    background-color: white !important;
    border-bottom: 1px solid var(--line-divider);
}

/* 버튼 */
.btn-primary {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #B8A263 !important;
    border-color: #B8A263 !important;
}

/* 카드 */
.card {
    border: 1px solid var(--line-divider);
}

.border-left-primary {
    border-left: 0.25rem solid var(--primary-charcoal) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--accent-gold) !important;
}

.border-left-info {
    border-left: 0.25rem solid #8B7355 !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--accent-gold) !important;
}

.text-primary {
    color: var(--primary-charcoal) !important;
}

/* 테이블 */
.table-bordered {
    border: 1px solid var(--line-divider);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--line-divider);
}

.thead-light th {
    background-color: var(--background-ivory);
    color: var(--primary-charcoal);
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(200, 178, 115, 0.1);
}

/* 배지 */
.badge-warning {
    background-color: var(--accent-gold) !important;
    color: white !important;
}

.badge-success {
    background-color: #6c757d !important;
}

/* 검색창 */
.form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(200, 178, 115, 0.25);
}

/* 페이지 헤딩 */
.text-gray-800 {
    color: var(--primary-charcoal) !important;
}

/* 홈 화면 센터 카드 */
a[href$=".html"] .card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 0.5rem 1.5rem rgba(200, 178, 115, 0.3) !important;
}
