body {
    background-color: #f4f4f4;
    color: #333;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-y: hidden;
}

.header {
    background-color: #fff;
    color: rgb(23, 101, 219);
    padding: 10px;
    text-align: right;
    border-bottom: 1px solid #c4c3c3;
    font-size: 14px;
}

.header .admin-info {
    display: flex;
}

#cur-page {
    display: flex;
    flex: 0 0 50%;
}

.welcome-container {
    display: flex;
    flex: 0 0 50%;
    justify-content: flex-end;
    align-items: center;
}

.header .admin-info a {
    color: rgb(23, 101, 219);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    margin-left: 20px;
}

.container {
    display: flex;
    height: calc(100vh - 40px);
    /* 减去 header 高度 */
    overflow-y: hidden;
}

.sidebar {
    width: 150px;
    background-color: #000;
    padding: 20px;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    display: flex;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.logo-name {
    display: flex;
    flex: 0 0 80%;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.toggle-button-container {
    display: flex;
    flex: 0 0 20%;
    justify-content: end;
    align-items: center;
}

#toggle-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    width: 100%;
    font-weight: bold;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px;
    width: 100%;
}

.sidebar ul li a .icon {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

.sidebar ul li a:hover {
    text-decoration: underline;
    background-color: #555;
}

.content {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    transition: margin-left 0.3s;
    overflow-y: auto;
}

h1 {
    text-align: center;
    color: #333;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stats p {
    font-size: 1.2em;
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    color: #fff;
}

#playerGrowthChart,
#myChart {
    margin-bottom: 20px;
    max-height: 200px;
    /* 调整图表高度 */
    background-color: #fff;
    /* 确保图表背景为白色 */
}



.loading {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#result-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#result-modal .result-modal-containner {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
}

#result-modal .modal-content {
    display: flex;
    flex-direction: column;
    background-color: #fefefe;
    margin-top: 15%;
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    max-width: 600px;
    position: relative;
    height: 100px;
}

#result-modal .result-title-line {
    display: flex;
    width: 100%;
    height: 40px;
    justify-content: flex-end;

}

#result-message {
    display: flex;
    width: 100%;
    height: 50px;
    font-size: 16px;
    justify-content: center;
    color: #888;
}

#result-modal .close-button {
    color: #a4a4a4;
    font-size: 28px;
    cursor: pointer;
}

#result-modal .close-button:hover,
#result-modal .close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#user-modal .form-group,
#result-modal .form-group {
    margin-bottom: 15px;
}

#user-modal label,
#result-modal label {
    display: block;
    margin-bottom: 5px;
}

#user-modal input[type="text"],
#user-modal input[type="password"],
#result-modal input[type="text"],
#result-modal input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#user-modal button,
#result-modal button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#user-modal button:hover,
#result-modal button:hover {
    background-color: #45a049;
}

.search-area {
    margin-bottom: 20px;
    display: flex;
    border: 1px solid #c0c0c0;
    border-radius: 5px;
    padding: 10px;
    color: #888;
}

.search-area form {
    display: flex;
    align-items: center;
}

.search-area label {
    margin-right: 10px;
    color: #000;
    font-size: 16px;
}

.search-area input[type="text"] {
    margin-right: 10px;
    height: 25px;
    border: 1px solid #c0c0c0;
    border-radius: 10px;
}

.search-area input[type="date"] {
    margin-right: 10px;
    height: 35px;
    border: 1px solid #c0c0c0;
    border-radius: 10px;
    color: #888;
}

.search-area select {
    margin-right: 10px;
    width: 100px;
    height: 35px;
    border: 1px solid #c0c0c0;
    border-radius: 10px;
    color: #888;
}

.search-area button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 30px;
    margin-left: 20px;
    color: #fff;
    background-color: #4e6ef2;
    border: 0px;
    border-radius: 10px;
    font-weight: bold;
}

.pagination {
    display: flex;
}

.pagination p {
    display: flex;
    flex: 0 0 60%;
    padding-left: 5%;
    font-weight: bold;
}