@font-face {
    font-family: "JetBrains Mono";
    src: url("/uploads/JetBrainsMono-Regular.ttf") format("truetype");
}

.l_left .sidebg {
    background-image: linear-gradient(45deg, blue, green, red);
}
@media (prefers-color-scheme: dark) {
    .l_left .sidebg {
        background-image: radial-gradient(
                circle at 30% 30%,
                rgba(255, 255, 255, 0.02) 0%,
                rgba(0, 0, 0, 0.85) 80%,
                rgba(0, 0, 0, 0.95) 100%
            ),
            linear-gradient(145deg, #111418 0%, #1c1f24 50%, #0f1115 100%);
    }
}

span.fs15 {
    font-size: 15px;
}

.avatar:hover {
    transform: rotate(360deg);
}
/* 按钮样式 */
#settingsBtn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 2147483648;
    background: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.5s ease;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    color: inherit;
}
/* 面板样式 */
#settingsPanel {
    position: fixed;
    top: 35px;
    right: 10px;
    width: 150px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 2147483648;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
#settingsPanel label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}
/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    #settingsPanel {
        background: rgba(0, 0, 0, 0.8) !important;
        border-color: #444 !important;
        color: #eeeeee !important;
    }
    #settingsPanel label {
        color: #eeeeee !important;
    }
    #settingsBtn {
        color: #eeeeee !important;
    }
    #settingsBtn:hover {
        color: #fff !important;
    }
}

#settingsHint #hintConfirmBtn {
    margin-left: 10px;
    padding: 5px 10px;
    background: #fff;
    color: #ff4f4f;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
#settingsHint #hintConfirmBtn:hover {
    background: #ff4f4f;
    color: #fff;
}
#settingsHint {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 10px 20px;
    background: #ff4f4f;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    z-index: 2147483648;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#settingsHint.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
#settingsHint.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.spinner {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.spinner div {
    box-sizing: border-box;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #1bcdfc;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #1bcdfc transparent transparent transparent;
}
.spinner div:nth-child(1) {
    animation-delay: -0.45s;
}
.spinner div:nth-child(2) {
    animation-delay: -0.3s;
}
.spinner div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(0.6);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}
