﻿/* 통합 CSS 스타일 - 모바일 최적화 */
@import url('//fonts.googleapis.com/earlyaccess/notosanskr.css');

@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

/* =========================
   공통 변수 및 기본 레이아웃
   ========================= */
:root {
    --primary-color: #0969da;
    --primary-hover: #0550ae;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --knu-red: #B5121B;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: 'Pretendard-Regular', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* body를 flex 컨테이너로 하여 footer가 하단에 붙도록 처리 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    width: 100%;
    overflow-x: hidden;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

/* main이 남은 영역을 차지 */
main {
    flex: 1 0 auto;
    animation: fadeIn 0.5s ease-out;
}

/* =========================
   네비게이션 / 브랜드 / 링크
   ========================= */
.navbar {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    padding: 0.75rem 0;
    min-height: 90px;
    width: 100%;
}

    .navbar .navbar-brand {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--primary-color) !important;
        display: flex;
        align-items: center;
        transition: var(--transition);
    }

        .navbar .navbar-brand b {
            font-size: 1.55rem;
        }

        .navbar .navbar-brand img {
            margin-left: 10px;
            margin-right: 10px;
            height: 40px;
            width: auto;
            transition: var(--transition);
        }

        .navbar .navbar-brand:hover {
            color: var(--primary-hover) !important;
            transform: translateX(3px);
        }

            .navbar .navbar-brand:hover img {
                transform: scale(1.05);
            }

/* nav-link 스타일과 하단 애니메이션 라인 */
.navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    white-space: nowrap;
}

    .navbar-nav .nav-item {
        flex-shrink: 0;
        margin-top: 0.5rem;
    }

    .navbar-nav .nav-link {
        font-weight: 500;
        color: #24292f !important;
        padding: 0.5rem 1rem !important;
        border-radius: 8px;
        position: relative;
        transition: var(--transition);
        text-decoration: none;
    }

        .navbar-nav .nav-link:hover {
            color: var(--primary-color) !important;
            background-color: rgba(9, 105, 218, 0.08);
        }

        .navbar-nav .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: var(--transition);
            transform: translateX(-50%);
        }

        .navbar-nav .nav-link:hover::after {
            width: 80%;
        }

    /* =========================
   large-menu / small-menu
   ========================= */
    /* 큰 메뉴 (주요 항목) */
    .navbar-nav .large-menu a.nav-link {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 0.6rem 1rem;
        color: #222 !important;
        transition: color 0.2s ease;
    }

        .navbar-nav .large-menu a.nav-link:hover {
            color: var(--knu-red) !important;
            text-decoration: underline;
        }

    .navbar-nav .large-menu {
        margin-right: 0.8rem;
    }

    /* 작은 메뉴 (보조 항목) */
    .navbar-nav .small-menu a.nav-link {
        font-size: 0.9rem;
        color: #555 !important;
        padding: 0.4rem 0.7rem;
        font-weight: 400;
        transition: color 0.2s ease;
    }

        .navbar-nav .small-menu a.nav-link:hover {
            color: var(--knu-red) !important;
        }

/* =========================
   theme-toggle (토글 버튼)
   ========================= */
.theme-toggle {
    position: static !important;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .theme-toggle:hover {
        background: #5568d3;
        transform: rotate(10deg);
    }

    .theme-toggle:active {
        transform: scale(0.95);
    }

/* ========================================= */
/* 방문자 현황 배지 & 연구도우미 안내 카드 */
/* ========================================= */

.fixed-bottom-left {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    z-index: 9999;
}

.visitor-summary {
    position: static !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #333;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    white-space: nowrap;
}

.visitor-summary__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 12px 22px rgba(99, 102, 241, 0.35);
}

.visitor-summary__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visitor-summary__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.visitor-summary__metrics {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.visitor-summary__today {
    font-size: 1.25rem;
    color: #2563eb;
}

.visitor-summary__total {
    color: #475569;
}

.visitor-summary__separator {
    color: #a0aec0;
}

.chat-assistant-hint {
    position: fixed;
    right: 16px;
    bottom: 88px;
    padding: 16px 48px 16px 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    max-width: 50vw;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 243, 255, 0.95));
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
    color: #1f2937;
    z-index: 9500;
    backdrop-filter: blur(16px);
}

.chat-assistant-hint__icon {
    font-size: 1.75rem;
}

.chat-assistant-hint__content {
    font-size: 0.92rem;
    line-height: 1.55;
}

    .chat-assistant-hint__content strong {
        display: inline-block;
        font-weight: 700;
        margin-bottom: 2px;
        color: #4c1d95;
    }

.chat-assistant-hint__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #475569;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

    .chat-assistant-hint__close:hover {
        transform: scale(1.1);
        color: #1f2937;
    }

