/* 의료분쟁정보 커스텀 CSS */

/* 기본 */
body {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 네비게이션 */
.navbar-brand {
    font-size: 1.2rem;
}

.navbar .input-group {
    min-width: 200px;
}

/* 통계 카드 */
.stat-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-width: 2px;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 퀵링크 카드 */
.quick-link-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 상담분석 카드 */
.consultation-card {
    transition: box-shadow 0.2s;
}

.consultation-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 상세 콘텐츠 */
.detail-content {
    line-height: 1.8;
    word-break: keep-all;
}

.detail-content p {
    margin-bottom: 0.75rem;
}

/* 검색 하이라이트 */
mark {
    background-color: #fff3cd;
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

/* 테이블 */
.table th {
    white-space: nowrap;
    font-size: 0.9rem;
}

.table td {
    vertical-align: middle;
}

/* 페이지네이션 */
.pagination .page-link {
    color: #0d6efd;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* 배지 */
.badge {
    font-weight: 500;
}

/* 풋터 */
footer a {
    transition: opacity 0.2s;
}

footer a:hover {
    color: #fff !important;
    opacity: 1 !important;
}

/* 브레드크럼 */
.breadcrumb {
    font-size: 0.9rem;
}

/* 차트 컨테이너 */
canvas {
    max-width: 100%;
}

/* 프로그레스 바 */
.progress {
    border-radius: 10px;
}

.progress-bar {
    font-size: 0.75rem;
    border-radius: 10px;
}

/* 아코디언 */
.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
}

/* 반응형 */
@media (max-width: 768px) {
    .navbar .input-group {
        min-width: 150px;
        margin-top: 0.5rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .card-header {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1.h3 {
        font-size: 1.3rem;
    }

    .stat-card .card-body {
        padding: 0.75rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }
}

/* 프린트 */
@media print {
    .navbar, footer, .pagination, .breadcrumb, form {
        display: none !important;
    }

    .card {
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}
