body {
    font-family: "Arial", sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 20px 20px; /* 👈 줄임 */
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(12px);
}


h1 {
    text-align: center;
    margin-bottom: 20px;
}

form {
    text-align: center;
    margin-bottom: 10px;
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.rank-table th,
.rank-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.rank-table th {
    background-color: #f2f2f2;
}

.back-btn {
    text-align: center;
    margin: 40px 0 20px 0;
}

/* 🟢 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    border-radius: 999px; /* pill shape */
    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;
    width: auto;
}

.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);
}


body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #0f172a, #1e293b);
    color: #e2e8f0;
    padding: 40px 20px;
}


h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #00f0ff;
    margin-bottom: 10px;
}

form {
    text-align: center;
    margin-bottom: 20px;
}

label {
    font-weight: bold;
    margin-right: 8px;
}

select {
    background-color: #1e293b;
    color: #00f0ff;
    padding: 8px 12px;
    border: 1px solid #00f0ff;
    border-radius: 6px;
    font-size: 1rem;
}

p {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 30px;
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.rank-table thead {
    background-color: rgba(0, 240, 255, 0.15);
}

.rank-table th, .rank-table td {
    border: 1px solid rgba(0, 240, 255, 0.1);
    padding: 12px 10px;
    text-align: center;
    font-size: 0.95rem;
}

.rank-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.rank-table tbody tr:hover {
    background-color: rgba(0, 240, 255, 0.08);
}

.back-btn {
    text-align: center;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #00f0ff;
    color: #0f172a;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #8b5cf6;
    color: white;
}

.rank-table thead {
    background-color: rgba(0, 240, 255, 0.15);
}

.rank-table thead th {
    color: #00f0ff; /* 네온 블루 포인트 */
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    background-color: rgba(14, 23, 41, 0.8); /* 어두운 배경과 대비 */
}

.rank-graph-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap; /* 반응형 대응 */
    max-width: 1400px; /* 전체 박스 폭 증가 */


}

.rank-table-container {
    flex: 1;
    min-width: 600px;
}


.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* 그래프 간 간격 */
}

.chart-container canvas {
    width: 500px;
    height: 300px;
}

