/* 工具面板样式 - 符合整体深色主题 */
#toolsPanel {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.tools-panel-content {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #444;
    border-radius: 8px;
    min-width: 360px;
    max-width: 500px;
    color: #fff;
    font-family: "微软雅黑", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    user-select: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tools-panel-title {
    padding: 12px 16px;
    background: rgba(68, 68, 68, 0.8);
    border-bottom: 1px solid #555;
    border-radius: 8px 8px 0 0;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.tools-section {
    padding: 16px;
    border-bottom: 1px solid #333;
}

.tools-section:last-of-type {
    border-bottom: none;
}

.tools-section-title {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 500;
}

.tools-role-filter-input {
    width: 100%;
    height: 80px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #555;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    font-family: "微软雅黑", Arial, sans-serif;
}

.tools-role-filter-input:focus {
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.15);
}

.tools-role-filter-input::placeholder {
    color: #888;
}

.tools-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: "微软雅黑", Arial, sans-serif;
    font-weight: 500;
    transition: background-color 0.2s ease;
    margin: 0;
    letter-spacing: 0.5px;
}

.tools-btn-success {
    background: #4a5568;
    color: #fff;
}

.tools-btn-success:hover {
    background: #2d3748;
}

.tools-btn-info {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: #fff;
    border: 1px solid #60a5fa;
    margin-bottom: 8px;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tools-btn-info:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #74c0fc;
    color: #fff;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.tools-btn-info:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 按钮点击后的涟漪效果 */
.tools-btn-info::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.6s;
    opacity: 0;
    pointer-events: none;
}

.tools-btn-info:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: 0s;
}

.tools-btn-danger {
    background: #888;
    color: #fff;
    padding: 8px 20px;
    margin: 16px auto 16px auto;
    display: block;
}

.tools-btn-danger:hover {
    background: #666;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .tools-panel-content {
        min-width: 300px;
        margin: 20px;
    }
    
    .tools-section {
        padding: 12px;
    }
}