.chat-assistant-hint[hidden] {
    display: none !important;
}

.dark-mode .visitor-summary {
    background: rgba(30, 41, 59, 0.92);
    color: #e2e8f0;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.55);
}

.dark-mode .visitor-summary__label {
    color: #94a3b8;
}

.dark-mode .visitor-summary__total {
    color: #cbd5f5;
}

.dark-mode .chat-assistant-hint {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.95));
    border-color: rgba(129, 140, 248, 0.35);
    color: #e2e8f0;
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.55);
}

.dark-mode .chat-assistant-hint__content strong {
    color: #c4b5fd;
}

.dark-mode .chat-assistant-hint__close {
    color: #cbd5f5;
}

@media (max-width: 1200px) {
    .chat-assistant-hint {
        right: 88px;
        bottom: 104px;
    }

    .visitor-summary {
        left: 20px;
        bottom: 88px;
    }
}

@media (max-width: 992px) {
    .chat-assistant-hint {
        right: 20px;
        bottom: 108px;
        max-width: 280px;
    }

    .visitor-summary {
        left: 20px;
        bottom: 160px;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .chat-assistant-hint {
        right: 16px;
        left: 16px;
        bottom: 88px;
        max-width: none;
    }

    .visitor-summary {
        left: 16px;
        right: 16px;
        bottom: 148px;
        justify-content: center;
    }
}

/* ⚠️ 챗봇 스타일은 chat-assistant.css에서 관리됩니다 - 중복 제거됨 */

/* =========================
   다크 모드 (토글과 연동)
   ========================= */
.dark-mode {
    background-color: #0f1419 !important;
    color: #e3e8ef;
}

    .dark-mode body,
    .dark-mode {
        background-color: #0f1419 !important;
        color: #e3e8ef !important;
    }

        .dark-mode .navbar {
            background-color: rgba(22, 27, 34, 0.95) !important;
            border-bottom: 1px solid #30363d !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        }

        .dark-mode .navbar-brand {
            color: #58a6ff !important;
        }

            .dark-mode .navbar-brand:hover {
                color: #79c0ff !important;
            }

        .dark-mode .navbar .nav-link {
            color: #adbac7 !important;
        }

            .dark-mode .navbar .nav-link:hover {
                color: #58a6ff !important;
                background-color: rgba(88, 166, 255, 0.1);
            }

            .dark-mode .navbar .nav-link::after {
                background: #58a6ff;
            }

        .dark-mode .btn,
        .dark-mode button {
            background-color: #333 !important;
            color: #eee !important;
        }

        .dark-mode input,
        .dark-mode textarea,
        .dark-mode select {
            background-color: #2a2a2a !important;
            color: #fff !important;
            border: 1px solid #555 !important;
        }

            .dark-mode input::placeholder,
            .dark-mode textarea::placeholder {
                color: #aaa !important;
            }

        .dark-mode .footer {
            background-color: rgba(22, 27, 34, 0.95) !important;
            color: #768390 !important;
            border-top: 1px solid #30363d !important;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
        }

/* =========================
   스크롤바 커스터마이징
   ========================= */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
    transition: background 0.3s;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

.dark-mode::-webkit-scrollbar-track {
    background: #1c2128;
}

.dark-mode::-webkit-scrollbar-thumb {
    background: #444c56;
}

    .dark-mode::-webkit-scrollbar-thumb:hover {
        background: #58a6ff;
    }

/* =========================
   기본 컨테이너 / 홈 레이아웃
   ========================= */
.container, .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.home-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
    margin: auto;
}

/* =========================
   데이터 버튼
   ========================= */
.data-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 280px;
    height: 280px;
    max-width: 100%;
    border: 1px solid #dee2e6;
    border-end-end-radius: 48px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 6px 12px rgba(0,0,0,.15);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

    .data-button:hover,
    .data-button:focus-visible {
        transform: translateY(-12px);
        border: 2px solid #ff0000;
        box-shadow: 0 10px 24px rgba(0,0,0,.2);
    }

    .data-button img {
        width: 160px;
        height: 160px;
        margin-bottom: 1rem;
        object-fit: contain;
    }

    .data-button .btn-label {
        font-family: 'Pretendard-Regular', 'Noto Sans KR', sans-serif;
        font-size: 1.4rem;
        font-weight: 600;
        color: #333;
        text-align: center;
        line-height: 1.3;
        word-break: keep-all;
        white-space: normal;
    }

.dark-mode .data-button {
    background: #333;
    color: #fff;
    border: 1px solid #555;
}

    .dark-mode .data-button .btn-label {
        color: #fff;
    }

    .dark-mode .data-button img {
        filter: invert(1) hue-rotate(180deg);
    }

/* =========================
   footer / 테이블 / 유틸
   ========================= */
footer.footer {
    position: static !important;
    margin-top: auto;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    min-height: 60px;
    width: 100%;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 1rem;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
    min-width: 600px;
    font-size: 0.85rem;
}

th, td {
    padding: 0.2rem 0.4rem;
    border: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    height: 2rem;
    vertical-align: middle;
    min-width: 8ch;
}

.info-icon {
    display: none;
    margin-left: 2px;
    color: #007bff;
    cursor: help;
    position: absolute;
    right: 0.15rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    z-index: 10;
}

.has-overflow .info-icon {
    display: inline !important;
}

td:hover .info-icon {
    display: inline;
}

th .info-icon {
    display: inline;
    position: static;
    margin-left: 2px;
    color: #007bff;
    cursor: help;
    font-size: 0.75rem;
    transform: none;
    z-index: 10;
}

.hover-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 1000;
    white-space: pre-line;
    word-wrap: break-word;
    max-width: 90vw;
    min-width: 200px;
    line-height: 1.4;
}

