* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    background: #f5f5f5;  /* 기본 배경색 */
    min-height: 100vh;
}

/* 로그인 페이지 배경 */
body.login-page {
    background: url('/static/background.png') no-repeat center center fixed;
    background-size: cover;
}

/* 리포트 상세 페이지 배경 */
body.report-page {
    background: url('/static/background.png') no-repeat center center fixed;
    background-size: cover;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

h1 {
    margin-bottom: 30px;
    color: #333;
    text-align: center;
    font-size: 2em;
    padding: 20px 0;
    border-bottom: 3px solid #007bff;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #0056b3;
}

.button.delete {
    background-color: #dc3545;
}

.button.delete:hover {
    background-color: #c82333;
}

.button.edit {
    background-color: #28a745;
}

.button.edit:hover {
    background-color: #218838;
}

.button.copy {
    background-color: #6c757d;
    margin-left: auto;  /* 오른쪽 정렬을 위해 추가 */
}

.button.copy:hover {
    background-color: #5a6268;
}

.posts {
    margin-top: 20px;
}

.post-item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post-item h2 {
    margin-bottom: 10px;
}

.post-item h2 a {
    color: #333;
    text-decoration: none;
}

.date {
    color: #666;
    font-size: 0.9em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    height: 200px;
}

.content {
    background-color: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.board-header {
    margin-bottom: 30px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.left-buttons {
    display: flex;
    flex-wrap: wrap;
}

.left-buttons .button {
    margin-right: 10px;
    margin-bottom: 5px;
}

.right-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.right-buttons .button {
    margin-left: 10px;
    margin-bottom: 5px;
}

.generation-selector {
    margin-right: 15px;
    margin-bottom: 10px;
}

.generation-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 120px;
    -webkit-appearance: menulist; /* Safari에서 셀렉트박스 스타일 수정 */
    appearance: menulist;
}

.search-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.search-box .generation-selector {
    margin-right: 10px;
    margin-bottom: 0;
}

.search-box select,
.search-box button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    min-width: 100px;
    -webkit-appearance: menulist; /* Safari에서 셀렉트박스 스타일 수정 */
    appearance: menulist;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    min-width: 200px;
}

.total-posts-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.board-table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

th {
    background: #f0f8ff;
    font-weight: bold;
    color: #333;
    padding: 15px;
}

td {
    color: #666;
}

th.num, td.num { width: 60px; }
th.date, td.date { width: 100px; }
th.views, td.views { width: 80px; }
th.copy-link-col, td.copy-link-col { width: 60px; text-align: center; }
th.generation, td.generation { width: 70px; text-align: center; }
th.title, td.title { 
    text-align: left;
    width: auto; /* 나머지 공간을 모두 차지하도록 설정 */
}

td.title a {
    color: #333;
    text-decoration: none;
}

td.title a:hover {
    color: #007bff;
}

tr:hover {
    background: #f8f9fa;
}

.board-footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.search-box .button {
    padding: 8px 15px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    th.views, td.views,
    th.date, td.date {
        display: none;
    }
    
    th.num, td.num {
        width: 40px;
    }
    
    th.generation, td.generation {
        width: 50px;
    }
    
    th.copy-link-col, td.copy-link-col {
        width: 40px;
    }
    
    .search-box {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 10px;
        width: 100%;
    }
    
    .search-box .generation-selector,
    .search-box select,
    .search-box input,
    .search-box button {
        margin-bottom: 5px;
        width: 100%;
    }
    
    .total-posts-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .total-posts {
        margin-bottom: 10px;
    }
    
    .left-buttons, .right-buttons {
        margin-top: 10px;
        width: 100%;
    }
    
    .right-buttons {
        justify-content: flex-start;
    }
    
    .right-buttons .button {
        margin-left: 0;
        margin-right: 10px;
    }
} 

.form-attributes {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-attributes .form-group {
    flex: 1;
}

.form-attributes input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .form-attributes {
        flex-direction: column;
        gap: 10px;
    }
}

/* number input의 화살표 버튼 스타일링 */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
} 

.board-table th.generation,
.board-table td.generation {
    width: 80px;
    text-align: center;
}

/* 리포트 카드 스타일 수정 */
.report-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    margin: 20px auto;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;  /* 기본 높이 */
}

.logo-image {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;
    padding: 10px 20px;
    border: 2px solid #333;
    border-radius: 8px;
    background: white;
    margin: 0;
    float: right;
    display: inline-block;
}

.report-content {
    padding-top: 30px;
}

.report-header {
    margin-bottom: 40px;
}

.timestamp {
    color: #666;
    font-size: 14px;
    text-align: right;
}

.student-info {
    margin-bottom: 50px;
    text-align: center;
}

.student-name {
    color: #333;
    font-size: 2em;
    padding: 20px 0;
    margin-bottom: 30px;
    text-align: center;
}

