/* ====================== 공통 ====================== */
body.records-body {
    background: #0e1017;
    color: #e2e8f0;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ====================== 헤더 ====================== */
.records-hero {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #00f0ff;
}

.records-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.records-hero p {
    font-size: 1rem;
    color: #a5b4fc;
}

/* ====================== 검색폼 ====================== */
.search-form {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.search-form input[type="text"] {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    width: 220px;
    background-color: #1e293b;
    color: #e2e8f0;
}

.search-form input::placeholder {
    color: #64748b;
}

.search-form .btn {
    padding: 0.6rem 1rem;
    background-color: #00f0ff;
    color: #0f172a;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.search-form .btn:hover {
    background-color: #0ff;
}

/* ====================== 테이블 ====================== */
.search-results {
    margin: 2rem auto;
    max-width: 95%;
}

.table-scroll {
    overflow-x: auto;
    background-color: #1e1f24;
    border-radius: 12px;
    padding: 1rem;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.records-table th,
.records-table td {
    padding: 0.6rem 0.8rem;
    text-align: center;
    border-bottom: 1px solid #334155;
}

.records-table thead {
    background-color: #111827;
}

.records-table th {
    color: #38bdf8;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.records-table td {
    color: #f1f5f9;
    white-space: nowrap;
}

/* 툴팁이 있는 헤더 */
.th-tip:hover {
    color: #f472b6;
}

/* 정렬 방향 표시 */
.stat-header.asc::after {
    content: " ▲";
    color: #22d3ee;
}
.stat-header:not(.asc)::after {
    content: " ▼";
    color: #22d3ee;
}

/* ====================== 툴팁 ====================== */
.custom-tooltip {
    font-size: 0.9rem;
    border-radius: 5px;
    background: #1e293b;
    border: 1px solid #00f0ff;
    padding: 6px 10px;
    color: #e2e8f0;
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
}

/* ====================== 슬라이더 컨트롤 ====================== */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.slider-controls button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #a5f3fc;
    cursor: pointer;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #64748b;
    display: inline-block;
    transition: 0.3s;
}

.dot.active {
    background-color: #00f0ff;
}

/* ====================== 돌아가기 버튼 ====================== */
.back-home-section {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.btn.neon-home-btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    border-radius: 999px;
    background: linear-gradient(to right, #00f0ff, #8b5cf6);
    color: #0f172a;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    border: none;
    text-align: center;
}

.neon-home-btn:hover  {
    background: linear-gradient(to right, #8b5cf6, #00f0ff);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}



/* ====================== 반응형 ====================== */
@media (max-width: 768px) {
    .records-table {
        font-size: 0.9rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form input {
        width: 100%;
    }

    .slider-controls {
        font-size: 1rem;
    }
}
.table-scroll {
    overflow-x: auto;
    background-color: #1e1f24;
    border-radius: 12px;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #00f0ff #1e1f24;
}

.table-scroll::-webkit-scrollbar {
    height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #00f0ff;
    border-radius: 10px;
}

.table-scroll::-webkit-scrollbar-track {
    background: #1e1f24;
}
footer {
    text-align: center;
    padding: 20px 0;
    color: #e2e8f0;
    font-size: 14px;
}
.legend {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
}

.legend-item {
    display: inline-block;
    margin-right: 10px;
    font-weight: 500;
}

.record-date span {
    color: #00f0ff;
    font-weight: 600;
}
