﻿body {
}
<!-- =========================
CSS
========================= -->
<style >
/* 다운로드 버튼 스타일 개선 */
.custom-btn {
    width: 110px;
    height: 42px;
    color: #fff;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: 'Segoe UI', 'Noto Sans KR', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    overflow: hidden;
    margin: 0 6px;
}

/* PNG (보라빛 네온) */
.btn-png {
    background: linear-gradient(135deg, #232526 0%, #414345 100%) !important;
    /*box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4) !important;
                            border: 1px solid rgba(138, 43, 226, 0.5) !important;*/
}

    .btn-png:hover {
        background: linear-gradient(135deg, #3a3a3a 0%, #1e1e1e 100%) !important;
        /*box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6) !important;
                        */
    }

/* CSV (초록빛 네온) */
.btn-csv {
    background: linear-gradient(135deg, #232526 0%, #414345 100%) !important;
    /*box-shadow: 0 4px 15px rgba(0, 255, 157, 0.4) !important;
                    border: 1px solid rgba(0, 255, 157, 0.5) !important;
                    */
}

    .btn-csv:hover {
        background: linear-gradient(135deg, #3a3a3a 0%, #1e1e1e 100%) !important;
        /*box-shadow: 0 6px 20px rgba(0, 255, 157, 0.6) !important;
                        */
    }

/* Excel (하늘빛 네온) */
.btn-excel {
    background: linear-gradient(135deg, #232526 0%, #414345 100%) !important;
    /*box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4) !important;
                    border: 1px solid rgba(0, 191, 255, 0.5) !important;
                    */
}

    .btn-excel:hover {
        background: linear-gradient(135deg, #3a3a3a 0%, #1e1e1e 100%) !important;
        /*box-shadow: 0 6px 20px rgba(0, 191, 255, 0.6) !important;
                        */
    }


/* 아이콘 스타일 */
.custom-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.custom-btn:hover i {
    transform: scale(1.15);
}

/* 반짝임 효과 */
.custom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.3), transparent );
    transition: left 0.5s;
}

.custom-btn:hover::before {
    left: 100%;
}

/* 로딩 상태 (옵션) */
.custom-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

    .custom-btn.loading::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin-left: -8px;
        margin-top: -8px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 0.6s linear infinite;
    }

@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 다크모드 대응 */
.dark-mode .custom-btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

    .dark-mode .custom-btn:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    }

/* 반응형 */
@@media (max-width: 768px) {
    .custom-btn {
        width: 90px;
        height: 38px;
        font-size: 0.8rem;
        padding: 8px 12px;
        margin: 0 4px;
    }

        .custom-btn i {
            font-size: 1rem;
        }
}

/* 버튼 그룹 컨테이너 */
.text-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* 모드 전환 */
.mode-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 140px);
    overflow: hidden;
}

.mode-inner {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.mode-view {
    flex: 0 0 50%;
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
}

.chart-box {
    width: 95%;
    margin: 0 auto;
    height: 30vh;
    min-height: 160px;
    background: #fafafa;
}

.mode-dashboard .mode-inner {
    transform: translateX(0);
}

.mode-research .mode-inner {
    transform: translateX(-50%);
}

.mode-btn {
    font-weight: bold;
    min-width: 120px;
}

    .mode-btn.active {
        background-color: #d9534f !important;
        color: #fff !important;
        border: none;
    }

    .mode-btn.inactive {
        background-color: #e6e6e6 !important;
        color: #555 !important;
        border: none;
    }

/* 다크모드 모드 버튼 */
.dark-mode .mode-btn.inactive {
    background-color: #2d3748 !important;
    color: #a0aec0 !important;
}

.dark-mode .mode-btn.active {
    background-color: #e53e3e !important;
    color: #fff !important;
}

/* 연구성과 섹션 스타일 */
.research-section-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

    .research-section-header h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 10px;
        letter-spacing: -0.5px;
    }

    .research-section-header p {
        font-size: 1rem;
        color: #7f8c8d;
        line-height: 1.6;
    }

/* 다크모드 섹션 헤더 */
.dark-mode .research-section-header h2 {
    color: #e3e8ef;
}

.dark-mode .research-section-header p {
    color: #a0aec0;
}

/* 연구성과 그리드 */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto 30px;
}

/* 연구 카드 */
.research-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

    .research-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #3b82f6, #1e40af);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    .research-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
        border-color: rgba(102, 126, 234, 0.3);
    }

        .research-card:hover::before {
            transform: scaleX(1);
        }

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

    .card-icon i {
        font-size: 1.8rem;
        color: white;
    }