/* ========================================
   반응형
   ======================================== */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 16px;
        left: 16px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand img {
        height: 32px;
    }

    .large-menu .nav-link {
        font-size: 1.0rem !important;
    }

    .small-menu .nav-link {
        font-size: 0.85rem !important;
    }

    body > main,
    body > .container-fluid,
    main > .container-fluid {
        min-height: calc(100vh - 70px - 50px) !important;
    }

    .home-container {
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .data-button {
        width: 220px;
        height: 220px;
        font-size: 1.3rem;
    }

        .data-button img {
            width: 130px;
            height: 130px;
        }
}

@media (max-width: 480px) {
    body > main,
    body > .container-fluid,
    main > .container-fluid {
        min-height: calc(100vh - 60px - 40px) !important;
    }

    .home-container {
        gap: 1rem;
        padding: 1rem 0.5rem;
    }

    .data-button {
        width: 180px;
        height: 180px;
        font-size: 1.1rem;
    }

        .data-button img {
            width: 100px;
            height: 100px;
        }
}

@media (max-width: 360px) {
    .home-container {
        gap: 0.8rem;
    }

    .data-button {
        width: 150px;
        height: 150px;
    }

        .data-button img {
            width: 80px;
            height: 80px;
        }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-form input {
    padding: .5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.875rem;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

.search-form button,
.search-form .btn {
    padding: .5rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

    .btn-primary:hover {
        background-color: #0056b3;
        border-color: #0056b3;
    }

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

    .btn-success:hover {
        background-color: #218838;
        border-color: #1e7e34;
    }

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

    .btn-secondary:hover {
        background-color: #5a6268;
        border-color: #545b62;
    }

.btn-outline-secondary {
    background-color: transparent;
    border-color: #6c757d;
    color: #6c757d;
}

    .btn-outline-secondary:hover {
        background-color: #6c757d;
        color: #fff;
    }

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.pagination {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
}

    .pagination a {
        padding: 4px 8px;
        background-color: #f0f0f0;
        color: #333;
        text-decoration: none;
        border-radius: 4px;
        font-size: 0.875rem;
        min-width: 32px;
        text-align: center;
        box-sizing: border-box;
        border: 1px solid #ddd;
    }

        .pagination a.active {
            background-color: #007bff;
            color: white;
            pointer-events: none;
            border-color: #007bff;
        }

        .pagination a:hover:not(.active) {
            background-color: #e9ecef;
            border-color: #ccc;
        }

.dark-mode .pagination a {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
}

    .dark-mode .pagination a.active {
        background-color: #0d6efd !important;
        color: #ffffff !important;
        border-color: #0d6efd !important;
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25) !important;
    }

    .dark-mode .pagination a:hover:not(.active) {
        background-color: #404040 !important;
        color: #ffffff !important;
        border-color: #666 !important;
    }

    .dark-mode .pagination a.prev::before {
        border-color: transparent #e0e0e0 transparent transparent !important;
    }

    .dark-mode .pagination a.next::after {
        border-color: transparent transparent transparent #e0e0e0 !important;
    }

    .dark-mode .pagination a.prev:hover::before {
        border-color: transparent #ffffff transparent transparent !important;
    }

    .dark-mode .pagination a.next:hover::after {
        border-color: transparent transparent transparent #ffffff !important;
    }

.dark-mode .jump-to input {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
}

.dark-mode .jump-to button {
    background: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

    .dark-mode .jump-to button:hover {
        background: #0b5ed7 !important;
        border-color: #0b5ed7 !important;
    }

.sortable-header {
    cursor: pointer;
    position: relative;
    user-select: none;
    padding: 0.2rem 0.4rem;
}

    .sortable-header:hover {
        background-color: #f8f9fa;
    }

.sort-indicator {
    display: inline-block;
    margin-left: 2px;
    font-size: 0.8em;
    color: #666;
    font-weight: bold;
}

.column-search {
    width: calc(100% - 8px);
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 0.75em;
    margin-top: 2px;
    display: block;
    box-sizing: border-box;
}

    .column-search:focus {
        border-color: #007bff;
        outline: none;
    }

.sort-controls {
    margin-bottom: 1rem;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.current-sorts {
    font-size: 0.9em;
    color: #666;
    flex: 1;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.cell-text {
    display: block;
    width: 100%;
    padding-right: .8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.pagination a.prev,
.pagination a.next {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-block;
    text-align: center;
    line-height: 32px;
}

    .pagination a.prev::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 6px 8px 6px 0;
        border-color: transparent #333 transparent transparent;
    }

    .pagination a.next::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 6px 0 6px 8px;
        border-color: transparent transparent transparent #333;
    }

    .pagination a.prev:hover::before {
        border-color: transparent #007bff transparent transparent;
    }

    .pagination a.next:hover::after {
        border-color: transparent transparent transparent #007bff;
    }

    .pagination a.prev:not([href])::before,
    .pagination a.next:not([href])::before {
        border-color: transparent #ccc transparent transparent;
    }

    .pagination a.prev:not([href])::after,
    .pagination a.next:not([href])::after {
        border-color: transparent transparent transparent #ccc;
    }

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.container-fluid {
    padding-bottom: 0 !important;
}

.row {
    --bs-gutter-y: 0;
}

.container-fluid .row > [class*="col-"] .card {
    margin-bottom: 0 !important;
}

.home-container {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 20px;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

    .home-container .data-button {
        flex: 0 0 auto;
        text-align: center;
    }

.carousel-control-prev,
.carousel-control-next {
    width: auto;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-size: 100% 100%;
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.carousel-control-prev {
    left: calc(50% - 460px);
}

.carousel-control-next {
    right: calc(50% - 460px);
}

.data-button .btn-label {
    font-family: 'Pretendard-Regular', 'Noto Sans KR', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    margin-top: 8px;
    word-break: keep-all;
    white-space: normal;
}

.custom-btn {
    display: inline-block;
    background: linear-gradient(90deg, #3b82f6, #1e40af) !important;
    color: #fff !important;
    margin-left: 5px;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.chart-box {
    margin-bottom: 1rem;
}

.custom-btn {
    margin: 0 4px;
}

.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

    .dark-mode body {
        background-color: #121212 !important;
        color: #e0e0e0 !important;
    }

    .dark-mode .navbar {
        background-color: #121212 !important;
    }

    .dark-mode .footer {
        background-color: #121212 !important;
        color: #aaa !important;
    }

    .dark-mode a {
        color: #90caf9 !important;
    }

    .dark-mode .container-fluid,
    .dark-mode .container {
        background-color: #121212 !important;
        color: #e0e0e0 !important;
    }

    .dark-mode .card {
        background-color: #2a2a2a !important;
        color: #e0e0e0 !important;
        border-color: #444 !important;
    }

    .dark-mode table {
        background-color: #121212 !important;
        color: #e0e0e0 !important;
        border-color: #444 !important;
    }

    .dark-mode th {
        background-color: #2a2a2a !important;
        color: #e0e0e0 !important;
        border-color: #444 !important;
    }

    .dark-mode td {
        background-color: #121212 !important;
        color: #e0e0e0 !important;
        border-color: #444 !important;
    }

    .dark-mode .btn {
        background-color: #333 !important;
        color: #eee !important;
    }

    .dark-mode .theme-toggle {
        --btn-bg: #333;
        color: #fff;
    }

    .dark-mode .data-button {
        background: #333;
        color: #fff;
        border: 1px solid #555;
    }

        .dark-mode .data-button img {
            filter: invert(1) hue-rotate(180deg);
        }

    .dark-mode input,
    .dark-mode textarea,
    .dark-mode select {
        background-color: #2a2a2a !important;
        color: #fff !important;
        border: 1px solid #555 !important;
    }

        .dark-mode input::placeholder,
        .dark-mode textarea::placeholder {
            color: #aaa !important;
        }

    .dark-mode button,
    .dark-mode .btn01 {
        background-color: #444 !important;
        color: #fff !important;
        border: 1px solid #666 !important;
    }

        .dark-mode button:hover,
        .dark-mode .btn01:hover {
            background-color: #666 !important;
        }

    .dark-mode .navbar.border-bottom {
        border-bottom: 1px solid #333 !important;
    }

    .dark-mode .footer.border-top {
        border-top: 1px solid #333 !important;
    }

#jcrChart, #trendChart, #csvChartDocs, #csvChartFwci {
    border: none !important;
    background: transparent !important;
}