.level-section {
    display: flex;
    flex-direction: row;  /* 다시 가로 배치로 변경 */
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin: 20px 0 40px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.my-level {
    flex: 6;  /* 6:4 비율로 변경 */
    padding-right: 40px;
    border-right: 1px solid #eee;
}

.top-levels {
    flex: 4;  /* 6:4 비율로 변경 */
    min-width: 250px;
    padding-left: 20px;
}

.level-exp-container {
    width: 100%;
    margin-top: 0;
}

.exp-chart-container {
    width: 100%;
    height: 60px;
    position: relative;
    margin: 10px 0;
}

.level-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;  /* 5px에서 0으로 변경 */
}

.level-badge {
    background-color: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.level-text {
    color: #333;
    font-size: 2em;
    padding: 10px 0;  /* 20px에서 10px로 변경 */
    margin-bottom: 10px;  /* 30px에서 10px로 변경 */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.exp-value {
    font-size: 1.4em;  /* 레벨 텍스트(2em)보다 작은 크기 */
    color: #666;
    font-weight: 500;
}

/* 제거할 스타일들 */
.exp-text,
.exp-current,
.exp-slash,
.exp-max {
    display: none;
}

@media (max-width: 768px) {
    .level-section {
        flex-direction: column;
        padding: 15px;
    }
    
    .my-level {
        width: 100%;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
    
    .top-levels {
        width: 100%;
        padding-left: 0;
        padding-top: 20px;
    }
    
    .logo {
        height: 60px;  /* 모바일에서 더 작은 높이 */
    }
    
    .report-card {
        padding: 15px;  /* 모바일에서 패딩 감소 */
    }
    
    .report-header {
        margin-bottom: 20px;  /* 모바일에서 마진 감소 */
    }
    
    .timestamp {
        font-size: 12px;  /* 모바일에서 더 작은 폰트 */
    }
}

@media (max-width: 480px) {
    .logo {
        height: 40px;  /* 더 작은 화면에서 더 작은 높이 */
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .report-card {
        padding: 20px;
    }

    .level-details {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }

    .profile-details {
        text-align: center;
    }
} 

.diagnosis-section {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;    /* 섹션 너비도 100%로 설정 */
}

.diagnosis-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.diagnosis-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.diagnosis-grid .form-group {
    margin-bottom: 0;
}

.diagnosis-grid input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

@media (max-width: 1024px) {
    .diagnosis-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .diagnosis-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .diagnosis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
} 

/* 기존 스타일에 추가 */
.report-form .form-group {
    margin-bottom: 15px;
}

.report-form input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.report-form .form-attributes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.form-buttons {
    margin-top: 20px;
    text-align: center;
}

.button.save {
    background-color: #28a745;
}

.button.save:hover {
    background-color: #218838;
}

.button.cancel {
    background-color: #6c757d;
}

.button.cancel:hover {
    background-color: #5a6268;
}

/* 기존 스타일에 추가 */
.exp-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.report-title {
    margin: 20px 0;
    text-align: center;
}

.report-title h2 {
    font-size: 2.4em;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.level-exp-container h3 {
    font-size: 1.4em;
    color: #444;
    margin: 0;
}

.level-exp-container .exp-chart-container {
    width: 100%;
    margin: 0;
}

.chart-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin-bottom: 30px;
    height: 300px;
    width: 100%;
}

.top-levels h4 {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 15px;
}

.top-level-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-level-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 12px;  /* 패딩 약간 증가 */
}

.top-level-item .rank {
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
}

.top-level-item .level {
    flex: 1;
    font-weight: normal;
    color: #333;
    white-space: nowrap;
}

.current-user .level {
    font-weight: bold;
    color: #007bff;
}

.no-competitors {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-style: italic;
    border: 2px dashed #eee;
    border-radius: 8px;
    background: #f9f9f9;
}

.no-competitors p {
    margin: 0;
}

.rank-badge {
    background-color: #f8f9fa;  /* 연한 회색 배경 */
    border: 2px solid #e9ecef;  /* 테두리 추가 */
    color: #495057;  /* 진한 회색 텍스트 */
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.current-user {
    font-weight: bold;
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 8px;
    padding: 8px !important;
}

.rank-divider {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

/* 모바일 대응을 위한 미디어 쿼리 추가 */
@media (max-width: 768px) {
    .level-section {
        flex-direction: column;
    }
    
    .my-level {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .top-levels {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 30px;
    }
} 

/* 주차 선택기 스타일 제거 */
.week-selector {
    /* 이 스타일 블록 전체 삭제 */
}

.week-selector select {
    /* 이 스타일 블록 전체 삭제 */
}

.week-selector select:hover {
    /* 이 스타일 블록 전체 삭제 */
} 

/* 로그인 페이지 스타일 */
.login-box {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-box h1 {
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    background-color: #ffe6e6;
    color: #dc3545;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.login-box .form-group {
    margin-bottom: 20px;
}

.login-box input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-box .button {
    width: 100%;
    margin-top: 10px;
}

.admin-header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.admin-header h1 {
    display: inline-block;
    margin: 0 auto;
    padding: 20px 0;
    border-bottom: 3px solid #007bff;
}

.button.logout {
    background-color: #6c757d;
    min-width: 120px;  /* 로그아웃 버튼도 동일한 너비 적용 */
}

.button.logout:hover {
    background-color: #5a6268;
}

/* 제목 영역 스타일 수정 */
.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.title-wrapper {
    text-align: center;
    width: 100%;
    padding: 0 40px;  /* 양쪽에 버튼을 위한 여백 */
}

.title-wrapper h2 {
    margin: 0;
    font-size: 2.4em;
    color: #333;
}

.button.copy-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .title-wrapper h2 {
        font-size: 1.8em;  /* 모바일에서 제목 크기 축소 */
    }
    
    .title-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .title-wrapper {
        padding: 0;  /* 패딩 제거 */
    }
    
    .button.copy-link {
        position: static;  /* 절대 위치 제거 */
        transform: none;
        margin-top: 10px;  /* 제목과의 간격 */
        justify-content: center;  /* 가운데 정렬 */
    }
}

/* 버튼 영역 스타일 수정 */
.admin-buttons {
    display: flex;
    gap: 10px;
}

/* 툴팁 스타일 */
.button.copy-link .tooltip {
    visibility: hidden;
    position: absolute;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

.button.copy-link:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* 툴팁 화살표 */
.button.copy-link .tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

/* 스탯 카드 스타일 수정 */
.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 20px;
}

/* 저작권 스타일 추가 */
.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

.copyright p {
    margin: 5px 0;
}

.copyright-notice {
    color: #dc3545;
    font-weight: 500;
}

/* 관리자 페이지 body 스타일 */
body.admin-page {
    background: #f5f5f5;  /* 배경 이미지 대신 단색 배경 */
}

/* 관리자 헤더 스타일 수정 */
.admin-header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.admin-header h1 {
    display: inline-block;
    margin: 0 auto;
    padding: 20px 0;
    border-bottom: 3px solid #007bff;
}

/* 헤더 우측 버튼 영역 수정 */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-posts {
    margin-right: 20px;
    color: #666;
    font-size: 0.9em;
    padding: 5px 0;
}

/* 다운로드 버튼 스타일 */
.button.download {
    background-color: #28a745;
    margin-right: 5px;
}

.button.download:hover {
    background-color: #218838;
}

.button.upload {
    background-color: #28a745;
    margin-right: 5px;
}

.button.upload:hover {
    background-color: #218838;
}

/* 링크 복사 아이콘 스타일 */
.copy-link {
    cursor: pointer;
    color: #007bff;
    font-size: 18px;
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.copy-link:hover {
    color: #0056b3;
    background-color: rgba(0, 123, 255, 0.1);
}

.copy-link-tooltip {
    position: relative;
    display: inline-block;
}

.copy-link-tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.copy-link-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 버프 표시 스타일 */
.buff-indicator,
.buff-info {
    display: none;
}

/* 관리자 페이지 body 스타일 */
body.admin-page {
    background: #f5f5f5;  /* 배경 이미지 대신 단색 배경 */
}

/* 관리자 헤더 스타일 수정 */
.admin-header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.admin-header h1 {
    display: inline-block;
    margin: 0 auto;
    padding: 20px 0;
    border-bottom: 3px solid #007bff;
}

/* 헤더 우측 버튼 영역 수정 */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-posts {
    margin-right: 20px;
}

/* 버프 표시 스타일 */
.buff-indicator {
    background-color: #ffd700;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.buff-info {
    position: relative;
    display: inline-block;
    cursor: help;
}

.buff-info i {
    color: #666;
    font-size: 16px;
}

.buff-info .tooltip {
    visibility: hidden;
    position: absolute;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 5px 10px;
    border-radius: 4px;
    width: 200px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
    z-index: 1;
}

.buff-info:hover .tooltip {
    visibility: visible;
}

.buff-icon {
    color: #ff6b6b;
    font-size: 1.2em;  /* 크기 증가 */
    animation: pulse 2s ease-in-out infinite;  /* 주기 단축 */
    position: relative;
    margin-left: 8px;  /* 여백 약간 증가 */
}

.buff-help {
    position: relative;
    margin-left: 8px;
    cursor: help;
}

.buff-help i {
    color: #666;
    font-size: 1em;  /* 물음표 아이콘도 약간 키움 */
}

.buff-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    white-space: pre-line;
    z-index: 1000;
    width: max-content;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

.buff-help:hover .buff-tooltip {
    visibility: visible;
}

/* 툴팁 화살표 */
.buff-help:hover::before {
    content: "";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

/* 기존 버프 아이콘 툴팁 제거 */
.buff-icon:hover::after,
.buff-icon:hover::before {
    display: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);  /* 크기 변화 증가 */
        opacity: 0.7;  /* 투명도 변화 증가 */
        color: #ff4b4b;  /* 색상 변화 추가 */
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.top-header h4 {
    font-size: 1.2em;
    color: #333;
    margin: 0;
}

.rank-badge {
    background-color: #f8f9fa;  /* 연한 회색 배경 */
    border: 2px solid #e9ecef;  /* 테두리 추가 */
    color: #495057;  /* 진한 회색 텍스트 */
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

/* 기존 level-info에서 rank-badge 제거 */
.level-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;  /* 5px에서 0으로 변경 */
}

/* Chart.js 바 두께 조정을 위한 스크립트 수정 */ 