.research-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.research-card:hover .card-title {
    color: #3b82f6;
}

.card-description {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.research-card:hover .card-description {
    color: #5a6c7d;
}

.card-arrow {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: all 0.3s ease;
}

    .card-arrow i {
        font-size: 1.2rem;
        color: #3b82f6;
        transition: transform 0.3s ease;
    }

.research-card:hover .card-arrow {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

    .research-card:hover .card-arrow i {
        transform: translateX(3px);
    }

/* 다크모드 연구 카드 */
.dark-mode .research-card {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

    .dark-mode .research-card:hover {
        background: rgba(55, 65, 82, 0.9);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
        border-color: rgba(102, 126, 234, 0.4);
    }

.dark-mode .card-title {
    color: #e3e8ef;
}

.dark-mode .research-card:hover .card-title {
    color: #8ab4f8;
}

.dark-mode .card-description {
    color: #a0aec0;
}

.dark-mode .research-card:hover .card-description {
    color: #cbd5e0;
}

.dark-mode .card-arrow {
    background: rgba(138, 180, 248, 0.15);
}

    .dark-mode .card-arrow i {
        color: #8ab4f8;
    }

.dark-mode .research-card:hover .card-arrow {
    background: rgba(138, 180, 248, 0.25);
}

/* 연구 공지 */
.research-notice {
    max-width: 1400px;
    margin: 30px auto;
    padding: 25px 30px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5cc 100%);
    border-left: 4px solid #f39c12;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .research-notice p {
        margin: 8px 0;
        font-size: 0.95rem;
        color: #7f6d3e;
        line-height: 1.6;
    }

        .research-notice p b {
            color: #d68910;
            font-weight: 600;
        }

/* 다크모드 연구 공지 */
.dark-mode .research-notice {
    background: linear-gradient(135deg, rgba(58, 47, 24, 0.6) 0%, rgba(66, 53, 28, 0.6) 100%);
    border-left-color: #f5a623;
}

    .dark-mode .research-notice p {
        color: #e8d7b0;
    }

        .dark-mode .research-notice p b {
            color: #fbbf24;
        }

/* 방문자 박스 */
.visitor-box {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    color: #2c3e50;
    line-height: 1.6;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    .visitor-box:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }

    .visitor-box b {
        color: #3b82f6;
        font-weight: 600;
    }

/* 다크모드 방문자 박스 */
.dark-mode .visitor-box {
    background: rgba(45, 55, 72, 0.95);
    color: #e3e8ef;
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

    .dark-mode .visitor-box:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    }

    .dark-mode .visitor-box b {
        color: #8ab4f8;
    }

/* 대시보드 버튼 */
.dashboard-button {
    display: block;
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-button-inner {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 20px;
    padding: 30px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .dashboard-button-inner::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s ease;
    }

.dashboard-button:hover .dashboard-button-inner {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

    .dashboard-button:hover .dashboard-button-inner::before {
        left: 100%;
    }

.dashboard-button-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-button-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dashboard-button:hover .dashboard-button-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(255, 255, 255, 0.3);
}

.dashboard-button-icon i {
    font-size: 2rem;
    color: white;
}

.dashboard-button-text {
    text-align: left;
}

.dashboard-button-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.dashboard-button-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-button-arrow {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dashboard-button:hover .dashboard-button-arrow {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.dashboard-button-arrow i {
    font-size: 1.3rem;
    color: white;
}

/* 다크모드에서도 동일한 파란색 유지 */
.dark-mode .dashboard-button-inner {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.dark-mode .dashboard-button:hover .dashboard-button-inner {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

/* 대시보드 버튼 반응형 */
@@media (max-width: 768px) {
    .dashboard-button-inner {
        padding: 20px 20px;
    }

    .dashboard-button-left {
        gap: 15px;
    }

    .dashboard-button-icon {
        width: 50px;
        height: 50px;
    }

        .dashboard-button-icon i {
            font-size: 1.6rem;
        }

    .dashboard-button-title {
        font-size: 1.2rem;
    }

    .dashboard-button-desc {
        font-size: 0.85rem;
    }

    .dashboard-button-arrow {
        width: 40px;
        height: 40px;
    }

        .dashboard-button-arrow i {
            font-size: 1.1rem;
        }

    .visitor-box {
        bottom: 16px;
        right: 16px;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

</style >